Author: essiene
Date: Fri Jan 19 08:47:38 2007
New Revision: 7
Added:
trunk/src/simpleweb/admin/plugins/init_db.py
Modified:
trunk/src/simpleweb/BUGS
trunk/src/simpleweb/TODO
trunk/src/simpleweb/admin/plugins/__init__.py
trunk/src/simpleweb/admin/plugins/create_movable.py
trunk/src/simpleweb/admin/plugins/create_project.py
trunk/src/simpleweb/admin/plugins/help.py
trunk/src/simpleweb/admin/plugins/templates.py
Log:
* Add new simpleweb-admin plugin: init-db
This plugin runs the models.py file as a program as opposed to importing it as a module
Typically used to run code protected by "if __name__ == '__main__':". For instance, if you
need to populate a db with some default values, this will be a good place to add them, and
you run them with init-db
* Fix bug that made help not work for commands like 'create-tables' but work for 'create_tables'
* simpleweb-admin help : now shows aphabetical listing of available commands
* create-movable now creates replaces main.py with a version that properly manipulates sys.path before
calling simpleweb.run(). This should fix make the movable version actually work properly.
* once more make create-movable to repackage simpleweb itself, so we can deploy without installing simpleweb
* sitecustomize.py now prepends our own lib dir before everyother thing on sys.path
* Fix another bug, where the lib dir in sitecustomize.py was hardcoded to the developer's fs path
* create-movable plugin works better, and simpleweb doesn't need to be deployed on target machine, but there are still some
bugs preventing it from working perfectly... see BUGS
|