Ejemplo n.º 1
0
 def elements(self, local=False):
     """
     Overrides the elements method in ContainerObject base class to allow
     for "local" kwarg to only iterate the members that are declared in
     this instance (i.e. not the prototype)
     """
     if local:
         return iter(self._properties.values())
     else:
         return ContainerObject.elements(self)
Ejemplo n.º 2
0
 def elements(self, local=False):
     """
     Overrides the elements method in ContainerObject base class to allow
     for "local" kwarg to only iterate the members that are declared in
     this instance (i.e. not the prototype)
     """
     if local:
         return iter(self._properties.values())
     else:
         return ContainerObject.elements(self)