Author: essiene
Date: Tue Jan 23 01:15:22 2007
New Revision: 10
Modified:
trunk/src/simpleweb/admin/plugins/create_movable.py
trunk/src/simpleweb/admin/plugins/create_project.py
trunk/src/simpleweb/admin/plugins/templates.py
Log:
admin/plugins/create_movable
* No more using sitecustomize.py, causing some problem in dev environment, since the dev code will
want to read from our local site-packages, which could change when we're running simpleweb-admin.
* Creating a custom main.py that does the sys.path hack for create_movable to work.
* cleanup_site() no more deals with sitecustomize.py, its all gone now.
* With these last set of fixes, we've shaken out the remaining logic bugs to create_movable
What is now left is to change the implementation of copy_modules(), to copy the toplevel
package directories, or eggs, instead of picking up individual files in the package. This (though baroque in approach)
will solve the problem of detecting *most* modules that are not loaded till much latter in the application.
The perfect solution though, will be to parse every single file in the application, extract their import
statements and actually perform them, before going ahead to do the normal copy_modules() logic... hmmm
what to do... what to do. meh... i'm going off to watch Desperate Housewives now :P
admin/plugins/create_project
* create_file() now take **kw also, which is passed to the template subsitution
|