aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/storage.py
Commit message (Collapse)AuthorAgeFilesLines
* Adding slightly clearer docs to MountStorage.Christopher Allan Webber2011-08-111-9/+22
|
* MountStorage: Improve mounting assertsElrond2011-08-081-3/+6
| | | | | The asserts now differentiate between mounting on the same path and mounting over a shorter path.
* MountStorage: Add docs.Elrond2011-08-081-0/+15
|
* Merge remote branch 'upstream/master' into dev/mount_storageElrond2011-08-081-9/+77
|\ | | | | | | | | Conflicts: mediagoblin/storage.py
| * Feature #477 - Cloud Files public storageJoar Wandborg2011-08-041-64/+76
| | | | | | | | | | | | * mediagoblin.storage is now fully PEP-8 compliant. * mediagoblin.storage:BaseFileStorage precedes CloudFilesStorage * Removed all the cloudfiles-specific options from mediagoblin.ini, now it's in the wiki, http://wiki.mediagoblin.org/ConfigureMediaGoblin#Setting_up_Cloud_Files_public_storage
| * Feature 477 - Support Cloud Files public storageJoar Wandborg2011-08-041-0/+56
| | | | | | | | | | | | | | | | | | * Added configuration options to mediagoblin.ini * process_media supports the python-cloudfiles almost-file-like objects by wrapping them in a contextlib.contextmanager-decorated func. * storage now has the CloudFilesStorage * New dependency added to setup.py; `python-cloudfiles`
* | MountStorage: Better error reportingElrond2011-08-031-2/+8
| | | | | | | | | | | | Created a new resolver frontend function, that raises and error, when no backend is found. Useful for all the wrappers.
* | MountStorage: drop u'' nonsense from mount methodElrond2011-08-031-3/+0
| | | | | | | | | | | | My old resolver couldn't handle empty lists, so for the mount resolving I appeneded a u'' as dummy element. Not needed any more.
* | MountStorage: Create all the wrappersElrond2011-08-011-0/+28
| | | | | | | | | | All those methods just call the appropiate method of the relevant backend.
* | MountStorage: Some small fixups/changes.Elrond2011-08-011-4/+5
| | | | | | | | | | | | 1) A bit more assert. 2) Change __repr__ to use lists for the recursion parameter.
* | First start at MountStorage.Elrond2011-08-011-0/+76
|/ | | | This includes the mounttab, a resolver and adding mount entries.
* renaming storage_system_from_paste_config()->storage_system_from_config()Christopher Allan Webber2011-06-191-2/+2
| | | | | As Elrond points out, this name doesn't make sense anymore since this isn't based on the paste config. Thanks Elrond!
* Adding a copy_locally() method to the StorageInterface and giving it a test.Christopher Allan Webber2011-06-111-0/+21
|
* Allow storage systems to be local and allow for a get_local_pathChristopher Allan Webber2011-06-111-1/+20
| | | | method if applicable.
* Reorganization of storage.py.Christopher Allan Webber2011-04-171-26/+37
| | | | Ordering: Errors, Storage interface / implementation, utils.
* storage.storage_system_from_paste_config() utility, w/ testsChristopher Allan Webber2011-04-171-0/+49
|
* Encourage storage systems to passively accept extraneous keywordChristopher Allan Webber2011-04-171-3/+11
| | | | | | arguments w/ **kwargs. Also did that for BasicFileStorage.
* Import urlparse! Duh. I should remember to turn flymake-mode on.Christopher Allan Webber2011-04-161-2/+3
|
* "if not os.path.exists(directory)", not "if not os.path.exists('directory')"Christopher Allan Webber2011-04-161-1/+1
|
* when running get_unique_filepath, clean_listy_filepath from the get-goChristopher Allan Webber2011-04-161-0/+4
|
* Added delete_file, url_for_file methods to BasicFileStorageChristopher Allan Webber2011-04-161-6/+14
|
* Changes Mediagoblin -> MediaGoblin.Will Kahn-Greene2011-04-131-1/+1
|
* get_file() implementation for BasicFileStorageChristopher Allan Webber2011-04-101-3/+11
|
* We should import uuid, because we use it!Christopher Allan Webber2011-04-101-0/+1
|
* get_unique_filepath not get_unique_filename!Christopher Allan Webber2011-04-101-1/+1
|
* Added the url_for_file stub to the interfaceChristopher Allan Webber2011-04-101-0/+11
|
* I don't think we need _create_dirs_for_filepath.Christopher Allan Webber2011-04-101-6/+0
|
* Put down structure of BasicFileStorage, and the ._resolve_filepath() methodChristopher Allan Webber2011-04-101-0/+39
|
* More documentation on all the core storage API methodsChristopher Allan Webber2011-04-091-1/+12
|
* u'string', but of course ;)Christopher Allan Webber2011-04-091-1/+1
|
* Actually, we can implement get_unique_filename, which should be theChristopher Allan Webber2011-04-091-10/+12
| | | | same across all storage API implementations
* Most of the StorageInterface stubs in place and documented.Christopher Allan Webber2011-04-091-0/+57
|
* Raise a specific error if a filename component can't be resolved into anything.Christopher Allan Webber2011-04-091-1/+11
|
* file storage filelist cleaningChristopher Allan Webber2011-04-091-0/+41