aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit
Commit message (Collapse)AuthorAgeFilesLines
* Fix some unused imports and local variables.Ben Sturmfels2021-09-231-1/+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-4/+0
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-053-15/+15
|
* Use tuple as default return type of workflow()vijeth-aradhya2017-06-211-0/+4
| | | | | | | | If None, then schedule the old Celery call, else the format is group and a single task in the tuple. Hence, Celery chord would be ideal to use. Closes #4
* Simple hack to handle main workflow problemvijeth-aradhya2017-06-171-1/+5
| | | | | | | Remove redundunt workflow methods from the other media type's processing.py. Fixes #1
* Individual resolution transcoding fixesvijeth-aradhya2017-06-131-1/+0
| | | | | | | | Few minor changes which fix the errors. Although, the user still cannot view the video since the front end part needs to changed. Fixes #3
* Celery Priority testing with debug statementsvijeth-aradhya2017-06-131-1/+1
| | | | | | Error at this line: `self.entry.set_file_metadata(self.curr_file, **file_metadata)` Otherwise, celery part should work fine.
* Add priority to the celery tasksvijeth-aradhya2017-06-121-1/+1
| | | | | Few more changes to be made before executing the tasks. Also #1 should be handled soon after this.
* Add workflow method to VideoProcessingManagervijeth-aradhya2017-06-051-4/+6
| | | | | This commit makes sure the old celery call works perfectly when workflow method is introduced.
* Merge remote-tracking branch 'spechards-mediagoblin/master'Boris Bobrov2017-01-291-2/+11
|\ | | | | | | | | | | | | | | Conflicts: mediagoblin/submit/lib.py -- happened because of creator->actor change Fixes issue #915
| * Add creator to filter collectionsStéphane Péchard2014-09-231-2/+3
| |
| * Add collection option to 'addmedia' cli uploadingStéphane Péchard2014-07-131-2/+9
| |
* | Fix #928 - cleanup to avoid duplicated get_upload_file_limitsLoic Dachary2016-07-252-4/+1
| | | | | | | | Signed-off-by: Loic Dachary <loic@dachary.org>
* | Fix #5451 - add_message inconsistenciesAndrew Browning2016-04-021-6/+12
| | | | | | | | | | Reformat add_message function calls for consistency and PEP8 line continuations.
* | Add a comment when we do / don't add collections dropdownChristopher Allan Webber2016-01-071-0/+2
| | | | | | | | Otherwise that "del submit_form.collection" might be confusing :)
* | Add collection drop down to submit page.tom2016-01-072-3/+24
| |
* | Fix add collection view for new schemaDaniel Krol2015-11-091-2/+4
| |
* | Comment changes for federationJessica Tallon2015-10-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new Comment link table that is used to link between some object and then the comment object, which can be more or less any object in Mediagoblin. The MediaComment has been renamed to TextComment as that more aptly describes what it is. There is migrations for these changes. There is also the conslidation of the Report tables into a single Report table, the same with the Notification objects. This is because both of them split out MediaEntry and Comment versions into their own polymorphic versions from a base, this is no longer a meaningful distinction as comments can be anything.
* | Add public_id fixes throughout the codeJessica Tallon2015-10-071-4/+8
| | | | | | | | | | | | | | | | This adds several things, mainly code which checks for the public id and if it doesn't exist generating it where it can. This is to because we need to keep the public_id to be able to effectively soft delete models. This also adds a public_id field to the Activity along with a migration.
* | Collection changes and migration for federationJessica Tallon2015-10-071-3/+3
| | | | | | | | | | | | | | - 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-3/+3
| | | | | | | | | | | | | | WTForms documentation: > The TextField alias for StringField is deprecated. Signed-off-by: Berker Peksag <berker.peksag@gmail.com>
* | Fix bug 647Boris Bobrov2015-03-021-1/+1
| | | | | | | | | | Reading a file into memory resulted in depletion of memory. Now files are read and written lazily, by chunks.
* | Add new hook for two-step media type checkingBoris Bobrov2015-02-161-13/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before uploaded media files were checked by extension. This led to situations when a plugin can support file with specific extension but doesn't due to lack of codecs, for example. Since the plugin reported that it supports uploaded file type, the upload was being declared successful, but transcoding failed. The failures were not easy to debug. The change adds a new hook that could allow two-step checking of the content. The result of the hook execution returns a tuple with media type name, manager and a callable sniffer, that can be used to perform probably expensive checks of the content. Also the change adds implementation of the hook for video.
* | Fix #1054 - Add missing attributes to Activity.serializeJessica Tallon2014-12-081-2/+2
| |
* | Fix #1024 - Correctly set generator on ActivitiesJessica Tallon2014-12-021-2/+7
| |
* | Fix #1017 - Exception caused by activity being set on incorrect foreign keyJessica Tallon2014-10-291-8/+8
| | | | | | | | | | | | | | | | | | | | The .activity ForeignKey on several models such as MediaEntry expects a ActivityIntmediatory ID not an Activity ID however in submit code the activity attribute was being set the Activity, simply removing this assignment should fix the issue as everything is set correctly at this point. I have also moved the creation of the activity above the processing of media to avoid race conditions.
* | Only create a slug after a media upload via the API when there is a titleJessica Tallon2014-10-221-3/+0
| |
* | Merge branch '905-activities'Jessica Tallon2014-10-071-0/+10
|\ \ | | | | | | | | | | | | | | | Add Activity and Generator models which allow for activities to be created. This now works with the feed API.
| * | Fix all the unit tests and clean up codeJessica Tallon2014-10-061-4/+6
| | |
| * | Create activity model and add activity creationJessica Tallon2014-08-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | This creates the Activity and Genrator models from the Activity Streams spec and. I then created a migration which retro-actively create activities for media uploaded and comments created. Through out the code I've added so automatically activties are created when a user peforms an action (uploading media, commenting, etc.).
* | | Merge branch 'master' into merge-python3-portChristopher Allan Webber2014-09-163-2/+73
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Tidy up federation code and add tests to cover more of the APIsJessica Tallon2014-08-181-6/+6
| | |
| * | Fix #927 - Clean up federation code after Elrond's reviewJessica Tallon2014-07-302-0/+69
| |/ | | | | | | | | | | | | | | - Add json_error and use inplace of json_response where appropriate. - Add garbage_collection to config spec file. - Fix bugs in both garbage collection task and test - Handle /api/whoami when no user logged in and a test for such a case. - Validate ID is correct and user has comment privilege to comment.
| * Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. ↵Loïc Le Ninan2014-06-131-1/+1
| | | | | | | | Replaced Required with InputRequired.
| * Fixed a small error relating to the default value of media_metadatatilly-Q2014-05-141-1/+1
| |
| * Made it possible to submit media with the metadata providedtilly-Q2014-04-211-1/+3
| |
* | Fix another tests.Berker Peksag2014-08-071-1/+1
| | | | | | | | (forgot to commit earlier)
* | Use six.text_type instead of unicode().Berker Peksag2014-06-022-8/+12
|/ | | | I will be switch to use ``from __future__ import unicode_literals`` later.
* Making the API make use of the new submit tooling.Christopher Allan Webber2013-11-141-2/+12
| | | | This commit sponsored by Zakkai Kauffman-Rogoff. Thanks! :)
* Pass in request.urlgen to submit_media so it can update the feed_url stuffChristopher Allan Webber2013-11-141-1/+2
| | | | This commit sponsored by Jesus Alberto Rodriguez Chavez. Thank you!
* Switching use of submit_media to be keyword arguments in views.py.Christopher Allan Webber2013-11-141-7/+8
| | | | | | | This should make things a bit easier for me to fiddle with argument ordering. This commit sponsored by Maira Sutton. Thanks!
* Breaking out get_upload_file_limits into its own utility.Christopher Allan Webber2013-11-142-12/+23
| | | | This commit sponsored by Mikael Nordfeldth. Thank you!
* A couple more adjustments for unicode'ification of some arguments.Christopher Allan Webber2013-11-141-2/+2
| | | | This commit sponsored by Bruno Girin. Thank you!
* Generic'ifying the submit code to not rely on the werkzeug FileStorage ↵Christopher Allan Webber2013-11-131-2/+2
| | | | | | | | datastructure Important, because that only makes sense for wsgi! :) This commit sponsored by Geoff Lehr. Thank you!
* Docstring for submit_media()Christopher Allan Webber2013-11-131-0/+18
| | | | This commit sponsored by Benjamin Prager. Thank you!
* Refactoring submission utility to make it more generic! Reusable!Christopher Allan Webber2013-11-132-120/+88
| | | | | This commit sponsored by Joar Wandborg. Joar, thanks for the many things you've done for MediaGoblin!
* Starting to split out a submit_media utilityChristopher Allan Webber2013-11-121-0/+82
|
* Merge remote-tracking branch 'refs/remotes/tilly-q/OPW-Moderation-Update'Christopher Allan Webber2013-10-071-1/+2
|\ | | | | | | | | | | | | Conflicts: mediagoblin/templates/mediagoblin/user_pages/user.html mediagoblin/tests/test_auth.py mediagoblin/tests/test_submission.py
| * Merge branch 'master' into OPW-Moderation-Updatetilly-Q2013-09-121-3/+7
| |\ | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py