On Tuesday 16 June 2009 12:14:36 enrico secco wrote:
> If I must pre-define the form widget I can define a dictionary where I
> insert all the possibility for my form widget.
> So I can choise the correct form from the value of the 'role'
> parameter in the function activity1.
> But how can I use the same form in the validate line?
> At this level I do'nt know the 'role' parameter so I can't choise the
> correct form from the dictionary.
> Enrico

You need to make the role-parameter a hidden parameter of your form, and base 
your decision based on that.

Diez

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