doc/book/en/development/devweb/rtags.rst
branchtls-sprint
changeset 1737 53af44f1b649
parent 1714 a721966779be
child 3579 ebeb1ae451b7
equal deleted inserted replaced
1736:40190717e2de 1737:53af44f1b649
     1 
     1 Configuring the generated interface
     2 Relation tags
     2 -----------------------------------
     3 --------------
       
     4 XXX cubicweb.rtags
       
     5     ref to action box and auto edit form
       
     6 
     3 
     7 
     4 
     8 *rtags* allow to specify certain behaviors of relations relative to a given
     5 The "Relation tags" structure
     9 entity type (see later). They are defined  for ::
     6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    10 
     7 .. automodule:: `cubicweb.rtags`
    11   <relation type>, <context position ("subject" ou "object")>, <subject entity type or *>, <object entity type or *> 
     8    :members:
    12 
       
    13 and as values may be a `set` or single value, depending on what the relation tags is used for.
       
    14 
       
    15 It is possible to simplify this dictionary:
       
    16 
       
    17 * if we want a marker to apply independently from a subject or object entity type,
       
    18   we have to use the string `*` as entity type
       
    19 
     9 
    20 
    10 
    21 Please note that this dictionary is *treated at the time the class is created*.
    11 The `uicfg` module (:mod:`cubicweb.web.uicfg`)
    22 It is automatically merged with the parent class(es) (no need to copy the
    12 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    23 dictionary from the parent class to modify it). Also, modifying it after the 
    13 .. automodule:: `cubicweb.web.uicfg`
    24 class is created will not have any effect...
    14    :members: