cwvreg.py
changeset 3230 1d25e928c299
parent 3185 bd0126d17e83
parent 3205 dc67e9431f34
child 3293 69c0ba095536
equal deleted inserted replaced
3199:fc63b80ec979 3230:1d25e928c299
   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
       
   142         for baseschema in baseschemas:
   141         for baseschema in baseschemas:
   143             try:
   142             try:
   144                 btype = ETYPE_NAME_MAP[baseschema]
   143                 btype = ETYPE_NAME_MAP[baseschema]
   145             except KeyError:
   144             except KeyError:
   146                 btype = str(baseschema)
   145                 btype = str(baseschema)