Hello,

Im a newbie coder. 
Im implementing an android app which make json post to web2py and transfer 
data in and out.
Actually my process is working, but I want to know if what i coded is right 
and offers the best performance.

def anyfunction():

      if request.vars.var1 == "something1":
         dosomething
         return response.json( { 'keyname' : 'keyvalue'} )
         

      return response.json( { 'error' : 'novar1'} )


Basically, im using a simple https post and extracting vars with 
request.vars.


Please share advice and comments,



Cheers,

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to