mirror of
https://github.com/django/django.git
synced 2024-11-18 23:44:22 +00:00
46c12d1293
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17282 bcc190cf-cafb-0310-a4f2-bffc1f526a37
20 lines
446 B
Python
20 lines
446 B
Python
from datetime import datetime
|
|
from django.core.files import storage
|
|
|
|
class DummyStorage(storage.Storage):
|
|
"""
|
|
A storage class that does implement modified_time() but raises
|
|
NotImplementedError when calling
|
|
"""
|
|
def _save(self, name, content):
|
|
return 'dummy'
|
|
|
|
def delete(self, name):
|
|
pass
|
|
|
|
def exists(self, name):
|
|
pass
|
|
|
|
def modified_time(self, name):
|
|
return datetime.date(1970, 1, 1)
|