cubicweb/web/views/uicfg.py
changeset 12313 aa15dd521d04
parent 12213 1d7e4f98f902
child 12567 26744ad37953
child 12875 1dc4f480ba1a
equal deleted inserted replaced
12312:a7c4b13a2d60 12313:aa15dd521d04
   231         else:
   231         else:
   232             # we still need to expand wildcard in defined keys
   232             # we still need to expand wildcard in defined keys
   233             for key in list(self._tagdefs):
   233             for key in list(self._tagdefs):
   234                 stype, rtype, otype, role = key
   234                 stype, rtype, otype, role = key
   235                 rschema = schema.rschema(rtype)
   235                 rschema = schema.rschema(rtype)
   236                 if stype == '*' and stype == '*':
   236                 if stype == '*' and otype == '*':
   237                     concrete_rdefs = rschema.rdefs.keys()
   237                     concrete_rdefs = rschema.rdefs.keys()
   238                 elif stype == '*':
   238                 elif stype == '*':
   239                     concrete_rdefs = zip(rschema.subjects(otype), repeat(otype))
   239                     concrete_rdefs = zip(rschema.subjects(otype), repeat(otype))
   240                 elif otype == '*':
   240                 elif otype == '*':
   241                     concrete_rdefs = zip(repeat(stype), rschema.objects(stype))
   241                     concrete_rdefs = zip(repeat(stype), rschema.objects(stype))