server/session.py
changeset 1169 52058e8a3af9
parent 974 3ec0a7bd87ae
child 1263 01152fffd593
equal deleted inserted replaced
1161:936c311010fc 1169:52058e8a3af9
   442                 value = row[index]
   442                 value = row[index]
   443                 if value is None:
   443                 if value is None:
   444                     # None value inserted by an outer join, no type
   444                     # None value inserted by an outer join, no type
   445                     row_descr[index] = None
   445                     row_descr[index] = None
   446                     continue
   446                     continue
   447                 if isfinal:
   447                 try:
   448                     row_descr[index] = etype_from_pyobj(value)
   448                     if isfinal:
   449                 else:
   449                         row_descr[index] = etype_from_pyobj(value)
   450                     row_descr[index] = etype_from_eid(value)[0]
   450                     else:
       
   451                         row_descr[index] = etype_from_eid(value)[0]
       
   452                 except UnknownEid:
       
   453                     self.critical('wrong eid in repository, should check database')
       
   454                     row_descr[index] = row[index] = None
   451             description.append(tuple(row_descr))
   455             description.append(tuple(row_descr))
   452         return description
   456         return description
   453 
   457 
   454     
   458     
   455 class ChildSession(Session):
   459 class ChildSession(Session):