[Web-SIG] Generic configuration

Aaron Watters arw1961 at yahoo.com
Tue Mar 16 20:47:43 CET 2010


WHIFF has a concept of configurable resources
for application groups, if you care to take a look.

concept: 
  http://whiffdoc.appspot.com/docs/W1000_1000.resources
deployment API: 
  http://whiffdoc.appspot.com/docs/W1200_1000.DirectoryConfig
access API:
  http://whiffdoc.appspot.com/docs/W1200_1300.applicationAPI#Header8
example usage: 
  http://whiffdoc.appspot.com/docs/W1100_1200.wwiki#Header7

I'm currently extending this paradigm to allow resource
allocation with access control support.
That should be in the next release.

   -- Aaron Watters

--- On Tue, 3/16/10, Alex Morega <alex at grep.ro> wrote:

> From: Alex Morega <alex at grep.ro>
> Subject: [Web-SIG] Generic configuration
> To: web-sig at python.org
> Date: Tuesday, March 16, 2010, 11:35 AM
> Hello,
> 
> This is not really a WSGI question, it's more into general
> configuration, but I don't know of a better place to ask
> it.
> 
> Paster config files allow you to hook up WSGI applications,
> middleware, and a server, plus some (undocumented?) magic
> configuration of the logging module. But what about random
> components, like a database? Ideally I'd like to specify a
> factory for database connections and give it some
> parameters; this would return a reference to a new database
> connection. I could then pass this reference to my wsgi app
> or middleware.
> 
> Apparently the pattern is to perform this database
> configuration as part of a wsgi middleware, but that feels
> unnatural. Or one could do this outside of the paste
> configuration file, but that just splits the configuration
> needlessly into several pieces. Am I missing something
> obvious?
> 
> Thanks,
> -- Alex
> 
> _______________________________________________
> Web-SIG mailing list
> Web-SIG at python.org
> Web SIG: http://www.python.org/sigs/web-sig
> Unsubscribe: http://mail.python.org/mailman/options/web-sig/arw1961%40yahoo.com
> 


More information about the Web-SIG mailing list