FWIW, I started working on this approach a few weeks ago, and have
been loving it.
I attach two Pylons-style Attribute-Safe objects onto the request at
init :
request.app_meta
request.workspace
app_meta contains stuff like "is the user logged in?" , timestamp /
datetimes for the request, links to packages that store 'constants',
etc. All that is generated on init.
workspace is where i progressively store request specific data that
the application logic works on, like SqlAlchemy objects or cached
dicts. unlike storing this onto the view class, it becomes available
anywhere i have a request object.
I found this works ridiculously well.
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.