Re: New user introduction
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Wow--your use case is really interesting. Glad things work so far for you. On Mon, 23 Aug 2004, Richard Taylor wrote: > > One feature that I would like (and may try to hack soon) is hierarchical > config files. It would be nice to have a central config file in > /etc/pyblosxom.conf and then override these default settings in users > config.py. I guess this is only useful for people like me that are > running many bloggs on one server. The config file is a python script. So it gets imported and then the py dict is sent around in the pyblosxom request. So, in the config.py file, you can check out os.environ (probably want to look at REQUEST_URI--depends on how you distinguish between the blogs url-wise), figure out which blog is being "run", and then either set the properties for that blog by reading in a .ini file, execute another .py file or something along those lines to set the properties specific to that blog. Way back when we were deciding what to do with configuration (whether to leave it as a .py or change it to a .ini), we decided to leave it as a .py because it gives us a huge amount of flexibility for issues exactly like this. /will ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285