Re: [Zope3-Users] object containment of root folder

2007-06-19 Thread Stephan Richter
On Monday 18 June 2007 14:18, Markus Leist wrote:
 what's the best/preferred way of dynamically restricting possible object
 types in the root-folder of a zope3.3-instance?

I usually do not use the Zope 3 root as the root of my application, since I 
want to (1) have multiple applications per Zope 3 instance/DB, and (2) have a 
custom site object.

Your case is the latter. I would really like to tell you that it is possible 
to register an adapter for the root folder factory, but this is not the case. 
See zope.app.appset.bootstrap, line 182.

Thus the only solution is to not use the root folder as the root of your 
application, but create a sub-site. Then use Apache to hide the unwanted path 
details. Note that you usually write customs skins anyways, which warrants an 
Apache rewrite rule.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] object containment of root folder

2007-06-18 Thread Markus Leist
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
 
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users