[web2py] Re: passing value to xml

2011-03-20 Thread b0j3
Thanks, guys. That helped. I also found out (not reading the manual - manly I am), that putting @service.xml before the definition in controller means the xml return is somewhat mandatory, but you have to use xml in your URL e.g.: http://example.com/example/default/call/xml/controller/pass_value B

[web2py] Re: passing value to xml

2011-03-20 Thread Kevin Ivarsen
To expand on DenesL's reply, from your controller you would access these values in the following ways: For http://example.com/app/controller/service.xml/somevalue you would use: request.args(0) # returns "somevalue", or None if nothing is provided For http://example.com/app/controller/service.

[web2py] Re: passing value to xml

2011-03-20 Thread DenesL
http://server.com/service.xml/x http://server.com/service.xml?key=x On Mar 20, 6:03 am, b0j3 wrote: > Hi! > > I'm using service.xml to return value and the call is: > > http://server.com/service.xml > > I'd like to pass a key value, so I can distinguish users. Is there a > way to pass a key va