I'm a little confused by the track the discussion took recently... my
impression was that the solution would *not* be to change from
last_modified to a checksum, or to add an additional checksum method.
Instead, storage backeds could support a has_changed method, which could be
overridden to pr
Would it be reasonable to have a backend-specific hook to determine a
fingerprint, where that could be mtime or md5 or whathaveyou as long as
equality (or maybe ordering) works?
On Oct 8, 2012, at 10:23 AM, Alex Ogier wrote:
> On Mon, Oct 8, 2012 at 1:06 PM, ptone wrote:
> While git may be
On Mon, Oct 8, 2012 at 1:06 PM, ptone wrote:
> While git may be common, and your problem not unique - this is still a
> condition of your dev environment rendering modification dates invalid.
> There might be other situations where this is the case (I've run into
> scripts that muck with modifica
On Monday, October 8, 2012 8:49:58 AM UTC-7, Dan Loewenherz wrote:
>
>
> > On Mon, Oct 1, 2012 at 12:47 AM, Jannis Leidel
> > >
>> wrote:
>> Then, frankly, this is a problem of the storage backends, not Django's.
>> The S3BotoStorage backend *does* have a modified_time method:
>>
>>
>> http
On Mon, Oct 8, 2012 at 3:50 AM, Jannis Leidel wrote:
> You're able to ask S3 for the date of last modification, I don't see why a
> comparison by hashing the file content is needed additionally. It'd have to
> download the full file to do that on Django's side and I'm not aware of a
> API for get
> > On Mon, Oct 1, 2012 at 12:47 AM, Jannis Leidel wrote:
> Then, frankly, this is a problem of the storage backends, not Django's.
> The S3BotoStorage backend *does* have a modified_time method:
>
>
> https://bitbucket.org/david/django-storages/src/1574890d87be/storages/backends/s3boto.py#cl-298
On 08.10.2012, at 07:38, ptone wrote:
> so after scanning this thread and the ticket again - it is still unclear that
> there could be a completely universal solution.
>
> While it would be nice if the storage API had a checksum(name) or md5(name)
> method - not all custom storage backends ar
On 06.10.2012, at 19:48, Dan Loewenherz wrote:
> Hey Jannis,
>
> On Mon, Oct 1, 2012 at 12:47 AM, Jannis Leidel wrote:
>
> On 30.09.2012, at 23:41, Dan Loewenherz wrote:
>
> > Many backends don't support last modified times, and even if they all did,
> > it's incorrect to assume that last