[Checkins] SVN: megrok.five/trunk/src/megrok/five/component.py
grok.Container is BTree-based,
so make megrok.five.Container BTree-based as well.
Philipp von Weitershausen
philikon at philikon.de
Thu Feb 15 10:23:53 EST 2007
Log message for revision 72601:
grok.Container is BTree-based, so make megrok.five.Container BTree-based as well.
Changed:
U megrok.five/trunk/src/megrok/five/component.py
-=-
Modified: megrok.five/trunk/src/megrok/five/component.py
===================================================================
--- megrok.five/trunk/src/megrok/five/component.py 2007-02-15 15:14:50 UTC (rev 72600)
+++ megrok.five/trunk/src/megrok/five/component.py 2007-02-15 15:23:53 UTC (rev 72601)
@@ -4,6 +4,7 @@
from zope.app.container.interfaces import IContainer
from OFS.SimpleItem import SimpleItem
from OFS.ObjectManager import ObjectManager
+from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2Base
class Model(SimpleItem, grok.Model):
@@ -13,13 +14,9 @@
# This is a grok.Model only because it needs to be found as a possible
# context for views, adapters, etc.
-class Container(ObjectManager, grok.Model):
+class Container(BTreeFolder2Base, ObjectManager, grok.Model):
implements(IContainer)
- def __init__(self, id=None):
- if id is not None:
- self.id = id
-
# make Zope 2's absolute_url() happy
def getId(self):
return self.id
More information about the Checkins
mailing list