aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/piwigo/tools.py
Commit message (Collapse)AuthorAgeFilesLines
* Apply pyupgrade --py36-plus.Ben Sturmfels2021-09-231-1/+1
| | | | 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-051-1/+0
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-6/+6
|
* Use six.iteritems() instead of dict.iteritems().Berker Peksag2014-05-261-1/+1
|
* piwigo: Return proper error for wrong user/password.Elrond2013-05-201-1/+2
| | | | 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
|
* Create new session system for piwigo plugin.Elrond2013-05-091-0/+31
| | | | | | | 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-091-1/+14
| | | | | To make things a bit easier, switch to WTForms for validating the received data.
* 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: Add session.getStatus, improve categories.getListElrond2013-03-211-0/+1
| | | | | | | | | | | - 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.
* Add warning README.rst and fix pep8.Elrond2013-03-191-1/+1
|
* piwigo: Move tool functions into tools.pyElrond2013-03-191-0/+106