server/session.py
branchtls-sprint
changeset 1263 01152fffd593
parent 1132 96752791c2b6
parent 1169 52058e8a3af9
child 1660 d1030dd9730b
equal deleted inserted replaced
1246:76b3cd5d4f31 1263:01152fffd593
   420                 value = row[index]
   420                 value = row[index]
   421                 if value is None:
   421                 if value is None:
   422                     # None value inserted by an outer join, no type
   422                     # None value inserted by an outer join, no type
   423                     row_descr[index] = None
   423                     row_descr[index] = None
   424                     continue
   424                     continue
   425                 if isfinal:
   425                 try:
   426                     row_descr[index] = etype_from_pyobj(value)
   426                     if isfinal:
   427                 else:
   427                         row_descr[index] = etype_from_pyobj(value)
   428                     row_descr[index] = etype_from_eid(value)[0]
   428                     else:
       
   429                         row_descr[index] = etype_from_eid(value)[0]
       
   430                 except UnknownEid:
       
   431                     self.critical('wrong eid in repository, should check database')
       
   432                     row_descr[index] = row[index] = None
   429             description.append(tuple(row_descr))
   433             description.append(tuple(row_descr))
   430         return description
   434         return description
   431 
   435 
   432     
   436     
   433 class ChildSession(Session):
   437 class ChildSession(Session):