doc/book/devrepo/entityclasses/data-as-objects.rst
changeset 12556 d1c659d70368
parent 10491 c67bcee93248
equal deleted inserted replaced
12555:4892e0e48556 12556:d1c659d70368
   111 
   111 
   112 You have the possibility to redefine whatever pleases you, as follow:
   112 You have the possibility to redefine whatever pleases you, as follow:
   113 
   113 
   114 .. sourcecode:: python
   114 .. sourcecode:: python
   115 
   115 
   116     from cubes.OTHER_CUBE import entities
   116     from cubicweb_OTHER_CUBE import entities
   117 
   117 
   118     class EntityExample(entities.EntityExample):
   118     class EntityExample(entities.EntityExample):
   119 
   119 
   120         def dc_long_title(self):
   120         def dc_long_title(self):
   121             return '%s (%s)' % (self.name, self.description)
   121             return '%s (%s)' % (self.name, self.description)