you can do that, and it should work.
You can also do:
from tg import config
config.get('key')
or even
config.key
because we've added a wrapper for config that allows attribute style lookup.
--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
-~----------~----~----~----~------~----~------~--~---