"Gary Doades" <[EMAIL PROTECTED]> writes:

> BTW I just had a peek at the Django newforms widgets (fields). It
> seems they had a similar problem. It looks like it was solved by
> creating the form definition statically (like TG) but at runtime the
> user creates an instance of the form. At instance construction the
> form copies its class field attributes into instance fields attributes
> (self.fields) so that they can be modified at runtime without
> affecting any other form instance. This seems to work for statically
> declaring the form but is efficient and flexible at runtime as the
> form "definition" (the list of widgets etc.) is copied to a mutable
> instance.

And how they validate that the submitted form is respecting the business rules
for that condition?  They rebuild the widget when validating it so that they
can apply the same rules?  Or the developer has to code this somehow when
processing the information sent?


-- 
Jorge Godoy      <[EMAIL PROTECTED]>

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