equal
deleted
inserted
replaced
88 self.counter = 0 |
88 self.counter = 0 |
89 |
89 |
90 def init_primaryview_display_ctrl(rtag, sschema, rschema, oschema, role): |
90 def init_primaryview_display_ctrl(rtag, sschema, rschema, oschema, role): |
91 if role == 'subject': |
91 if role == 'subject': |
92 oschema = '*' |
92 oschema = '*' |
93 label = rschema.type |
|
94 else: |
93 else: |
95 sschema = '*' |
94 sschema = '*' |
96 label = '%s_%s' % (rschema, role) |
|
97 rtag.setdefault((sschema, rschema, oschema, role), 'label', label) |
|
98 rtag.counter += 1 |
95 rtag.counter += 1 |
99 rtag.setdefault((sschema, rschema, oschema, role), 'order', rtag.counter) |
96 rtag.setdefault((sschema, rschema, oschema, role), 'order', rtag.counter) |
100 |
97 |
101 primaryview_display_ctrl = DisplayCtrlRelationTags('primaryview_display_ctrl', |
98 primaryview_display_ctrl = DisplayCtrlRelationTags('primaryview_display_ctrl', |
102 init_primaryview_display_ctrl) |
99 init_primaryview_display_ctrl) |