r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Cheyenne] Discussions about the Cheyenne Web Server

Dockimbel
3-Mar-2011
[9515x2]
Cheyenne reached a new milestone, as promised during the ReBorCon, 
0.9.20 is out! 

Read the announcement here: http://cheyenne-server.org/blog.rsp?view=26

All the new binaries are built using REBOL 2.7.8, enjoy!
The web site has been updated too, new documentations for Cheyenne 
are pending (will be available tonight).
james_nak
3-Mar-2011
[9517]
Doc, thanks. Can you check the Window's binary links?
Dockimbel
3-Mar-2011
[9518x3]
Broken links, fixing that...
Done.
Thanks James.
james_nak
3-Mar-2011
[9521x2]
Thanks.
Doc, I'm thinking this version fixed my cookie issue with Curecode 
. We'll see. So far it looks great. Merci.
Dockimbel
3-Mar-2011
[9523]
Good to know. You're welcome.
GrahamC
3-Mar-2011
[9524]
Anti-web-scanners configurable engine means what?
Dockimbel
3-Mar-2011
[9525]
Complicate expressions to tell you about a request blocking new feature 
with pattern recognition (see Changelog, look for "block").
GrahamC
3-Mar-2011
[9526x2]
I presume it's okay to start up cheyenne then load up my modified 
http protocol ?
My RSP scripts do a lot of SOAP and REST calls which use my mods
Dockimbel
3-Mar-2011
[9528]
Sure, you can load your custom HTTP protocol from your RSP code, 
or better, using the new "worker-libs" config block.
GrahamC
3-Mar-2011
[9529]
so, if used in the worker-libs config block, all workers would then 
use it?
Kaj
3-Mar-2011
[9530]
Yes
GrahamC
3-Mar-2011
[9531x2]
OTOH, that means each worker needs to load this ... might be easier 
for me to re-encap as the default http protocol
I guess I'm looking for something that is run only the once .. and 
then is used by all the new workers
Kaj
3-Mar-2011
[9533]
Workers run in separate processes, so they each have to load all 
libraries one way or the other
BrianH
3-Mar-2011
[9534]
However, workers are only loaded once each and then reused, so your 
HTTP scheme will only be loaded the first time.
GrahamC
3-Mar-2011
[9535]
Ah ... okay.
Kaj
3-Mar-2011
[9536]
Same with the worker-libs, that's the point of that facility
GrahamC
3-Mar-2011
[9537]
Still looking forward to a virtual drive so we can encap all the 
sources for our rsp scripts with cheyenne!
Kaj
3-Mar-2011
[9538]
You may eventually compile them into Red
Dockimbel
6-Mar-2011
[9539x2]
New Cheyenne documentation available: http://cheyenne-server.org/wiki
It covers basic Cheyenne & RSP usage.
Now back to Red! :-)
Gregg
6-Mar-2011
[9541]
Just skimmed, but it looks *very* nice Doc.
Dockimbel
7-Mar-2011
[9542]
Thanks Gregg, hope it will be useful to newcomers.
WuJian
7-Mar-2011
[9543]
Is it possible for Cheyenne to support SVG?
I tried:
response/buffer: {<svg></svg>}
response/set-header 'Content-type "image/svg+xml" 


but failed.   double string was returned. "<svg></svg><svg></svg>"
Dockimbel
7-Mar-2011
[9544]
You're using a literal string as response, you should try to add 
a COPY in front of it to avoid side-effects: response/buffer: copy 
{<svg></svg>}. Even better, as you're in a templating system, make 
it a template:

<% response/set-header 'Content-type "image/svg+xml" %>
<svg></svg>
WuJian
7-Mar-2011
[9545]
Thank you.
Claude
7-Mar-2011
[9546]
good luck with RED. i saw your PDF about RED it will be very impressiv 
 ;-)
Dockimbel
7-Mar-2011
[9547]
Thanks Claude. I hope it will be as useful as it may be impressive. 
;-)
MikeL
18-Mar-2011
[9548]
I am trying to use SAY to support EN, FR, and ES.  But only display 
one language.... possible due to wrong HTTPD.cfg.  I think I am following 
this  http://cheyenne-server.org/docs/rsp-api.html#def-33I 
put the  locales-dir %catalogs/ within the App because it was rejected 
in other httpd.cfg locations.   Can anyone SAY what I am doing wrong?
Dockimbel
18-Mar-2011
[9549]
How are you testing the language? Using locale/set-lang (http://cheyenne-server.org/docs/rsp-api.html#def-61) 
or by changing the language in your browser?
MikeL
18-Mar-2011
[9550x2]
Altme just locked me out because I was interrupting your work on 
RED.
I am using the example from the RSP API  - locale/set-lang 'fr
Dockimbel
18-Mar-2011
[9552x2]
I had also issues posting on AltMe today.
Have you put the LOCALES-DIR directive in a webapp definition?
MikeL
18-Mar-2011
[9554x2]
Yes 	webapp [
	
		virtual-root "/DocK"
		root-dir %www/DocK/

		locales-dir %www/DocK/catalogs/
		debug
	
	]
I tried a lot of combinations .... %catalogs %www/catalogs with the 
.cat files at all levels
Dockimbel
18-Mar-2011
[9556]
Have you restarted Cheyenne each time you changed the configuration 
file?
Janko
18-Mar-2011
[9557]
I don't remember exactly right now but I think when I used cheyenne 
in multilingual I had some problems with this too, and I hacked RSP.r 
(I think) I hardcoded some path to make it work .. it's a while
Dockimbel
18-Mar-2011
[9558]
MikeL: I'll write a small test using the example from the doc to 
see if there's something wrong there. I got localization working 
correctly in CureCode, but that's the only webapp where I used it, 
so unknows issues with paths are not excluded.
MikeL
18-Mar-2011
[9559x3]
Thanks Doc. Keep Red first priority though.
Some other things don't work for me ...  Jobs don't fire as documented.
When I get something working I will document in your Cheyenne wiki.
Dockimbel
18-Mar-2011
[9562x3]
Try with: locales-dir %DocK/catalogs/
That should be the correct path. Catalogs files must reside in their 
lang folders (catalogs/en/en.cat, catalogs/fr/fr.cat)
Jobs are quite experimental, but should be working in the general 
case (I'm using it on cheyenne-server.org to run a batch script every 
hour).