server/sources/native.py
changeset 10206 0ecd61f4bd37
parent 10203 1443fe643a38
child 10208 249126034c0e
equal deleted inserted replaced
10205:737271ffe407 10206:0ecd61f4bd37
  1149                         edited[rtype] = value
  1149                         edited[rtype] = value
  1150                     except UnknownEid:
  1150                     except UnknownEid:
  1151                         err(cnx._("can't restore entity %(eid)s of type %(eschema)s, "
  1151                         err(cnx._("can't restore entity %(eid)s of type %(eschema)s, "
  1152                                       "target of %(rtype)s (eid %(value)s) does not exist any longer")
  1152                                       "target of %(rtype)s (eid %(value)s) does not exist any longer")
  1153                             % locals())
  1153                             % locals())
       
  1154                         changes[column] = None
  1154             elif eschema.destination(rtype) in ('Bytes', 'Password'):
  1155             elif eschema.destination(rtype) in ('Bytes', 'Password'):
  1155                 changes[column] = self._binary(value)
  1156                 changes[column] = self._binary(value)
  1156                 edited[rtype] = Binary(value)
  1157                 edited[rtype] = Binary(value)
  1157             elif isinstance(value, str):
  1158             elif isinstance(value, str):
  1158                 edited[rtype] = unicode(value, cnx.encoding, 'replace')
  1159                 edited[rtype] = unicode(value, cnx.encoding, 'replace')