doc/book/en/development/devweb/form.rst
branchstable
changeset 2172 cf8f9180e63e
parent 1714 a721966779be
child 4443 83ff2bb898a5
equal deleted inserted replaced
2125:19861294506f 2172:cf8f9180e63e
     7 :Vocabulary control on relations:
     7 :Vocabulary control on relations:
     8 
     8 
     9   * `vocabulary(rtype, x='subject', limit=None)`, called by the
     9   * `vocabulary(rtype, x='subject', limit=None)`, called by the
    10     editing views, it returns a list of couples (label, eid) of entities
    10     editing views, it returns a list of couples (label, eid) of entities
    11     that could be related to the entity by the relation `rtype`
    11     that could be related to the entity by the relation `rtype`
    12   * `subject_relation_vocabulary(rtype, limit=None)`, called internally 
    12   * `subject_relation_vocabulary(rtype, limit=None)`, called internally
    13     by  `vocabulary` in the case of a subject relation
    13     by  `vocabulary` in the case of a subject relation
    14   * `object_relation_vocabulary(rtype, limit=None)`, called internally 
    14   * `object_relation_vocabulary(rtype, limit=None)`, called internally
    15     by  `vocabulary` in the case of an object relation
    15     by  `vocabulary` in the case of an object relation
    16   * `relation_vocabulary(rtype, targettype, x, limit=None)`, called
    16   * `relation_vocabulary(rtype, targettype, x, limit=None)`, called
    17     internally by `subject_relation_vocabulary` and `object_relation_vocabulary`
    17     internally by `subject_relation_vocabulary` and `object_relation_vocabulary`
    18 
    18 
    19 Fields
    19 Fields