equal
deleted
inserted
replaced
70 category = 'primary' |
70 category = 'primary' |
71 elif rschema.is_final(): |
71 elif rschema.is_final(): |
72 category = 'secondary' |
72 category = 'secondary' |
73 else: |
73 else: |
74 category = 'generic' |
74 category = 'generic' |
75 cls.rcategories.tag_relation(category, (X, rschema, Y), role) |
75 cls.rcategories.tag_relation((X, rschema, Y, category, |
|
76 tagged=role) |
76 |
77 |
77 @classmethod |
78 @classmethod |
78 def erelations_by_category(cls, entity, categories=None, permission=None, rtags=None): |
79 def erelations_by_category(cls, entity, categories=None, permission=None, rtags=None): |
79 """return a list of (relation schema, target schemas, role) matching |
80 """return a list of (relation schema, target schemas, role) matching |
80 categories and permission |
81 categories and permission |