On Saturday, December 10, 2011 11:29:49 PM UTC-5, Constantine Vasil wrote: > > I just put my classes in site-packages/models.py > > and the 'from models import *' made the classes available globally. > > So if I put them in /modules/models.py it would be the same? >
It should work the same -- let us know if it doesn't. web2py includes a custom importer, so if you use a regular import statement, before searching the Python path, it will look in the application's /modules folder. See http://web2py.com/book/default/chapter/04#Third-Party-Modules and http://web2py.com/book/default/chapter/04#Accessing-the-API-from-Python-modules. Anthony