#1: Configurable storage layer
- Contents
- Proposed by
- Christof Haemmerle
- Seconded by
- Nate Aune
- Proposal type
- Architecture
- State
- being-discussed
Motivation
The PloneMultimedia products rely on ATMediaFile for the base class. The ATMediaFile content type by default uses ExternalStorage for the storage layer. Some users may not want to use ExternalStorage but use an alternative storage layer such as FileSystemStorage or keep the objects in the ZODB using AnnotationStorage.
It should be possible for the user to choose which storage they want to use for their media files.
Proposal
Typical values for the storage types will be: AnnotationStorage (ZODB), ExternalStorage, FileSystemStorage
Configured via configlet
selection:"current storage type" which defines the "current storage type" which all future ATMediaFile objects will use
checkbox:migrate on modify if checked then ATMediaFile objects with a storage type not of the "current storage type" will be transparently migrated to the "current storage type" when that object is modified
action:consolidate storage type migrates all ATMediaFile objects which are not of the "current storage type" to the "current storage type" (undo will probably not be possible)
storage type per content object is stored as an attribute in each object ATMediaFile has an attribute "storage type" which reflects the "current storage type" of each object
Participants
Nate Aune
Chris Miles
Andy Nicholson
Christof Haemmerle