to avoid confusions, implements iteritems/itervalues as well
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 04 Aug 2009 00:54:41 +0200
changeset 2669 cab66dfe0db6
parent 2668 979c7ccb4a86
child 2670 4747145ff69c
to avoid confusions, implements iteritems/itervalues as well
cwvreg.py
--- a/cwvreg.py	Tue Aug 04 00:51:00 2009 +0200
+++ b/cwvreg.py	Tue Aug 04 00:54:41 2009 +0200
@@ -240,9 +240,14 @@
     def items(self):
         return [item for item in super(CubicWebVRegistry, self).items()
                 if not item[0] in ('propertydefs', 'propertyvalues')]
+    def iteritems(self):
+        return (item for item in super(CubicWebVRegistry, self).iteritems()
+                if not item[0] in ('propertydefs', 'propertyvalues'))
 
     def values(self):
         return [value for key, value in self.items()]
+    def itervalues(self):
+        return (value for key, value in self.items())
 
     def reset(self):
         super(CubicWebVRegistry, self).reset()