[Grok-dev] Entity Relations and Forms

rmoskal rmoskal at mostmedia.com
Sat Aug 16 15:11:03 EDT 2008


Greetings:

I'm new to Grok (and Zope 3).  In an app I'm working on, I want to relate
some of my entities.

I have a Title object which is a container for Review(s)

I also have Contributor who live in a Contributors container.  These are
manage separately from the Title. 

I want to associate a Contributor with a Review.  I want to do this by
having a drop down list of Contributors on the Review edit/add forms.

I found a post on http://grahamstratton.org/straightornamental/, explaining
how I could add the entry form for the Contributor to Review object using
some MultiAdapter.  Instead of this, I simply need a drop down list of
existing Contributor(s) and am not sure how to adapt that code to do that.

It also seems to that I could accomplish the same thing by creating a
vocabulary out the my container full of Contributors.

Which method is preferable? What's the common pattern for doing something
like this?


Thanks and regards,


Robert
-- 
View this message in context: http://www.nabble.com/Entity-Relations-and-Forms-tp19014121p19014121.html
Sent from the Grok mailing list archive at Nabble.com.



More information about the Grok-dev mailing list