Ben Bangert at about 10/23/07 9:49 AM said: > On Oct 23, 2007, at 8:18 AM, Philip Cooper wrote: > >>> ############################################## >>> # some configuration for the crm114 classifier >>> ############################################## >>> [crm] >>> classifier =<osb unique microgroom> >>> classes = dk is bs cf se >>> dir =~/working/edgar/data/crm >>> extension =.css >>> logfile =%(dir)s/learning.log >> >> How can I get at them in my app. Do I need to call ConfigParser >> myself?? I think if I don't use the [crm] section they are available >> in config['app_conf'] but that seems wrong. >> >> Dam, feel like a newbie again :`( > > No worries, they're in the pylons.config object. > pylons.config['logfile'], etc.
Actually not. pylons.config.keys() shows me all of the things in the config file under the section [app:main] It would work if I DON'T put my "crm" stuff in a different section but I put it there because I have all kinds of apps that use this config stuff. If I don't put it in it's own section, I will likely have all kinds of name collisions. Things like logfile, dir, extension, classes are all too common. I'd rather not have to hack up my code with crm_dir, crm_extension etc. Otherwise my config life gets harder not easier. -- Phil --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
