[Zope3-Users] Referencing objects in auto-generated forms
Ruben Gutierrez
ruben.gutierrez at gmail.com
Sat Apr 15 11:41:57 EDT 2006
I'm having trouble understanding some of the semantics or conventions with
Zope. One simple question I have is how do I create a list of selectable
values in a form. I understand you can use a Choice object, but I would like
to populate the list with all available objects of a specific type, within a
specific container. For example, I have a form which requests an address.
How do I populate the State (e.g., CA, HI, NY) field from a list of stored
State objects? I don't want to include all states, as some may not be
relevant (maybe the form is region-specific). But, I also don't want to
statically list the states in a Choice declaration, either.
The state example is a simple example to help me understand, basically, how
I would emulate a foreign key reference in a RDBMS using the ZODB.
Ruben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20060415/404023a4/attachment.htm
More information about the Zope3-users
mailing list