[Simpleweb-py-users] 0.7.1 - reloaded - API Break in config.py
Status: Beta
Brought to you by:
essiene
From: simpleweb-users <sim...@li...> - 2006-12-21 14:24:58
|
Ok... you can tell i'm excited about this... I finally got Reloading working... had to really change some design around before memento.Assassin could help with the reloading. Completed the 'config' object section of the Core Objects documentation on the site. http://simpleweb.essienitaessien.com/coreobjects I'll have to put up the 'request' object section too. 0.7.1 is already on Cheeseshop. I'll leave the code as it is for about a week to allow for stabilization and bug reports... there shouldn't be any bugs in deployment, but the reloading thing is quite a fragile thing in python, so there may be development stage bugs. For the rest of the week, and most of next week, I'll be working on more documentation (and probably polishing the tutorial, so its a bit more structured and easier to follow? I saw comments on reddit that suggested that the tutorial wasn't very well written). My next focus is goin to be on reducing the external dependencies needed to run install simpleweb. Its not going to be too easy, but I'm probably going to be shipping a distribution of simpleweb that comes with its core dependencies as part of it. This will be simple for things like selector, yaro, static, memento, resolver, but slightly difficult for things like SqlObject, SqlAlchemy, Cheetah. Anyways, I guess my work is cut out for me :) ChangeLog 0.7.1 - API BREAK!!! ============================== * API BREAK - config.py - host, port, user, group are now server_host, server_port, server_user, server_group * Add default values for config.user and config.group * Add some exception handling to make the user/group switching in the devserver more robust * Add settings.Config.set_default_attr(), use this to clean up __init__.start(), default values are handled inside the object itself now. * remove __init__.start() now redundant * Change signature of plugins.runmethods functions. Now passing in urls and config for more loose-coupling. * Default of config.host changed from '0.0.0.0' to '127.0.0.1' for security reasons. * Corrected default value of config.user and config.guest (values where unquoted) * Change internally used config.dirname to config.working_directory * Use os.getcwd() to set config.working_directory, when settings.Config() is called. Formerlly was using config.__file__ * Filter out attributes special attributes (__file__, __cmd__, etc) from settings.Config() object * Cleanup plugins/template.py to use config.working_directory as the Cheetah template base directory. Formerly guessing it with os.getcwd() * Refactor out webserver.py from plugins.runmethods.development * Add SimplewebReloadingApp() * use memento.Assassin to call SimplewebReloadingApp(), now we can have internal server reloading if enabled * Add new config key 'server_reload' to control internal server reloading default is True Cheers, Essien |