Retrieving configuration information

View: New views
1 Messages — Rating Filter:   Alert me  

Retrieving configuration information

by Jesper Larsen-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi people,

I have a turbogears application in which I would like to add some
extra configuration values. Presently I have added the values to dev/
prod.cfg. Is this the recommended way of doing that?

I would like to use the custom approach that turbogears has taken to
configuration files using nested sections. I therefore have a section
which is something like:

# My application setup
[myapp]
[[client]]
test='teststring'

Unfortunately I haven't figured out how to retrieve the test variable
using turbogears.config.get.

Regards,
Jesper



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@...
To unsubscribe from this group, send email to turbogears-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price