Jump to revision: | |
---|---|
Author: | pje |
Date: | Sun Jan 14 18:16:49 2007 UTC (17 years, 2 months ago) |
Log Message:
Bug fixes, refactoring, and new features: * Container is gone; the framework now automatically detects containerness if you override handle_child or define sub-pages. So everything is now either a Page or a Form. * Trailing-'/' redirection now goes both ways, according to whether a page is a container or not. * Page.__init__ accepts keyword arguments to set class-defined attributes at creation. This is useful for containers that invoke dynamic subpages in handle_child(). * An extensible setup() method is provided for subclass-specific initialization, prior to go() being invoked. * Template expressions can now reference the module globals of the module where the template was created. * Pages can have a ``body`` attribute (a template or WSGI-return method) which will be invoked for GET requests. * HEAD requests are now only handled if GET is supported (i.e., if a ``body`` is defined), and the wrapping of GET is a bit cleaner. * If you define a ``db_connect()`` method returning a DBAPI connection object, you can use the ``query()`` method to do SQL queries, and your subpages will automatically "inherit" the database connection from their parent pages/container(s). Not bad for <550 lines!
Changed paths:
Path | Action | Text Changes | Prop Changes | Diff to Previous |
---|---|---|---|---|
WebHaiku/web_haiku.py | modified | X | (diff to previous) |
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |