On Tue, Oct 7, 2008 at 7:57 AM, Mark Ramm <[EMAIL PROTECTED]> wrote:
>
> you can do that, and it should work.
>
> You can also do:
>
> from tg import config
>
> config.get('key')
>
so tg.config and pylons.config are the same object?
> or even
>
> config.key
>
> because we've added a wrapper for config that allows attribute style lookup.
>
which is the fallback there? do we get attribute error?
Should this be added to the Config docs?
> --Mark
>
> On Tue, Oct 7, 2008 at 9:48 AM, Jorge Vargas <[EMAIL PROTECTED]> wrote:
>>
>> is this the correct way of getting a value from the *.ini files? or I
>> should be using AppConfig?
>>
>> from pylons import config
>> pylons.config.get('key')
>>
>> >
>>
>
>
>
> --
> Mark Ramm-Christensen
> email: mark at compoundthinking dot com
> blog: www.compoundthinking.com/blog
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---