[Zope-CMF] Zope Version question

Dieter Maurer dieter@handshake.de
Fri, 12 Jul 2002 21:15:25 +0200


Mehdy DRAOUI writes:
 > I'd like to allow people adding some types of objects only when they are
 > in a Version via the Zope API. How can I do that ?
 > If anyone got an idea, it will be welcome...
Zope does not support that through configuration only.
You must program it.

When you are in a version, there is a cookie "Zope_version" (or similar
spelled). Your code can check for it and do appropriate things.


Dieter