request is a web2py object. I think you are importing a module called request (or there is something you import from a module called request) that shadows the web2py request object.
look for a import request and replace it with import request as other_request On Monday, 29 June 2015 02:13:21 UTC-5, Auden RovelleQuartz wrote: > > thanks Massimo > > a related error I get after that is: > > Error ticket for "omniavx_joe"Ticket ID > > 108.234.157.233.2015-06-29.03-00-34.5b339bb8-b672-4ea0-a143-c0f6302be3ab > <type 'exceptions.AttributeError'> 'module' object has no attribute > 'application'Versionweb2py™Version > 2.11.2-stable+timestamp.2015.05.30.16.33.24PythonPython 2.7.6: > /usr/bin/python (prefix: /usr)Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > > Traceback (most recent call last): > File "/home/www-data/web2py/gluon/restricted.py", line 227, in restricted > exec ccode in environment > File "/home/www-data/web2py/applications/omniavx_joe/models/menu.py" > <https://128.199.142.115/admin/default/edit/omniavx_joe/models/menu.py>, line > 10, in <module> > response.title = request.application.replace('_',' ').title() > AttributeError: 'module' object has no attribute 'application' > > > > the menu.py file is as it is default - no modifications made... > > > for both cases, the code seemed to work on previous version - - - any more > ideas greatly appreciated :^) > > thanks! > > > > On Sunday, June 28, 2015 at 11:19:13 AM UTC-5, Massimo Di Pierro wrote: >> >> Not sure but you do not need >> >> from applications.omniavx_joe.modules.app_constants import * >> >> try instead: >> >> from app_constants import * >> >> less things can go bad >> >> On Sunday, 28 June 2015 08:19:46 UTC-5, Auden RovelleQuartz wrote: >>> >>> Error ticket for "omniavx_joe"Ticket ID >>> >>> 24.211.17.122.2015-06-28.08-43-36.388910c0-3f65-456d-bcf2-7ee2c50e441e >>> <type 'exceptions.ImportError'> No module named >>> omniavx_joe.modules.app_constantsVersionweb2py™Version >>> 2.11.2-stable+timestamp.2015.05.30.16.33.24PythonPython 2.7.6: >>> /usr/bin/python (prefix: /usr)Traceback >>> >>> 1. >>> 2. >>> 3. >>> 4. >>> 5. >>> 6. >>> 7. >>> 8. >>> 9. >>> >>> Traceback (most recent call last): >>> File "/home/www-data/web2py/gluon/restricted.py", line 227, in restricted >>> exec ccode in environment >>> File "/home/www-data/web2py/applications/omniavx_joe/models/db.py" >>> <https://128.199.142.115/admin/default/edit/omniavx_joe/models/db.py>, line >>> 23, in <module> >>> from applications.omniavx_joe.modules.app_constants import * #CDN-000016 >>> File "/home/www-data/web2py/gluon/custom_import.py", line 108, in >>> custom_importer >>> return NATIVE_IMPORTER(name, globals, locals, fromlist, level) >>> ImportError: No module named omniavx_joe.modules.app_constants >>> >>> >>> this one is stumping me.... anyone has a clue on what could be causing >>> this error? >>> >>> (__init__.py is in the modules folder...) >>> >> -- 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/d/optout.

