aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix some unused imports and local variables.Ben Sturmfels2021-09-231-2/+0
|
* Apply pyupgrade --py36-plus.Ben Sturmfels2021-09-235-8/+8
| | | | This removes some 'u' prefixes and converts simple format() calls to f-strings.
* Remove reference to jsonschema.compat now removed upstream.Marco Pessotto2021-08-201-3/+2
| | | | Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
* Remove redundant link to flask-wtf.Ben Sturmfels2021-04-232-1/+0
|
* Convert atom feeds to use feedgenerator library.Ben Sturmfels2021-03-161-0/+38
| | | | | | | | | | | | | | | Issue is that Werkzeug > 1.0.0 has removed werkzeug.contrib.atom.AtomFeed, making it difficult to use a distribution-packaged version of werkzeug. To solve this, I've replaced use of werkzeug.contrib.atom.AtomFeed with feedgenerator.Atom1Feed. After the change, the only major difference between the feeds before and after is that they use <summary> instead of <content>. Minor differences include no longer adding 'type="text/html"' on some <link> elements and no "xml:base" attribute on <entry> elements. I don't think these differences will have any noticable effect. Tested on Liferea feed reader.
* Remove remaining Python 2 compatibility code.Ben Sturmfels2021-03-052-4/+1
|
* Remove remaining imports/calls to six not automatically removed by pyupgrade.Ben Sturmfels2021-03-0514-27/+5
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-0522-73/+66
|
* Fix consistency in license list.Ben Sturmfels2020-05-111-1/+1
|
* finally fix url validatorBoris Bobrov2018-07-121-2/+2
|
* fix typoBoris Bobrov2018-07-111-1/+1
|
* fix auth error and simplify url and email checksBoris Bobrov2018-07-111-17/+9
|
* Merge remote-tracking branch 'gsoc2016/Subtitle-1'Boris Bobrov2018-07-102-0/+27
|\
| * Modified get_path function in tools/subtitles.pysaksham11152016-07-191-9/+6
| |
| * Saing subtitle after editsaksham11152016-07-191-1/+10
| |
| * Removed ast and fixed commentssaksham11152016-07-191-16/+4
| |
| * Opening ths subtitle using absolute path and open functionsaksham11152016-07-191-2/+18
| |
| * Converting the path to subtitle into a tuplesaksham11152016-07-191-0/+10
| |
| * Subtitle built over attachments : workingsaksham11152016-07-191-0/+7
| |
* | Add Creative Commons 4.0 licenses [#955]Dpg2018-05-241-10/+27
| | | | | | | | Add CC version 4.0 licenses to SORTED_LICENSES.
* | Fix EXIF rotation to make the image portrait on demandchrysn2017-11-291-4/+9
| | | | | | | | | | Closes: https://issues.mediagoblin.org/ticket/5525 Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
* | Fix #5524 Zero division error in exif.pyAndrew Browning2017-09-201-8/+4
| | | | | | | | | | | | This patch implements the safe_gps_ratio_divide function for gps direction and altitude values to prevent a zero divide error on malformed GPS data.
* | Add Python 3 support in pagination.Ben Sturmfels2016-09-161-4/+3
| | | | | | | | This issue was visible when attempting to view the home page of a MediaGoblin site with more than a single page worth of items, under Python 3.
* | Fixing themesBoris Bobrov2016-07-311-5/+3
| |
* | Include original error in debug logJonathan Sandoval2016-04-081-4/+4
| |
* | Custom exception in mail.Jonathan Sandoval2016-04-081-4/+28
|/
* Fix #5451 - add_message inconsistenciesAndrew Browning2016-04-021-1/+3
| | | | | Reformat add_message function calls for consistency and PEP8 line continuations.
* Email debug mode on Python 3 was printing bytestring representation for ↵Christopher Allan Webber2016-02-251-1/+1
| | | | | | | subject body There's nothing useful about seeing b'foo\nbar\nbaz' printing to stdout. That's not what the user should get!
* Fix another python 3 and unicode issueChristopher Allan Webber2016-02-111-1/+2
|
* .iteritems() doesn't exist in Python 3, converted to .items()Christopher Allan Webber2016-02-111-1/+1
|
* Fix #5079 - tags unicity is on the slug, not the nameLoic Dachary2016-02-061-6/+6
| | | | | Signed-off-by: Loic Dachary <loic@dachary.org> Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
* trac#5397: Allow decode_request to parse content-type headers with extra ↵Ben Sturmfels2016-01-211-2/+5
| | | | | | options. It previously parsed "Content-Type: application/x-www-form-urlencoded", but not "Content-Type: application/x-www-form-urlencoded; charset=utf-8".
* Use six.itervalues() in delete_media_files宋文武2016-01-141-1/+3
|
* Fix urlparse import in tools/routing.pyBerker Peksag2015-08-011-1/+1
| | | | | | | urlparse is already a function, so we don't need to specify a module name. Refs #5339
* Change codebase to query or create correct User modelJessica Tallon2015-07-311-1/+0
| | | | | | | The code base had many references to User.username and other specific to LocalUser attributes as that was the way it use to exist. This updates those to query on the generic User model but filtering by attributes on the LocalUser.
* Merge branch Generic Foreign Key changesJessica Tallon2015-06-241-5/+9
|\
| * Fix removal of ActivityIntermediatory migrationJessica Tallon2015-06-241-0/+4
| | | | | | | | | | | | | | | | | | | | The migration had a problem where other tables still referenced the migration as well as a typo in an earlier migration. They have both been fixed and tested on PostgreSQL and SQLite3. This also fixes a bug where sometimes when creating an activity it'd raise an Exception as the object hadn't got an ID. This has been fixed globally with a fix to the create_activity federation tool.
| * Fix some problems with activity mixins and migrationsJessica Tallon2015-05-261-3/+3
| |
| * Remove deprecated fields and fix activity creation in toolsJessica Tallon2015-05-261-2/+2
| |
* | Import urlparse from six.moves to work on both Python 2 and 3.Berker Peksag2015-06-051-1/+3
|/
* #5314 Prevent ZeroDivisionError in exif.pyChristopher Allan Webber2015-04-271-3/+8
|
* Use UTC for all timesince comparisonsayleph2015-03-121-13/+1
| | | | Signed-off-by: Jessica Tallon <jessica@megworld.co.uk>
* Fix #1056 - Add flag to accept URLs without a trailing slashJessica Tallon2014-12-121-3/+10
|
* Reforming get_jinja_env to make better use of the MediaGoblinAppChristopher Allan Webber2014-12-031-6/+5
|
* Starting to deprecate the app_config, global_config by attaching stuff to appChristopher Allan Webber2014-12-031-3/+3
| | | | | | - app.global_config, app.app_config - making setup_crypto use app.app_config - setting app.workbench_manager
* An environment variable to transition towards removing global variablesChristopher Allan Webber2014-12-031-0/+21
|
* Fix #1024 - Correctly set generator on ActivitiesJessica Tallon2014-12-021-8/+36
|
* Fix #1025 - Make API IDs IRIsJessica Tallon2014-11-211-0/+15
|
* Clarifying the json processing callbacks even furtherChristopher Allan Webber2014-10-301-2/+2
|
* Fix misleading log message reported in #985.Rodrigo Rodrigues da Silva2014-10-301-2/+2
|