equal
deleted
inserted
replaced
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): |