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.

Zope3-users mailing list

Reply via email to