Commits

Rich Leland  committed 26a79cf

Added PendingDeprecationWarning for mosso backend.

  • Participants
  • Parent commits 728d94d

Comments (0)

Files changed (2)

File storages/backends/mosso.py

 Created by Rich Leland <rich@richleland.com>.
 """
 import os
+import warnings
+warnings.simplefilter('always', PendingDeprecationWarning)
+warnings.warn("The mosso module will be deprecated in version 1.2 of "
+              "django-storages. The CloudFiles code has been moved into"
+              "django-cumulus at http://github.com/richleland/django-cumulus.",
+              PendingDeprecationWarning)
 
 from django.conf import settings
 from django.core.exceptions import ImproperlyConfigured

File storages/models.py

+from django.conf import settings
+
+
+if settings.DEFAULT_FILE_STORAGE.endswith('mosso.CloudFilesStorage'):
+    import warnings
+    warnings.simplefilter('always', PendingDeprecationWarning)
+    warnings.warn("The mosso module will be deprecated in version 1.2 of "
+                  "django-storages. The CloudFiles code has been moved into"
+                  "django-cumulus at http://github.com/richleland/django-cumulus.",
+                  PendingDeprecationWarning)
+