cwvreg.py
changeset 3185 bd0126d17e83
parent 3163 edfe43ceaa35
parent 3184 613064b49331
child 3230 1d25e928c299
equal deleted inserted replaced
3163:edfe43ceaa35 3185:bd0126d17e83
   136             return self.select('Any', 'Any')
   136             return self.select('Any', 'Any')
   137         eschema = self.schema.eschema(etype)
   137         eschema = self.schema.eschema(etype)
   138         baseschemas = [eschema] + eschema.ancestors()
   138         baseschemas = [eschema] + eschema.ancestors()
   139         # browse ancestors from most specific to most generic and try to find an
   139         # browse ancestors from most specific to most generic and try to find an
   140         # associated custom entity class
   140         # associated custom entity class
       
   141         cls = None
   141         for baseschema in baseschemas:
   142         for baseschema in baseschemas:
   142             try:
   143             try:
   143                 btype = ETYPE_NAME_MAP[baseschema]
   144                 btype = ETYPE_NAME_MAP[baseschema]
   144             except KeyError:
   145             except KeyError:
   145                 btype = str(baseschema)
   146                 btype = str(baseschema)