You are reinventing the wheel here

python web2py.py -S appname -M
>>> for table in db.tables: print table, db[table].fields

Similary

python web2py.py -S appname -M -R myscript.py

will run the script myscript.py as if it were inside appname and will
have access to all models of the app.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to