Ian Bicking wrote: > At least in Pylons apps, configuration is setup during instantiation. > Configuration is generally copyable (consisting of stuff like strings, > not open file objects), so it can be cloned across processes easily.
I can understand sharing across threads, but how do you share across processes? >> The second is a problem I see an app I'm working on heading towards. >> The app has web-alterable configuration, so in a multi-threaded and >> particular multi-process environment, I need some way to get the other >> threads or processes to re-read their configuration when it has changed. > > In Paste/Pylons the configuration is stored in the environment (which is > per-request), and put into a threadlocal object for access. Again, how about across processes? And if the configuration changes once the app is up and running, how do you propogate changes to all the other app processes? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com