since I found out that naming my controllers 'list' (to display all
existing rows of a specific table) is not a good idea (because it
overwrites the internal list type), I'd now like to rename all 'list'
controllers to 'view'.
To make the transitions for the users as smooth as possible all urls to a
'list' controller should be redirected to 'view'.
e.g.
/myapp/client/list -> /myapp/client/view
/myapp/employee/list?status=active -> /myapp/employee/view?status=active
I guess I need a routes_in in my routes.py but I'm not sure about the exact
entry. For a specific url it should be easy:
routes_in = (
(BASE + '/myapp/client/list', '/myapp/client/view'),
)
I'm not so sure about the regular expression to define it for all urls. To
redirect I need to write '303->' at the beginning, is that correct?
Alex
--
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/groups/opt_out.