[Checkins]
SVN: five.localsitemanager/trunk/src/five/localsitemanager/
Use our own component registry that extends ObjectManager so that we
Rocky Burt
rocky at serverzen.com
Thu Feb 22 17:07:46 EST 2007
Log message for revision 72769:
Use our own component registry that extends ObjectManager so that we
can traverse to it using ++etc++site and access it like a standard zope2
folder.
Changed:
U five.localsitemanager/trunk/src/five/localsitemanager/__init__.py
U five.localsitemanager/trunk/src/five/localsitemanager/configure.zcml
A five.localsitemanager/trunk/src/five/localsitemanager/registry.py
-=-
Modified: five.localsitemanager/trunk/src/five/localsitemanager/__init__.py
===================================================================
--- five.localsitemanager/trunk/src/five/localsitemanager/__init__.py 2007-02-22 21:15:18 UTC (rev 72768)
+++ five.localsitemanager/trunk/src/five/localsitemanager/__init__.py 2007-02-22 22:07:45 UTC (rev 72769)
@@ -3,7 +3,7 @@
from zope.component.globalregistry import base
from zope.traversing.interfaces import IContainmentRoot
from zope.app.component.interfaces import ISite
-from zope.component.persistentregistry import PersistentComponents
+from five.localsitemanager.registry import PersistentComponents
from five.localsitemanager import interfaces
from Products.Five.component.interfaces import IObjectManagerSite
from Products.Five.component import enableSite, disableSite
Modified: five.localsitemanager/trunk/src/five/localsitemanager/configure.zcml
===================================================================
--- five.localsitemanager/trunk/src/five/localsitemanager/configure.zcml 2007-02-22 21:15:18 UTC (rev 72768)
+++ five.localsitemanager/trunk/src/five/localsitemanager/configure.zcml 2007-02-22 22:07:45 UTC (rev 72769)
@@ -3,7 +3,7 @@
xmlns:browser="http://namespaces.zope.org/browser">
<subscriber
- for="zope.app.component.interfaces.ISite
+ for="Products.Five.component.interfaces.IObjectManagerSite
zope.app.container.interfaces.IObjectMovedEvent"
handler=".update_sitemanager_bases_handler"
/>
Added: five.localsitemanager/trunk/src/five/localsitemanager/registry.py
===================================================================
--- five.localsitemanager/trunk/src/five/localsitemanager/registry.py 2007-02-22 21:15:18 UTC (rev 72768)
+++ five.localsitemanager/trunk/src/five/localsitemanager/registry.py 2007-02-22 22:07:45 UTC (rev 72769)
@@ -0,0 +1,9 @@
+import zope.component.persistentregistry
+import OFS.ObjectManager
+
+class PersistentComponents \
+ (zope.component.persistentregistry.PersistentComponents,
+ OFS.ObjectManager.ObjectManager):
+ """An implementation of a component registry that can be persisted
+ and looks like a standard ObjectManager.
+ """
More information about the Checkins
mailing list