Thanks.
I will try to do something using routes since it seems impossible to
me without it since I can't predict the request.arg parameter from the
user to stick it into controller. Even if I did....
Only if could do something like:
if is_a_wikiword(request.arg[3]):
add_page(request.arg[3])
def index():
return dict(message=T("...")
...
maybe it doesn't make any sense..
Anyway, where can I find some documentatino related to routes.py?
On Mar 10, 2:52 pm, mdipierro <[email protected]> wrote:
> You can read request.args[0] the fourth parameter /app/controller/
> funciton/args0/args1/.... from the path
>
> In order to eliminate /controller/function/ you need to use routes
>
> routes_in=(('/app/controller/function/(?P<other>.*)','/app/
> \g<other>'))
>
> On Mar 10, 9:01 am, blackthorne <[email protected]> wrote:
>
>
>
> > Let's say I want to create a WiKi and its users should be able to
> > create new pages by inserting its name in the url
> > e.g.:http://www.mydomain.com/application/HelloWorld
>
> > this would create a new page called "HelloWorld".
>
> > Can I make this using request parameters (in the controllers)?
> > Do I need to use routes.py ?
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---