web/views/autoform.py
branchtls-sprint
changeset 1721 694f6a50e138
parent 1702 312310ed8a2f
child 1723 30c3a713ab61
equal deleted inserted replaced
1720:14c9a0a1aca1 1721:694f6a50e138
    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