Logo Search packages:      
Sourcecode: zeitgeist version File versions

def _zeitgeist::engine::base::Symbol::__getattr__ (   self,
  name 
)

This small piece of magic make self.id resolve to the actual
   integer id of the entity class. 

Definition at line 45 of file base.py.

00045                                   :
            """ This small piece of magic make self.id resolve to the actual
               integer id of the entity class. """
            if name == "id":
                  if not self._id :
                        ent = self._entity_class.lookup_or_create(self.value)
                        ent.resolve()
                        self._id = ent.id
                  return self._id
            else:
                  raise AttributeError("Unknown attribute %s" % name)

class Entity(object):


Generated by  Doxygen 1.6.0   Back to index