equal
deleted
inserted
replaced
239 # from a query result and so it is already encrypted |
239 # from a query result and so it is already encrypted |
240 if isinstance(value, Binary): |
240 if isinstance(value, Binary): |
241 value = value.getvalue() |
241 value = value.getvalue() |
242 else: |
242 else: |
243 value = crypt_password(value) |
243 value = crypt_password(value) |
|
244 value = self.binary(value) |
244 # XXX needed for sqlite but I don't think it is for other backends |
245 # XXX needed for sqlite but I don't think it is for other backends |
245 elif atype == 'Datetime' and isinstance(value, date): |
246 elif atype == 'Datetime' and isinstance(value, date): |
246 value = todatetime(value) |
247 value = todatetime(value) |
247 elif atype == 'Date' and isinstance(value, datetime): |
248 elif atype == 'Date' and isinstance(value, datetime): |
248 value = todate(value) |
249 value = todate(value) |