entity.py
changeset 7816 a8a424a78c26
parent 7803 02e141e41da2
child 7827 9bbf83f68bcc
equal deleted inserted replaced
7812:6806a7db9732 7816:a8a424a78c26
    75     fetched)
    75     fetched)
    76 
    76 
    77     :type e_schema: `cubicweb.schema.EntitySchema`
    77     :type e_schema: `cubicweb.schema.EntitySchema`
    78     :ivar e_schema: the entity's schema
    78     :ivar e_schema: the entity's schema
    79 
    79 
    80     :type rest_var: str
    80     :type rest_attr: str
    81     :cvar rest_var: indicates which attribute should be used to build REST urls
    81     :cvar rest_attr: indicates which attribute should be used to build REST urls
    82                     If None is specified, the first non-meta attribute will
    82        If `None` is specified (the default), the first unique attribute will
    83                     be used
    83        be used ('eid' if none found)
    84 
    84 
    85     :type cw_skip_copy_for: list
    85     :type cw_skip_copy_for: list
    86     :cvar cw_skip_copy_for: a list of couples (rtype, role) for each relation
    86     :cvar cw_skip_copy_for: a list of couples (rtype, role) for each relation
    87                             that should be skipped when copying
    87        that should be skipped when copying this kind of entity. Note that some
    88                             this kind of entity. Note that some relations such
    88        relations such as composite relations or relations that have '?1' as
    89                             as composite relations or relations that have '?1' as object
    89        object cardinality are always skipped.
    90                             cardinality are always skipped.
       
    91     """
    90     """
    92     __registry__ = 'etypes'
    91     __registry__ = 'etypes'
    93     __select__ = yes()
    92     __select__ = yes()
    94 
    93 
    95     # class attributes that must be set in class definition
    94     # class attributes that must be set in class definition