sehmaschine/django-filebrowser — Issue #45: Versions feature should be refactored into an optional app
Author: hcarvalhoalves
Created: 2011-11-10 20:36:25+00:00
State: open

The versions feature is very useful, but some sites (specially high-traffic) will adopt other strategies for generating thumbnails, rendering filebrowser less useful than it could be. Some sites also have to deal with legacy media, and that doesn't play well with filebrowser's notion of "versions".

It would be interesting to decouple the versions functionality from the core to allow it's usage for managing files *only*. This could be easily accomplished by providing simpler `FileObject` and `FileBrowserSite` classes that are unaware of versions, and then providing a `filebrowser.versions` app that augments on that and provides the versioning methods, management commands and additional templates.

I made a fork without the versions features (since I didn't needed), and removing all the code very simple (the code is well decoupled already). If there's interest it can be used as a base for refactoring:

https://github.com/hcarvalhoalves/django-filebrowser

Sorry for opening a ticket without a patch, this is more of a suggestion. Since I won't use the versions functionality I don't have the time right now to make up a patch, but I wanted to move the idea forward.