An add-on Plone product which provides an extra storage for Archetypes.
Project description
About
ExternalStorage is a storage for Archetypes storing the fields contents outside the ZODB. So it works in a fashion like ExternalFile or similar products.
- Note
ExternalStorage 0.6 requires an Archetypes version after 1.3.3-final. Older Archetypes versions have critical bugs and won’t work with this version of ExternalStorage.
Usage
Simply define one of your field’s storages in a schema as ExternalStorage. (see ExternalExample in examples/).
Example
Copy examples/ExternalExample into your Products dir.
Defining Custom Path Policy
You can provide your own path policy, just write a method on your class called ‘getExternalPath’ (or anything else that you specified at ‘path_method’ when intantiating the storage).
Some common uses include:
Instance relative path to current portal (default): path = portal_url.getRelativeContentURL(instance)
Instance absolute path, including portal name and all above path = ‘/’.join(instance.getPhysicalPath())
Flat Instance UID path = instance(UID())
Sorted by Portal Type path = instance.getTypeInfo().getId() + ‘/’ + instance.getId()
By default, files are stored accordingly policy (1). If class has multiple fields, then (1) will be a folder and the files are stored inside it, following the field names.
Remember to provide additional code to support multiple fields when providing your custom path policy.
Archive
In some previous versions there was some sort of archive support. This was implemented as a copy of the old content in some special folder.
It’s removed from the current version, but will be readded later.
Authors
See AUTHORS.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for Products.ExternalStorage-0.7.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c30d31b9ede4597e4535475555b8f3055750fce7845043c894b376c03231ad |
|
MD5 | 51a7087ff541a356edb0ede23a7e9044 |
|
BLAKE2b-256 | 9c28f399eafdaec113b76543facba2e1a7f678420dd3b3678cd11c5e92e6d5fa |
Hashes for Products.ExternalStorage-0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c0781190ffd8f421d7d7a5e393e253bf183b4aca730889e1f59879f2585cb83 |
|
MD5 | f123c1bf62c9f0fa317ac71807dbe74c |
|
BLAKE2b-256 | 104b0ecfa32b4c6000b77977477113e99882190d5b99aafcc23376608d0f4f38 |
Hashes for Products.ExternalStorage-0.7-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3de48484d09725a1a01e853a4e6789c1977a9d9a2725a366510d248d98853a88 |
|
MD5 | 33d46631e40352e81a900d8cc5f14fce |
|
BLAKE2b-256 | d71668e5945e3b3bbbdebb6e6e2971b39177700a487ee2a739fe11dabaa6bf50 |
Hashes for Products.ExternalStorage-0.7-py2.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3726289e64be3e7113d1c208efab726e45a8a81eb70d1b202cae9e75600e14e |
|
MD5 | edd67de5c5b2d86717ee92a2a5b8c9d1 |
|
BLAKE2b-256 | 226a2cf1dc605644f3e03f76d99eaea23317042a914a717b081ce56293c2a535 |
Hashes for Products.ExternalStorage-0.7-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9e4f80d6ba430286d4e6dc68ecf1a8b55ecd89c2296b78ede4f81352c9507c9 |
|
MD5 | 8158f0cc1624c46782a6b61a21657616 |
|
BLAKE2b-256 | 5a40373bd6594fad7f962624dfd590826e3c69fb655832027fdd9279c60ce61a |