entity.py
branchtls-sprint
changeset 985 6a25c58a1c23
parent 979 93447d75c4b9
parent 902 e4de959c76af
child 1008 f54b4309a3f5
equal deleted inserted replaced
984:536e421b082b 985:6a25c58a1c23
    43     MODE_TAGS = frozenset(('link', 'create'))
    43     MODE_TAGS = frozenset(('link', 'create'))
    44     CATEGORY_TAGS = frozenset(('primary', 'secondary', 'generic', 'generated',
    44     CATEGORY_TAGS = frozenset(('primary', 'secondary', 'generic', 'generated',
    45                                'inlineview'))
    45                                'inlineview'))
    46 
    46 
    47     def __init__(self, eclass, tagdefs):
    47     def __init__(self, eclass, tagdefs):
       
    48         # XXX if a rtag is redefined in a subclass,
       
    49         # the rtag of the base class overwrite the rtag of the subclass
    48         self.eclass = eclass
    50         self.eclass = eclass
    49         self._tagdefs = {}
    51         self._tagdefs = {}
    50         for relation, tags in tagdefs.iteritems():
    52         for relation, tags in tagdefs.iteritems():
    51             # tags must become a set
    53             # tags must become a set
    52             if isinstance(tags, basestring):
    54             if isinstance(tags, basestring):