Hello.
So, i just decided to use web2py for migration from drupal.
I found answers to most of my questions while googling. Besides that.
For example, I have application "app".
controller "main.py".
Inside of it:
def index():
try:
code = str(request.args(0))
except:
code=0
return code
So, when requesting
127.0.0.1:8000/app/main/222
I recieve
"invalid function 222"
But requesting:
127.0.0.1:8000/app/main
I recieve
0
and requesting
127.0.0.1:8000/app/main/index/222
I got
222
So I can see that w2p does not make differ between argument and function,
always means function even if function is missing.
How can it be solved?
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.