I don't think there's any concrete patterns yet for where such things get stuffed. I myself use a combination of items set on the application object itself and additionally in the registry ... and sometimes in the settings dict attached to the registry.
For example, Khufu-SQLAHelper stores the database session factory callable on the middleware instance. During the scope of a request, the session itself is stuffed into the "environ" and then later still picked up and placed on the request object as a "db" attribute. This does mean SQL access can only be done if you have access to either the application object (for the session factory) or the request/environ objects. This pattern seems to work well for me. When I stuff things into the settings dict (config.registry.settings) I usually prefix my key names with some namespace prefix such as "khufu.somevar" to avoid naming clashes. - Rocky -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com. To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en.