Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Changed `*args` => `*exc_info` in CloudFilesStorageObjectWrapper | Joar Wandborg | 2011-09-05 | 1 | -1/+1 |
| | |||||
* | Feature #571 - Closing storage objects - Removed closing(), renamed | Joar Wandborg | 2011-09-05 | 1 | -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 information | Will Kahn-Greene | 2011-09-01 | 1 | -1/+1 |
| | |||||
* | Bug #532 - CloudFiles StorageObjectWrapper AttributeError - Fix + More | Joar Wandborg | 2011-09-01 | 1 | -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 StorageObjectWrapper | Christopher Allan Webber | 2011-08-31 | 1 | -23/+31 |
| | |||||
* | Added a bit of clarification about what the medium.jpg corruption | Christopher Allan Webber | 2011-08-31 | 1 | -1/+3 |
| | | | | issue was, specifically. | ||||
* | Merge remote branch 'remotes/jwandborg/cloudfiles_storage_object_wrapper' | Christopher Allan Webber | 2011-08-31 | 1 | -2/+34 |
|\ | |||||
| * | Made a wrapper for cloudfiles.storage_object.Object | Joar Wandborg | 2011-09-01 | 1 | -2/+27 |
| | | | | | | | | - `medium.jpg` issue should no longer exist. | ||||
| * | Bug #530 - CloudFiles - Incorrect MIMEtypes - Fixed! | Joar Wandborg | 2011-08-30 | 1 | -0/+7 |
| | | |||||
* | | Feature #403 - Ability to delete media entries - Fixes according to feedback | Joar Wandborg | 2011-08-30 | 1 | -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 - Fix | Joar Wandborg | 2011-08-25 | 1 | -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 Webber | 2011-08-21 | 1 | -18/+10 |
|\ | |||||
| * | Document changes to storage_system_from_config | Elrond | 2011-08-12 | 1 | -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 debug | Elrond | 2011-08-09 | 1 | -2/+0 |
| | | |||||
| * | Storage config: Drop all Backward Compatibility | Elrond | 2011-08-09 | 1 | -10/+4 |
| | | | | | | | | | | Chris Webber says not to care about backward compatibility at this stage. So drop the last bits. | ||||
| * | Storage Config: Use own section | Elrond | 2011-08-09 | 1 | -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 Webber | 2011-08-11 | 1 | -9/+22 |
|/ | |||||
* | MountStorage: Improve mounting asserts | Elrond | 2011-08-08 | 1 | -3/+6 |
| | | | | | The asserts now differentiate between mounting on the same path and mounting over a shorter path. | ||||
* | MountStorage: Add docs. | Elrond | 2011-08-08 | 1 | -0/+15 |
| | |||||
* | Merge remote branch 'upstream/master' into dev/mount_storage | Elrond | 2011-08-08 | 1 | -9/+77 |
|\ | | | | | | | | | Conflicts: mediagoblin/storage.py | ||||
| * | Feature #477 - Cloud Files public storage | Joar Wandborg | 2011-08-04 | 1 | -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 storage | Joar Wandborg | 2011-08-04 | 1 | -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 reporting | Elrond | 2011-08-03 | 1 | -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 method | Elrond | 2011-08-03 | 1 | -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 wrappers | Elrond | 2011-08-01 | 1 | -0/+28 |
| | | | | | | | | | | All those methods just call the appropiate method of the relevant backend. | ||||
* | | MountStorage: Some small fixups/changes. | Elrond | 2011-08-01 | 1 | -4/+5 |
| | | | | | | | | | | | | 1) A bit more assert. 2) Change __repr__ to use lists for the recursion parameter. | ||||
* | | First start at MountStorage. | Elrond | 2011-08-01 | 1 | -0/+76 |
|/ | | | | This includes the mounttab, a resolver and adding mount entries. | ||||
* | renaming storage_system_from_paste_config()->storage_system_from_config() | Christopher Allan Webber | 2011-06-19 | 1 | -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 Webber | 2011-06-11 | 1 | -0/+21 |
| | |||||
* | Allow storage systems to be local and allow for a get_local_path | Christopher Allan Webber | 2011-06-11 | 1 | -1/+20 |
| | | | | method if applicable. | ||||
* | Reorganization of storage.py. | Christopher Allan Webber | 2011-04-17 | 1 | -26/+37 |
| | | | | Ordering: Errors, Storage interface / implementation, utils. | ||||
* | storage.storage_system_from_paste_config() utility, w/ tests | Christopher Allan Webber | 2011-04-17 | 1 | -0/+49 |
| | |||||
* | Encourage storage systems to passively accept extraneous keyword | Christopher Allan Webber | 2011-04-17 | 1 | -3/+11 |
| | | | | | | arguments w/ **kwargs. Also did that for BasicFileStorage. | ||||
* | Import urlparse! Duh. I should remember to turn flymake-mode on. | Christopher Allan Webber | 2011-04-16 | 1 | -2/+3 |
| | |||||
* | "if not os.path.exists(directory)", not "if not os.path.exists('directory')" | Christopher Allan Webber | 2011-04-16 | 1 | -1/+1 |
| | |||||
* | when running get_unique_filepath, clean_listy_filepath from the get-go | Christopher Allan Webber | 2011-04-16 | 1 | -0/+4 |
| | |||||
* | Added delete_file, url_for_file methods to BasicFileStorage | Christopher Allan Webber | 2011-04-16 | 1 | -6/+14 |
| | |||||
* | Changes Mediagoblin -> MediaGoblin. | Will Kahn-Greene | 2011-04-13 | 1 | -1/+1 |
| | |||||
* | get_file() implementation for BasicFileStorage | Christopher Allan Webber | 2011-04-10 | 1 | -3/+11 |
| | |||||
* | We should import uuid, because we use it! | Christopher Allan Webber | 2011-04-10 | 1 | -0/+1 |
| | |||||
* | get_unique_filepath not get_unique_filename! | Christopher Allan Webber | 2011-04-10 | 1 | -1/+1 |
| | |||||
* | Added the url_for_file stub to the interface | Christopher Allan Webber | 2011-04-10 | 1 | -0/+11 |
| | |||||
* | I don't think we need _create_dirs_for_filepath. | Christopher Allan Webber | 2011-04-10 | 1 | -6/+0 |
| | |||||
* | Put down structure of BasicFileStorage, and the ._resolve_filepath() method | Christopher Allan Webber | 2011-04-10 | 1 | -0/+39 |
| | |||||
* | More documentation on all the core storage API methods | Christopher Allan Webber | 2011-04-09 | 1 | -1/+12 |
| | |||||
* | u'string', but of course ;) | Christopher Allan Webber | 2011-04-09 | 1 | -1/+1 |
| | |||||
* | Actually, we can implement get_unique_filename, which should be the | Christopher Allan Webber | 2011-04-09 | 1 | -10/+12 |
| | | | | same across all storage API implementations | ||||
* | Most of the StorageInterface stubs in place and documented. | Christopher Allan Webber | 2011-04-09 | 1 | -0/+57 |
| | |||||
* | Raise a specific error if a filename component can't be resolved into anything. | Christopher Allan Webber | 2011-04-09 | 1 | -1/+11 |
| | |||||
* | file storage filelist cleaning | Christopher Allan Webber | 2011-04-09 | 1 | -0/+41 |