[Zope3-dev] best practices for registry-like functionality
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Apr 8 15:17:03 EDT 2004
On Thursday 08 April 2004 13:27, Garrett Smith wrote:
> I need to manage a set of vocabulary-like objects for a site. These
> vocab objects will be used by widgets.
>
> These objects are not content, so I want to store and manage them in a
> site management folder. Specifically, I need to be able to:
>
> - Add new vocab objects
> - Edit existing vocab objects
> - Delete vocab objects
> - Lookup a vocabulary by name
> - Get a list of all registered vocab objects
>
> In the past, I would have written a service for this, which would
> maintain its own contained set of vocab objects. But I suspect I really
> want a utility, since the recent trend has been to use utilities over
> services.
For very simple vocab objects, like strings and ints, see my manageable
vocabulary code in the bug tracker product.
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-dev
mailing list