equal
deleted
inserted
replaced
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') |