rtags.py
branchstable
changeset 5314 86e5abbebfaf
parent 4931 92c9d0a5dc11
child 5421 8167de96c523
equal deleted inserted replaced
5313:c4fe397379c7 5314:86e5abbebfaf
     2 #:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     2 #:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
     3 #:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     4 #:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     4 #:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
     5 
     5 
     6 """
     6 """
     7 A RelationTag object is an object which allows to link a configuration information to a relation definition. For instance, the standard primary view uses a RelationTag object (uicfg.primaryview_section) to get the section to display relations.
     7 A RelationTag object is an object which allows to link a configuration
       
     8 information to a relation definition. For instance, the standard
       
     9 primary view uses a RelationTag object (uicfg.primaryview_section) to
       
    10 get the section to display relations.
     8 
    11 
     9 .. sourcecode:: python
    12 .. sourcecode:: python
    10 
    13 
    11    # display ``entry_of`` relations in the ``relations`` section in the ``BlogEntry`` primary view
    14    # display ``entry_of`` relations in the ``relations`` section in the ``BlogEntry`` primary view
    12    uicfg.primaryview_section.tag_subject_of(('BlogEntry', 'entry_of', '*'),
    15    uicfg.primaryview_section.tag_subject_of(('BlogEntry', 'entry_of', '*'),