aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/storage.py
Commit message (Collapse)AuthorAgeFilesLines
* Changed `*args` => `*exc_info` in CloudFilesStorageObjectWrapperJoar Wandborg2011-09-051-1/+1
|
* Feature #571 - Closing storage objects - Removed closing(), renamedJoar Wandborg2011-09-051-2/+29
| | | | | | | | | | | | | | StorageObjectWrapper, added with-support to CloudFilesStorageWrapper * Removed custom `closing()` method * Removed usage of `closing()` in process_media/__init__.py * Renamed StorageObjectWrapper -> CloudFilesStorageObject wrapper In my first version of the StorageOjbectWrapper it was located inside the CloudFilesStorage object, things have changed since then but there has been no renaming, thank you Elrond for the good point. * CloudFilesStorageObjectWrapper now supports context manager methods such as `__enter__()` and `__exit__()` (and `close()`)
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|
* Bug #532 - CloudFiles StorageObjectWrapper AttributeError - Fix + MoreJoar Wandborg2011-09-011-3/+3
| | | | | | | Additionally: Extended get_file to accept both *args and **kwargs and to pass that further down the line to StorageObjectWrapper. Might be useful in the future.
* Remove the inner-classing-ness of StorageObjectWrapperChristopher Allan Webber2011-08-311-23/+31
|
* Added a bit of clarification about what the medium.jpg corruptionChristopher Allan Webber2011-08-311-1/+3
| | | | issue was, specifically.
* Merge remote branch 'remotes/jwandborg/cloudfiles_storage_object_wrapper'Christopher Allan Webber2011-08-311-2/+34
|\
| * Made a wrapper for cloudfiles.storage_object.ObjectJoar Wandborg2011-09-011-2/+27
| | | | | | | | - `medium.jpg` issue should no longer exist.
| * Bug #530 - CloudFiles - Incorrect MIMEtypes - Fixed!Joar Wandborg2011-08-301-0/+7
| |
* | Feature #403 - Ability to delete media entries - Fixes according to feedbackJoar Wandborg2011-08-301-1/+2
|/ | | | | | | | | | * Moved `mediagoblin.confirm` stuff to `mediagoblin.user_pages`, templates too. * Removed route extension for `mediagoblin.confirm` * Created `delete_media_files` which deletes all media files on the public_store when the entry is deleted * Created a new decorator to check if a user has the permission to delete an entry.
* Feature/Bug #519 - CloudFilesStorage.get_file() performance issue - FixJoar Wandborg2011-08-251-1/+5
| | | | * `CloudFilesStorage.get_file()` now guesses the filepath without connecting to cloudfiles. Huge profits for xDSL-hosted or slow net machines.
* Merge remote branch 'remotes/elrond/dev/storage_config'Christopher Allan Webber2011-08-211-18/+10
|\
| * Document changes to storage_system_from_configElrond2011-08-121-13/+8
| | | | | | | | | | | | | | Chris suggested changing the docs for storage_system_from_config: - The only param is a config section. - The format of that section is much simpler, no prefix.
| * Storage Config: Finally drop debugElrond2011-08-091-2/+0
| |
| * Storage config: Drop all Backward CompatibilityElrond2011-08-091-10/+4
| | | | | | | | | | Chris Webber says not to care about backward compatibility at this stage. So drop the last bits.
| * Storage Config: Use own sectionElrond2011-08-091-1/+6
| | | | | | | | | | | | | | | | | | | | Instead of configuring storage X by parameters in the main section "X_class = backend" and "X_param = value", use a new section in the config: "[storage:X]" and use "class = backend" and "param = value" there. This is the beginning, it includes a try at being backward compatible. But that try isn't really fully useful anyway.
* | 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