On Thu, 2007-09-06 at 17:14 -0400, Peter M wrote:
> If I want my own custom config variable:
>
> 1) I assume I should add it to dev.cfg, is there some special syntax?
I put
project.name='my project name'
into app.cfg. dev.cfg should not be different in principle.
>
> 2) how I can access it's value in model.py?
from turbogears import config
print config.get('project.name')
>
> I was googling around but no luck. :-/
>
> It might be embarrassingly trivial but I need help :-)
>
> Thanks
--
Lloyd Kvam
Venix Corp
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---