aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/piwigo
Commit message (Collapse)AuthorAgeFilesLines
* Fix some unused imports and local variables.Ben Sturmfels2021-09-231-2/+1
|
* Apply pyupgrade --py36-plus.Ben Sturmfels2021-09-232-2/+2
| | | | This removes some 'u' prefixes and converts simple format() calls to f-strings.
* Remove remaining imports/calls to six not automatically removed by pyupgrade.Ben Sturmfels2021-03-052-3/+0
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-052-10/+10
|
* Fix #928 - cleanup to avoid duplicated get_upload_file_limitsLoic Dachary2016-07-251-4/+1
| | | | Signed-off-by: Loic Dachary <loic@dachary.org>
* Collection changes and migration for federationJessica Tallon2015-10-071-2/+2
| | | | | | | - Adds a "type" column to the Collection object and allows the CollectionItem model to contain any object. - Changes "items" to "num_items" as per TODO - Renames "uploader", "creator" and "user" to a common "actor" in most places
* wtforms.fields.TextField was deprecatedJakob Kramer2015-03-121-9/+9
| | | | | | | WTForms documentation: > The TextField alias for StringField is deprecated. Signed-off-by: Berker Peksag <berker.peksag@gmail.com>
* Merge branch 'master' into merge-python3-portChristopher Allan Webber2014-09-161-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Has some issues, will iteratively fix! Conflicts: mediagoblin/gmg_commands/__init__.py mediagoblin/gmg_commands/deletemedia.py mediagoblin/gmg_commands/users.py mediagoblin/oauth/views.py mediagoblin/plugins/api/views.py mediagoblin/tests/test_api.py mediagoblin/tests/test_edit.py mediagoblin/tests/test_oauth1.py mediagoblin/tests/test_util.py mediagoblin/tools/mail.py mediagoblin/webfinger/views.py setup.py
| * Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. ↵Loïc Le Ninan2014-06-131-1/+1
| | | | | | | | Replaced Required with InputRequired.
* | Use six.text_type instead of unicode().Berker Peksag2014-06-021-2/+4
| | | | | | | | I will be switch to use ``from __future__ import unicode_literals`` later.
* | Use six.iteritems() instead of dict.iteritems().Berker Peksag2014-05-261-1/+1
|/
* Also switching piwigo integration of submit_media over to kwargs.Christopher Allan Webber2013-11-141-5/+6
| | | | This commit sponsored by Roberto Capone. Thanks!
* Porting the piwigo submit system over to using the new submit utility.Christopher Allan Webber2013-11-141-57/+38
| | | | | | This also adds upload limit checks to the piwigo plugin! This commit sponsored by Sam Black. Thank you!
* Revert "slugs are now generated during processing"Rodney Ewing2013-08-081-0/+3
| | | | This reverts commit 9da4e8049f2de900f7aa12f2fed8c60d6749ff0b.
* slugs are now generated during processingRodney Ewing2013-08-071-3/+0
|
* created a check_login_simple functionRodney Ewing2013-05-251-9/+3
|
* Piwigo minor fix in categories_getList.Mats Sjöberg2013-05-211-3/+3
|
* Piwigo: some sanity checks before adding to collection as per Elrond's ↵Mats Sjöberg2013-05-211-1/+2
| | | | suggestions.
* Piwigo: return collections list only to logged in users.Mats Sjöberg2013-05-211-6/+7
|
* Rudimentary collections support for piwigo plugin.Mats Sjöberg2013-05-211-2/+21
|
* Fixed minor typo in piwigo logging.Mats Sjöberg2013-05-211-1/+2
|
* Refactor submit util new_upload_entryElrond2013-05-211-6/+2
| | | | | | This tool creates an initial media entry for a given user. No magic. It just prefills the license with the user's default license and adds the user as uploader.
* piwigo: Return proper error for wrong user/password.Elrond2013-05-202-6/+6
| | | | And fix tests.
* piwigo: Add PwgError class.Elrond2013-05-201-2/+14
| | | | | This allows to return piwigo xml errors. Those can also be matched into html error codes.
* A bit of pep8 and small typo fix.Elrond2013-05-201-2/+2
|
* Added upload processing to the piwigo/addSimpleJoar Wandborg2013-05-191-3/+58
|
* piwigo: Fix validator usage.Elrond2013-05-121-1/+1
| | | | | wtforms.validators.Optional doesn't take an argument. I don't know, why I gave it one.
* piwigo: Better logging for login.Elrond2013-05-091-1/+4
|
* piwigo: Let getStatus return the current user.Elrond2013-05-091-1/+5
| | | | If there is a user logged in, show his name.
* Create new session system for piwigo plugin.Elrond2013-05-093-7/+55
| | | | | | | Using the brand new itsdangerous sessions to power the sessions for piwigo. The real point is: Clients want to have the session in a "pwg_id" cookie and don't accept any other cookie name.
* piwigo: Add .images.add including form handling.Elrond2013-05-093-3/+41
| | | | | To make things a bit easier, switch to WTForms for validating the received data.
* piwigo: Remove possibly_add_cookie.Elrond2013-05-091-15/+0
| | | | | This one was a fake thing to make clients happy. Real sessions coming sonn.
* piwigo: Send NotImplemented for unknown methods.Elrond2013-04-181-3/+2
| | | | That's somewhat, what piwigo does.
* Use check_file_field in pwg_images_addSimple.Elrond2013-04-181-0/+4
|
* Start to use six for basestring.Elrond2013-04-181-2/+3
| | | | | | six allows us to smoothly get more forward compatible with py3. The idea is to change things over to use six, when/if we feel a need for it.
* piwigo: Fix pwg_getversionElrond2013-03-261-1/+1
| | | | | This one needs to return just "2.5.0 (Mediagoblin)" instead of "Piwigo 2...".
* piwigo: Start at pwg.images.addSimple.Elrond2013-03-262-0/+43
| | | | | | | | 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.
* piwigo start at pwg.images.addChunk.Elrond2013-03-211-1/+43
| | | | | | | | 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
* piwigo: Add session.getStatus, improve categories.getListElrond2013-03-212-5/+10
| | | | | | | | | | | - 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.
* piwigo: Sent a fake cookie.Elrond2013-03-211-1/+18
| | | | | | | 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.
* Add warning README.rst and fix pep8.Elrond2013-03-192-1/+24
|
* piwigo: Move tool functions into tools.pyElrond2013-03-192-83/+108
|
* Start at pwg.categories.getList and improve xml output.Elrond2013-03-191-13/+51
| | | | | | - The xml formatting is now in the main function. - Add PwgNamedArray to have named lists in xml output. - Remove gmg.test method
* piwigo: start xml response encoding, more (fake) methods.Elrond2013-03-191-2/+55
|
* Starting a piwigo api plugin.Elrond2013-03-192-0/+116
This one just puts up the basic endpoint, some infrastructure and a fake login method. Lots more needed.