7 messages in com.googlegroups.pylons-discussRe: Config question
FromSent OnAttachments
Philip Cooper23 Oct 2007 08:18 
Ben Bangert23 Oct 2007 08:49 
Philip Cooper23 Oct 2007 09:40 
Ian Bicking23 Oct 2007 10:28 
Ben Bangert23 Oct 2007 11:18 
Ian Bicking23 Oct 2007 11:21 
Philip Cooper23 Oct 2007 11:59 
Subject:Re: Config question
From:Ben Bangert (ben-@public.gmane.org)
Date:10/23/2007 08:49:05 AM
List:com.googlegroups.pylons-discuss

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.

Cheers, Ben