enthought/enaml — pull request #177 by corranwebster (2012-08-02 22:36:37+00:00)
Title: Feature sessions

This is the Sessions refactor. Basic ideas:

* Sessions gained an initialize() method and open() and on_open() lost all arguments
* Handler tuples and SessionSpec objects were replaced with arbitrary objects that have:
* session_name and session_description attributes
* are callable, taking a request object and returning a Session
* a standard SessionHandler class to facilitate creating these objects
* a create_handler classmethod on Session objects to make it even simpler
* an enaml.stdlib.sessions module with helpers aimed at the common case of creating a Session and SessionHandler based on an Enaml component.

We probably still need a helper for making simple applications, but I think we're in pretty good shape right now.

If there are no objections or fixes by about noon Friday, I'll just go ahead and merge this.