Added storage time methods to Storage and FileSystemStorage classes
|Reported by:||HuCy||Owned by:||Tobias McNulty|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The included patch implements a stat method for Storage and FileSystemStorage in django.core.files.storage
We implemented a storage engine for CouchDB in which catalog of products are stored as pdf documents.
The catalogs are re-generated depending on their age - which was easy when the default FileSystemStorage was
used, but more complicated using a custom storage engine that does not use a filesystem backend.
Adding a stat method to the Storage class makes it easier to gain the required information, especially for
derived classes as described above.
Change History (22)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Design decision needed|
comment:5 Changed 6 years ago by
|Component:||Core framework → File uploads/storage|
|Triage Stage:||Design decision needed → Unreviewed|
comment:6 Changed 6 years ago by
|Owner:||changed from nobody to Tobias McNulty|
|Status:||new → assigned|
comment:7 Changed 6 years ago by
|Summary:||Added 'stat' method to class Storage and FileSystemStorage → Added storage time methods to Storage and FileSystemStorage classes|
|Triage Stage:||Unreviewed → Ready for checkin|