Hi,

I'd like to be able to access arbitrary template variables (passed
from the controller) from within my custom form template. It appears
that I can only access "name", "action", "method", "fields",
"hidden_fields" and perhaps some others.

For example, if my controller returns this:

return {form = form, values = record, option_list = {'some_field',
['a','b','c']}, site = site}

Is there a way to access "site" from a custom form template? What
about accessing "values" directly?

What am I trying to do? I'm trying to change the look of a form based
on the value of "site". My work-around is to use separate templates:

http://paste.turbogears.org/paste/5586

Thanks for your help.

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