Here's a problem I ran into. I have sub-classed (proper terminology?) Auth() 
in order to customize navbar(). I'll probably re-write it not to sub-class 
Auth().

auth = MyAuth(globals(),db) 

class MyAuth(Auth): 

    def navbar(self, prefix='', action=None):
        request = self.environment.request
        T = self.current.T


Traceback (most recent call last):
  File "/Users/pbreit/web2py/gluon/restricted.py", line 181, in restricted
    exec ccode in environment
  File "/Users/pbreit/web2py/applications/init/views/default/home.html", line 
62, in <module>
  File "/Users/pbreit/web2py/applications/init/models/3_gluon.py" 
<http://pb-dev.pricetack.com:8001/admin/edit/init/models/3-gluon.py>, line 8, 
in navbar
    request = self.request
AttributeError: 'MyAuth' object has no attribute 'request'

Reply via email to