World: r3wp
[!Cheyenne] Discussions about the Cheyenne Web Server
older newer | first last |
Graham 10-Mar-2009 [4239] | so just session/login?: true |
Dockimbel 10-Mar-2009 [4240x2] | something like : <% allowed-ip: [1.2.3.4 ...] if find allowed-ip request/client-ip [ session/content/login?: yes response/redirect "home.rsp" ] %> |
See %www/testapp/login.rsp | |
Graham 10-Mar-2009 [4242] | That's similar to what I tried .. but got Invalid path value: login? |
Dockimbel 10-Mar-2009 [4243x2] | Did you removed the incorrect session/start? |
Session/start has only been provided to manually start a session for RSP scripts that are not inside a webapp. | |
Graham 10-Mar-2009 [4245] | I see. |
Dockimbel 10-Mar-2009 [4246] | I should document better session/start in RSP API doc. |
Graham 10-Mar-2009 [4247x4] | Just a little observation .... you have this timing script at the bottom of the page ( in app-init.r ) |
It inserts the html before </body> | |
the xml i was emitting also had a </body> in it ... | |
such is life :) | |
Dockimbel 10-Mar-2009 [4251] | That's for the example, you can drop it. It's not needed anymore, the timings are now (from 0.9.19) automatically inserted by the RSP engine in debug mode (when DEBUG keyword is found in the webapp config block). |
Graham 10-Mar-2009 [4252] | I dd remove it .. it was just an observation |
Dockimbel 10-Mar-2009 [4253] | Well, I think that I should make the timings optional. I'll add that to the to-do list, thanks. |
Graham 10-Mar-2009 [4254] | All this to avoid a blank Acrobat page appearing. if you call an *.xfdf file, acrobat opens up, and then the browser plugin starts up to load the remote PDF. so, you have this blank PDF on screen as well. But if I use localhost to create a web page that emits the xfdf, then I only get one browser window with the pdf and no more blank Acrobat instance. |
Robert 11-Mar-2009 [4255x2] | Has anyone tried to use things like Google API etc. from inside a RSP page? |
I'm thinking about using the js-kit.com commenting service. But I would "hide" it via a RSP page to have more control how to integrate it. | |
Kaj 13-Mar-2009 [4257] | Any idea how it compares to http://disqus.com/? |
Graham 14-Mar-2009 [4258x5] | I've been writing a web app which I have been distributing as a zip archive. People just unzip the latest over their copy, and I ask them to write protect their own changes. |
I don't really want to setup git or Mercurial or what ever. Any alternatives? | |
Of course I'm hoping that the users will contribute their changes but realistically that is not going to happen. | |
Perhaps a Cheyenne rsp script that downloads a catalog, and then downloads any changes to the local site? | |
I'm guessing that is what bulletin board software does ? | |
Gabriele 14-Mar-2009 [4263x2] | any reason you don't want to set up git or mercurial? (windows? then I'd suggest mercurial) |
(git has been making progress on win but i don't know how much) | |
Graham 14-Mar-2009 [4265] | NYAS - not yet another server :( |
Gabriele 14-Mar-2009 [4266] | none of them needs a server |
Graham 14-Mar-2009 [4267x2] | oh ? |
Ok, time to check them out. | |
Gabriele 14-Mar-2009 [4269] | that's the D in DVCS |
Graham 14-Mar-2009 [4270] | I assumed it also meant always on |
Gabriele 14-Mar-2009 [4271x2] | no, you can start a server to let other people access *your* repository |
it's like turning samba on to let other people access *your* files | |
Graham 14-Mar-2009 [4273] | Ok. |
Gabriele 14-Mar-2009 [4274x3] | you can still just publish zip files, or patches, or work with other in many different ways. or, you simply do not work with others. ;) |
mercurial in particular works fine as a simple CGI if you want to give read access to the repository | |
and with some configuration for the auth part, you can also use the CGI for write access. | |
Graham 14-Mar-2009 [4277x2] | needs a web server? |
or is that embedded inside Hg? | |
Gabriele 14-Mar-2009 [4279x5] | both are supported. |
you can use the embedded web server, or use the CGI with an existing web server | |
http://hgbook.red-bean.com/ | |
(i really suggest reading that) | |
git is faster and has more features (hg has been closing the gap on the features but not the speed), but windows people tend to hate it. | |
Graham 14-Mar-2009 [4284x2] | and mercury is not poisonous to my system |
no security issues I hope | |
Gabriele 14-Mar-2009 [4286x3] | not that i know of, it's the usual if you keep it running, but you don't need to have the server running at all to use it. |
you can still just send any changes from a given revision forward as a single file (bundle) | |
ie. just use email | |
older newer | first last |