[Checkins] SVN: z3ext.controlpanel/trunk/src/z3ext/controlpanel/container.py
Nikolay Kim
fafhrd at datacom.kz
Tue Feb 24 07:16:34 EST 2009
Log message for revision 97202:
Changed:
U z3ext.controlpanel/trunk/src/z3ext/controlpanel/container.py
-=-
Modified: z3ext.controlpanel/trunk/src/z3ext/controlpanel/container.py
===================================================================
--- z3ext.controlpanel/trunk/src/z3ext/controlpanel/container.py 2009-02-24 12:12:57 UTC (rev 97201)
+++ z3ext.controlpanel/trunk/src/z3ext/controlpanel/container.py 2009-02-24 12:16:34 UTC (rev 97202)
@@ -55,14 +55,15 @@
return ItemLocationProxy(removeAllProxies(item), self)
+ def __contains__(self, key):
+ return key in self.data
+
def __iter__(self):
return iter(self.data)
def __getitem__(self, key):
- item = super(ContentContainerConfiglet, self).__getitem__(key)
+ return ItemLocationProxy(removeAllProxies(self.data[key]), self)
- return ItemLocationProxy(removeAllProxies(item), self)
-
def __delitem__(self, key):
uncontained(self[key], self, key)
del self.data[key]
More information about the Checkins
mailing list