joar / automgtic Goto Github PK
View Code? Open in Web Editor NEWBatch upload client for GNU MediaGoblin
Batch upload client for GNU MediaGoblin
It would be nice if we could specify a collection for the uploaded photos. I think its a common use case that one has a few dozen/hundred photos from a e.g. a field trip and wants to add them to a collection without doing so manually in the web interface (especially as long as there's no batch editing interface in mediagoblin).
As far as i know we would first have to add collection support to mediagoblins api plugin, but i thought i'll open an issue here anyway to start a discussion.
Was running --authorize, gave it the code and it crashed with:
Traceback (most recent call last): File "./run.py", line 39, in <module> automgtic.authorize() File "/home/vadi/Programs/automgtic/automgtic/__init__.py", line 146, in authorize token_data = client.parse_request_body_response(token_response) File "/home/vadi/Programs/automgtic/local/lib/python2.7/site-packages/oauthlib/oauth2/draft25/__init__.py", line 302, in parse_request_body_response response = parse_token_response(body, scope=scope) File "/home/vadi/Programs/automgtic/local/lib/python2.7/site-packages/oauthlib/oauth2/draft25/parameters.py", line 251, in parse_token_response validate_token_parameters(params, scope) File "/home/vadi/Programs/automgtic/local/lib/python2.7/site-packages/oauthlib/oauth2/draft25/parameters.py", line 259, in validate_token_parameters raise KeyError("Missing access token parameter.") KeyError: 'Missing access token parameter.'
It would be nice to have pictures uploaded in the correct order (for example when migrating from another photo gallery).
If automgtic would read exif info and order the upload then the "recent uploads" views on mediagoblin would be nicer.
Thanks for automgtic.
$ python -c "from automgtic.models import Base, engine
> Base.metadata.create_all(engine)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "automgtic/__init__.py", line 10, in <module>
from oauthlib.oauth2.draft25 import WebApplicationClient
ImportError: cannot import name WebApplicationClient
After this change seems to work fine:
diff --git a/setup.py b/setup.py
index 6c59f14..6a97c2b 100644
--- a/setup.py
+++ b/setup.py
@@ -13,5 +13,6 @@ setup(
'configobj',
'sqlalchemy',
'simplejson',
- 'poster'],
+ 'poster',
+ 'oauthlib'],
license='Apache License v2')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.