If I understand this correctly, this should work, no?

settings = Settings.get(1)

def settings_callback(variables):
    variables["settings"] = settings

view.variableProviders.append(settings_callback)

Though the template says "settings" is not defined. I'm afraid I may
have to rewrite this docs to make it more clear ;)

On 12/13/05, Kevin Dangoor <[EMAIL PROTECTED]> wrote:
>
> On 12/13/05, Jared Kuolt <[EMAIL PROTECTED]> wrote:
> >
> > I'd like to build some settings that I want to be global, meaning i
> > don't have to pass them to the kid templates.
> >
> > How can I create a global variable so Kid can use it?
>
> http://www.turbogears.org/docs/gettingstarted.html#predefined
>
> http://www.turbogears.org/docs/api/turbogears.view-module.html#variableProviders
>
> Kevin
>
> --
> Kevin Dangoor
> Author of the Zesty News RSS newsreader
>
> email: [EMAIL PROTECTED]
> company: http://www.BlazingThings.com
> blog: http://www.BlueSkyOnMars.com
>


--
[EMAIL PROTECTED]

Reply via email to