[Zope3-dev] Re: Singleton content objects

Philipp von Weitershausen philipp at weitershausen.de
Wed Oct 27 10:00:32 EDT 2004


Nicholas Wieland wrote:
> Hi *,
>   I want a content object to be a singleton.
>   To clarify a bit more - the singleton would be a Shopping Cart.
>   Do I have to write it like a local utility ? What is the "Right Way"
>   to do a thing like that ?
>   Pointers to documentation or source code are ok.

How are shopping carts singletons? Do all people in a supermarkt use the 
same shopping cart?

You're probably looking for a simple content object to be stored in a 
session data container. Reading trunk/src/zope/app/session/interfaces.py 
should be a good first step.

Philipp



More information about the Zope3-dev mailing list