fixed. please check trunk and let me know. Massimo
On May 17, 2:44 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > Auch! I know what is wrong. I just never noticed. I can fix it later > today. > > Massimo > > On May 17, 2:32 pm, Guido Kollerie <gu...@kollerie.com> wrote: > > > 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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---