On Sep 18, 2010, at 4:58 PM, Avik Basu wrote: > > I tried your suggestion and tracked the error to the following line > which was in my db.py: > > from gluon.sqlhtml import *
Ah, that's good to put to rest. sqlhtml does from html import * I guess they must all end up in the namespace. It doesn't hurt sqlhtml, because the only place it calls URL it explicitly includes request: self.url = URL(r=request,args=request.args) There are other reasons to avoid import *, so the fix is to be more selective. I'll look at getting rid of import * in sqlhtml, too. > > I guess this import overrided the URL function. When I took it out, > everything works. Thanks so much for your patience and helping me get > through this issue so methodically! The web2py community is quite > exceptional. > > Avik > > > > On Sep 18, 7:07 pm, Jonathan Lundell <jlund...@pobox.com> wrote: >> I should also mention that if I were able to reproduce the problem here, I'd >> look at it with a debugger, watching URL in the global namespace of a >> request. So if that's a possibility....