[Zope3-Users] object containment of root folder

Markus Leist ml_zope3_dev at ikom-online.de
Mon Jun 18 14:18:39 EDT 2007


Hi all,

what's the best/preferred way of dynamically restricting possible object types
in the root-folder of a zope3.3-instance?

In normal object this is defined in _interfaces.py_:
(e.g.)
-------------------------------
[...]
from zope.app.container.constraints import contains
[...]
class INet(ISupernode):
[...]
	contains('org.ict_ok.components.host.interfaces.IHost')
-------------------------------

I have some bootstrap-routines for creating and modifying
utilities. Here i have to dynamically set the contains of the
root-folder.

Any Idea? Thanx.

Markus
 


More information about the Zope3-users mailing list