entity.py
branchstable
changeset 2320 17dc9661af57
parent 2312 af4d8f75c5db
child 2381 caad2367d940
equal deleted inserted replaced
2319:654decb099e3 2320:17dc9661af57
   657                 except IndexError:
   657                 except IndexError:
   658                     # probably a multisource error
   658                     # probably a multisource error
   659                     self.critical("can't get value for attribute %s of entity with eid %s",
   659                     self.critical("can't get value for attribute %s of entity with eid %s",
   660                                   name, self.eid)
   660                                   name, self.eid)
   661                     if self.e_schema.destination(name) == 'String':
   661                     if self.e_schema.destination(name) == 'String':
       
   662                         # XXX (syt) imo emtpy string is better
   662                         self[name] = value = self.req._('unaccessible')
   663                         self[name] = value = self.req._('unaccessible')
   663                     else:
   664                     else:
   664                         self[name] = value = None
   665                         self[name] = value = None
   665         return value
   666         return value
   666 
   667