I'd rather add it to app.cfg
And you access it by doing

import turbogears
turbogears.config.get('custom_setting')

On 9/6/07, Peter M <[EMAIL PROTECTED]> wrote:
>
> If I want my own custom config variable:
>
> 1) I assume I should add it to dev.cfg, is there some special syntax?
>
> 2) how I can access it's value in model.py?
>
> I was googling around but no luck. :-/
>
> It might be embarrassingly trivial but  I need help :-)
>
> Thanks
>
> --
> ----
> Peter
>
> >
>


-- 
kv. Halldór Rúnarsson

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to