| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* cwebber/254_delete_queue_directories:
Removing docstring bit about delete_file possibly deleting directories in the future
Convert media processing backends to delete the queue directory (#254)
Implement delete_dir in the FileStorage
Conflicts:
mediagoblin/media_types/image/processing.py
mediagoblin/media_types/video/processing.py
Conflicts, because those media_types already use the newer
proc_state.delete_queue_file() method (which needs
updating.
|
| |
| |
| |
| |
| |
| |
| |
| | |
the future
I agree that delete_dir as a separate operation is a better way to do
things, especially since there is a non-recursive deletion option that
will politely fail if the directory is not empty.
|
| |
| |
| |
| |
| |
| |
| | |
We never deleted our queue directory which were created per submission.
With the FileStorage backend being able to delete directories now, we can
request the deletion of the task directory too. It will only be deleted if
it is completely empty.
|
| |
| |
| |
| |
| |
| |
| |
| | |
plus options for deleting only empty directories and deleting
them recursively.
Not sure how cloudfile storage is or should be handled here. Are
things such as a "directory" even a concept there?
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If you give "-n 8" to runtests, it thinks, it got
"-n" -- a nice option, ignored.
"8" -- Oh! a single test named "8" to run, so no need to
run all the GMG tests.
Well, that's not what we want. So runtests now knows about
-n taking an arg.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Use the new way of generating slugs also for collections.
Also drop the dummy_db arg to check_collection_slug_used.
|
| |
| |
| |
| |
| | |
Refactor the new generate_slug into a mixin to
allow it to be used for collections also.
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
By doing this, we can take advantage of py.test's ability to create
temporary directories that are then cleaned up later during testing.
This helps for sandboxing things.
This also involves a ton of changes:
- Changing the get_app stuff appropriately, getting rid of the
setup_fresh_app decorator
- Making said fixture
- Switching over a billion tests to use it
|
| | | |
|
| | |
| | |
| | |
| | | |
This way people can pass in particular paste/mediagoblin configs that they want to use.
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| | |
Thanks to py.test --boxed for helping discover that ;)
|
| | |
|
| |
| |
| |
| |
| |
| | |
The ideas is by Alon Levy.
Use it in ProcessingState.copy_original for now.
|
| |
| |
| |
| | |
Set the media_files directly at the relvant places.
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* JDShu/649_use_form_data_field:
Use WTForms data field in user_pages/views.py
Use WTForms data field in auth/views.py
auth: whitespace cleanup in views.py
Use WTForms data field in plugins/oauth/views.py
Use WTForms data field in submit/views.py
Use WTForms data field in edit/views.py
|
| | |
| | |
| | |
| | | |
Missed case in a previous commit.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | | |
When uploading, the file field needs some checks, it seems.
So refactor them into check_file_field and use around.
|
| | |
| | |
| | |
| | |
| | | |
This one needs to return just "2.5.0 (Mediagoblin)" instead
of "Piwigo 2...".
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Without a session and a logged in user, this can't go much
further.
Misses check for the file upload field.
Need refactored test tool for this.
|
|/ / |
|
|\ \ |
|
| | | |
|
| | | |
|
|\ \ \ |
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | | |
I don't understand why but other people do!
This is a terrible commit message and I am sorry for it.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Removed the old VideoThumbnailer since it's not used anymore.
VideoThumbnailerMarkII:
Changed the state switching in on_thumbnail_message to only set the
state to "processing thumbnail" if the seek was succesful.
I'm not sure what I'm doing here, but I know at least some of it is
good, and as a whole, it seems to work, so far :)
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This function receives part of an upload. Does most
parameter validation, but does not safe the data anywhere
for now.
Also fake pwg.images.exist
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- pwg.session.getStatus returns the current user as
"fake_user". When we have a session, we'll return
something better.
- pwg.categories.getList add a name and the parent id for
its one and only "collection".
- Improve logging a bit.
|
| |
| |
| |
| |
| |
| |
| | |
shotwell needs a pwg_id cookie to continue.
And really, it's the only cookie it supports, so in the
long run, we need to send a proper session cookie as
pwg_id.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
- The xml formatting is now in the main function.
- Add PwgNamedArray to have named lists in xml output.
- Remove gmg.test method
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This one just puts up the basic endpoint, some
infrastructure and a fake login method.
Lots more needed.
|