aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands/addmedia.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix some unused imports and local variables.Ben Sturmfels2021-09-231-2/+1
|
* Remove remaining imports/calls to six not automatically removed by pyupgrade.Ben Sturmfels2021-03-051-4/+0
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-3/+2
|
* Fix trivial spelling and spacing error in cli helpAndrew Browning2017-03-011-2/+2
|
* Merge remote-tracking branch 'spechards-mediagoblin/master'Boris Bobrov2017-01-291-0/+6
|\ | | | | | | | | | | | | | | Conflicts: mediagoblin/submit/lib.py -- happened because of creator->actor change Fixes issue #915
| * Add collection option to 'addmedia' cli uploadingStéphane Péchard2014-07-131-0/+6
| |
* | Fix #928 - cleanup to avoid duplicated get_upload_file_limitsLoic Dachary2016-07-251-4/+1
| | | | | | | | Signed-off-by: Loic Dachary <loic@dachary.org>
* | Fix some unit tests and bugsJessica Tallon2015-08-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a lot of the issues with the LocalUser changes that were merged recently. There was a problem where the attributes of LocalUser were not being eagerly loaded and because the Session was detached an exception was being raised when they were accessed. This also fixes some typo's which were introduced. Finally this adds a temporary fix for a potential SQLAlchemy bug, this is a bug where doing: User.query.filter(LocalUser.username == "some_username").first() does NOT yeild a user with the username "some_username" but all users on the site. The temp fix is to just query the LocalUser, this should be resolved when bug is confirmed and fixed upstream.
* | Change codebase to query or create correct User modelJessica Tallon2015-07-311-1/+4
| | | | | | | | | | | | | | 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.
* | Fix unicode handling in "gmg addmedia".Berker Peksag2014-11-221-3/+4
| |
* | The file() builtin has been removed in Python 3. Use open() instead.Berker Peksag2014-06-071-1/+1
| |
* | Use six.text_type instead of unicode().Berker Peksag2014-06-021-6/+10
|/ | | | I will be switch to use ``from __future__ import unicode_literals`` later.
* Switching the addmedia tool over to using the get_upload_file_limits tool also.Christopher Allan Webber2013-11-141-7/+2
| | | | This commit sponsored by Damien Radtke. Thanks!
* --license doesn't use the user default so correct that. It does use a URL ↵Christopher Allan Webber2013-11-141-1/+1
| | | | | | though. This commit sponsored by Benjamin Williams. Thank you!
* Hacks to get past unicode barriersChristopher Allan Webber2013-11-141-7/+17
| | | | | | | The methods we're using here aren't ideal but they mirror those used in the submit views... This commit sponsored by Alexander Couper. Thanks!
* Start of addmedia command. Kinda close to working ;)Christopher Allan Webber2013-11-131-0/+100