In main.py the line:
(wsgibase, html.URL) = rewrite(wsgibase, html.URL)
wraps the URL() function with one that rewrites the URLs based on
routes.py. However the URL() function referenced in tools.py, when
indirectly used in a model db.py as:
from gluon.tools import Crud
crud = Crud(globals(),db)
continues to use the plain URL() function (eg the non-wrapped one) from
html.py.
The net effect of this is that URLs generated by Crud, as in:
http://locahost:8000/application/default/data/tables
for instance have not been rewritten according to routes.py.
I haven't figured out yet why tools.py doesn't reference the wrapped
URL(). The wrapped URL() is in the environment passed to exec. I am
puzzled. Anybody any idea what's going on?
--
Guido Kollerie
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---