Christopher Allan Webber
|
3c7d11ff28
|
renaming storage_system_from_paste_config()->storage_system_from_config()
As Elrond points out, this name doesn't make sense anymore since this
isn't based on the paste config. Thanks Elrond!
|
2011-06-19 11:36:52 -05:00 |
|
Christopher Allan Webber
|
6a07362dd0
|
Adding a copy_locally() method to the StorageInterface and giving it a test.
|
2011-06-11 12:04:30 -05:00 |
|
Christopher Allan Webber
|
3a89c23e7f
|
Allow storage systems to be local and allow for a get_local_path
method if applicable.
|
2011-06-11 11:18:03 -05:00 |
|
Christopher Allan Webber
|
d807b7252d
|
Reorganization of storage.py.
Ordering: Errors, Storage interface / implementation, utils.
|
2011-04-17 10:26:52 -05:00 |
|
Christopher Allan Webber
|
ffa2293549
|
storage.storage_system_from_paste_config() utility, w/ tests
|
2011-04-17 10:24:36 -05:00 |
|
Christopher Allan Webber
|
5afb92275c
|
Encourage storage systems to passively accept extraneous keyword
arguments w/ **kwargs.
Also did that for BasicFileStorage.
|
2011-04-17 09:18:12 -05:00 |
|
Christopher Allan Webber
|
f61a41b89d
|
Import urlparse! Duh. I should remember to turn flymake-mode on.
|
2011-04-16 12:46:58 -05:00 |
|
Christopher Allan Webber
|
d0e3a5341e
|
"if not os.path.exists(directory)", not "if not os.path.exists('directory')"
|
2011-04-16 10:59:23 -05:00 |
|
Christopher Allan Webber
|
b0bfb766d9
|
when running get_unique_filepath, clean_listy_filepath from the get-go
|
2011-04-16 10:27:03 -05:00 |
|
Christopher Allan Webber
|
b1bb050b27
|
Added delete_file, url_for_file methods to BasicFileStorage
|
2011-04-16 09:36:36 -05:00 |
|
Will Kahn-Greene
|
8e1e744d27
|
Changes Mediagoblin -> MediaGoblin.
|
2011-04-13 10:04:30 -04:00 |
|
Christopher Allan Webber
|
cee7a1c163
|
get_file() implementation for BasicFileStorage
|
2011-04-10 17:03:23 -05:00 |
|
Christopher Allan Webber
|
2fdec8270d
|
We should import uuid, because we use it!
|
2011-04-10 16:50:52 -05:00 |
|
Christopher Allan Webber
|
2d1a60739e
|
get_unique_filepath not get_unique_filename!
|
2011-04-10 16:44:47 -05:00 |
|
Christopher Allan Webber
|
644614d4dd
|
Added the url_for_file stub to the interface
|
2011-04-10 15:01:00 -05:00 |
|
Christopher Allan Webber
|
1118858140
|
I don't think we need _create_dirs_for_filepath.
|
2011-04-10 14:57:23 -05:00 |
|
Christopher Allan Webber
|
779f2b9411
|
Put down structure of BasicFileStorage, and the ._resolve_filepath() method
|
2011-04-10 13:38:01 -05:00 |
|
Christopher Allan Webber
|
b0de01cf01
|
More documentation on all the core storage API methods
|
2011-04-09 14:26:41 -05:00 |
|
Christopher Allan Webber
|
ef10e3a2c7
|
u'string', but of course ;)
|
2011-04-09 14:08:07 -05:00 |
|
Christopher Allan Webber
|
0b9cf289c3
|
Actually, we can implement get_unique_filename, which should be the
same across all storage API implementations
|
2011-04-09 14:05:44 -05:00 |
|
Christopher Allan Webber
|
797be93ca6
|
Most of the StorageInterface stubs in place and documented.
|
2011-04-09 14:02:54 -05:00 |
|
Christopher Allan Webber
|
770c12be8d
|
Raise a specific error if a filename component can't be resolved into anything.
|
2011-04-09 11:45:38 -05:00 |
|
Christopher Allan Webber
|
a6b378ef4d
|
file storage filelist cleaning
|
2011-04-09 11:41:09 -05:00 |
|