cwvreg.py
changeset 2669 cab66dfe0db6
parent 2659 b6f6964bddd3
child 2684 c84691380dd4
equal deleted inserted replaced
2668:979c7ccb4a86 2669:cab66dfe0db6
   238             return self[regid]
   238             return self[regid]
   239 
   239 
   240     def items(self):
   240     def items(self):
   241         return [item for item in super(CubicWebVRegistry, self).items()
   241         return [item for item in super(CubicWebVRegistry, self).items()
   242                 if not item[0] in ('propertydefs', 'propertyvalues')]
   242                 if not item[0] in ('propertydefs', 'propertyvalues')]
       
   243     def iteritems(self):
       
   244         return (item for item in super(CubicWebVRegistry, self).iteritems()
       
   245                 if not item[0] in ('propertydefs', 'propertyvalues'))
   243 
   246 
   244     def values(self):
   247     def values(self):
   245         return [value for key, value in self.items()]
   248         return [value for key, value in self.items()]
       
   249     def itervalues(self):
       
   250         return (value for key, value in self.items())
   246 
   251 
   247     def reset(self):
   252     def reset(self):
   248         super(CubicWebVRegistry, self).reset()
   253         super(CubicWebVRegistry, self).reset()
   249         self._needs_iface = {}
   254         self._needs_iface = {}
   250         # two special registries, propertydefs which care all the property
   255         # two special registries, propertydefs which care all the property