-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
In attempting to use filebrowser-safe v0.5.0 (Mezzanine v4.3.1) with GoogleCloudStorage (django-storages v1.7.1), I get the error:
AttributeError: 'GoogleCloudStorage' object has no attribute 'isdir'
Having poked around a bit, it looks as though the issue is that my DEFAULT_FILE_STORAGE – storages.backends.gcloud.GoogleCloudStorage – is meant to be monkey-mixed with filebrowser_safe.storage.GoogleStorageMixin; but, it's not.
And, though I might be missing something enormous, I don't see how it would be.
The logic in filebrowser_safe.views –
storage_class_name = django_settings.DEFAULT_FILE_STORAGE.split(".")[-1]
mixin_class_name = "filebrowser_safe.storage.%sMixin" % storage_class_name– can only result in a mixin_class_name of filebrowser_safe.storage.GoogleCloudStorageMixin, which doesn't exist. (The real one is missing the word "Cloud.")
Metadata
Metadata
Assignees
Labels
No labels