> In what ways are the form fields varying? 

In our current system, you select a table, then select a
specific record in the table (optionally by category). The
table and record selections are then passed to a Detail
page, which gets the meta-definition for the table and how
to display the fields of the table from the database, and
generates the form.

So for a specific user's single interaction with the form
it shouldn't change (ie for validation, but see your
comment below), but if the user chooses a new table to get
a record from then the form could change completely. Really
can't be cached I guess.

> There's things in their for
> dynamic select fields, and you can hide fields, which
> provides a certain
> dynamicism -- you can define a form with all possible
> fields, and hide
> the ones that aren't necessary.

I suppose we could generate all the possible forms (since
they are fixed for a specific table). But tables can also
be dynamically added to the system, and that needs to show
up.
 
> The reason it is defined in __init__ is because the form
> generation/validation/regeneration process always has to
> be working off
> the same form definition -- if the definition is dynamic,
> you might be
> validation based on a definition that doesn't match the
> definition used
> to create the form.

I suppose this is a possibility. Really, the form
definition needs to stay consistent for a single user
walking through the process, but regenerate for the next
user or the next time this user loads it. Because a user
interaction may change the system for the next use. Hmm.

> I did play around with the idea of a
> MutableFormDefinition -- the code
> for which is still in Form.py, but still untested.

I just saw this, I'll take a further look.

Thanks,

Luke

=====
------------------
Reference Counting Garbage Collection:
Look out philosophy majors, things really DO
cease to exist when no one is looking at them!
------------------

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to