Hi,

I have a custom Form subclass which displays different set of fields depending 
on whether user is logged in or not. It does so by displaying some additional 
fields if it determine (in update_data()) that the user is not logged in.

The problem is that these additional fields not listed in form.fields attribute 
and therefore when the form is submitted and validated these extra fields are 
not processed. IOW, they are not validated and their content is not preserved 
when the form is redisplayed on error.

One solution is to define two different forms and substituting correct form 
depending on the condition in question. It works and actually I had it that 
way. The problem with it is that this is really *one* form and I want it 
processed as such.


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

Reply via email to