Xavier Morel
8ab5f3979b
[ADD] deduplication of website images being uploaded
...
There is a deduplication in ir.attachment, but it's only for FS-stored content
*and* it only deduplicates storage not models (as there are access rights
issues involved).
The goal here is to always return the same attachment when a user uploads the
exact same image multiple times (because it's simpler or whatever).
Initially tried to use a binary field & digest(), but search() blows up
because it tries to utf-8 encode raw binary data. So use char & hexdigest
instead.
_compute_checksum returns None if the provided attachment data does not look
like a website image attachment.
Unhandled: multiple existing matches, maybe a UNIQUE constraint on the
checksum field would be a good idea just in case.
cherrypicked from saas-3's xmo@openerp.com-20140303153855-5f2l8v0jq2mgb26f
which had to be backed out (as the patch adds a new stored field)
bzr revid: xmo@openerp.com-20140304133117-r88p9zl2tc9tsh75
2014-03-04 14:31:17 +01:00
..
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-01-28 21:58:23 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-02-04 06:48:35 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-02-21 12:40:04 +01:00
2014-02-13 16:12:08 +01:00
2014-03-04 07:52:38 +00:00
2014-02-18 18:15:08 +01:00
2014-03-04 07:52:38 +00:00
2014-01-29 13:13:16 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-02-13 16:12:08 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-02-20 17:38:15 +01:00
2014-02-24 18:25:47 +01:00
2014-02-12 17:51:45 +01:00
2014-01-02 05:45:30 +00:00
2014-02-20 16:45:17 +01:00
2014-01-29 20:08:34 +01:00
2014-03-04 07:52:38 +00:00
2013-12-19 15:55:28 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-01-26 21:43:34 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-02-19 13:35:05 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-01-31 01:51:57 +01:00
2014-01-31 01:51:57 +01:00
2014-01-31 01:51:57 +01:00
2014-01-31 01:51:57 +01:00
2014-01-31 01:51:57 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-01-06 17:50:01 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-01-27 19:58:20 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-02-27 17:55:09 +01:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-03-04 07:52:38 +00:00
2014-02-27 17:40:18 +01:00
2014-03-01 05:51:21 +00:00
2014-02-26 06:34:58 +00:00
2014-02-26 06:34:58 +00:00
2014-02-26 06:34:58 +00:00
2014-02-26 06:34:58 +00:00
2014-03-01 05:51:21 +00:00
2014-02-26 06:34:58 +00:00
2014-02-11 13:26:22 +01:00
2014-01-06 14:16:05 +01:00
2014-03-04 07:52:38 +00:00
2014-03-01 05:51:21 +00:00
2014-02-21 15:35:18 +01:00
2014-02-26 06:34:58 +00:00
2014-03-04 14:31:17 +01:00
2014-02-20 17:38:15 +01:00
2014-01-30 12:24:08 +01:00
2014-01-31 11:42:32 +01:00
2014-01-31 10:39:02 +01:00
2014-02-27 14:11:44 +01:00
2014-02-25 10:05:06 +01:00
2014-02-27 14:11:44 +01:00
2014-01-29 10:10:50 +01:00
2014-01-27 23:49:01 +01:00
2014-01-29 10:51:32 +01:00
2014-02-10 17:41:13 +01:00
2014-02-20 17:38:15 +01:00
2014-01-31 10:39:02 +01:00
2014-01-23 16:04:48 +01:00
2014-01-24 13:30:45 +01:00
2014-01-29 17:08:39 +01:00
2014-02-25 10:05:06 +01:00
2014-02-19 11:53:27 +01:00
2014-02-25 10:05:06 +01:00
2014-01-29 10:51:32 +01:00
2014-01-30 22:49:44 +01:00