[Zope3-Users] folder list in a vocabulary

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Oct 18 08:39:17 EDT 2005


On Tuesday 18 October 2005 08:32, gnotari at linkgroup.it wrote:
> I'm writing an application that have an 'authors' folder and a 'book'
> folder.
>
> A book should have one or more authors.
> I implemented "author" as a Choice field in every book, and I'm trying a
> vocabulary to bring me the list of authors to choose from.
>
> I'm stuck 'cause I can't make out how to obtain the list of objects,
> contained in the authors folder, from the vocabulary context.

Note that I would strongly suggest using a relationship framework for this 
sort of use case. A good API is provided by ``schooltool.relationship`` and 
is heavily used in the SchoolTool code, so you have many examples.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list