doc/book/en/development/entityclasses/data-as-objects.rst
changeset 2476 1294a6bdf3bf
parent 2172 cf8f9180e63e
child 3283 4f53eb3f1331
equal deleted inserted replaced
2475:b6753521129d 2476:1294a6bdf3bf
    59 
    59 
    60 
    60 
    61 Tne :class:`AnyEntity` class
    61 Tne :class:`AnyEntity` class
    62 ----------------------------
    62 ----------------------------
    63 
    63 
    64 To provide a specific behavior for each entity, we have to define
    64 To provide a specific behavior for each entity, we have to define a class
    65 a class inheriting from `cubicweb.entities.AnyEntity`. In general, we
    65 inheriting from `cubicweb.entities.AnyEntity`. In general, we define this class
    66 define this class in a module of `mycube.entities` package of an application
    66 in `mycube.entities` module (or in a submodule if we want to split code among
    67 so that it will be available on both server and client side.
    67 multiple files) so that it will be available on both server and client side.
    68 
    68 
    69 The class `AnyEntity` is loaded dynamically from the class `Entity`
    69 The class `AnyEntity` is loaded dynamically from the class `Entity`
    70 (`cubciweb.entity`). We define a sub-class to add methods or to
    70 (`cubciweb.entity`). We define a sub-class to add methods or to
    71 specialize the handling of a given entity type
    71 specialize the handling of a given entity type
    72 
    72