aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/gmg_commands
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'refs/remotes/rodney757/dbupdate'Christopher Allan Webber2014-01-021-0/+1
|\ | | | | | | | | | | Conflicts: mediagoblin/db/util.py mediagoblin/gmg_commands/dbupdate.py
| * don't set logging level to debugRodney Ewing2013-09-021-2/+0
| |
* | Removing the "logging is debug by default in dbupdate"Christopher Allan Webber2013-11-251-1/+2
| | | | | | | | This commit sponsored by David Neudorfer. Thank you!
* | This is a tiny change. I took out the warnings that were displayed when a plugintilly-Q2013-11-211-6/+0
| | | | | | | | didn't have a FOUNDATIONS dictionary because people found them annoying.
* | 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-132-0/+104
| |
* | Merge branch 'master' into OPW-Moderation-Updatetilly-Q2013-09-124-1/+309
|\| | | | | | | | | Conflicts: mediagoblin/db/migrations.py
| * include a thumb_size string with each Resizer to run gmg reprocess thumbsRodney Ewing2013-08-161-2/+4
| |
| * Audio Initial ProcessorRodney Ewing2013-08-161-1/+2
| |
| * remove old codeRodney Ewing2013-08-161-118/+0
| |
| * bulk_run reprocessing completeRodney Ewing2013-08-161-5/+19
| |
| * Resize all processed thumbsRodney Ewing2013-08-161-2/+40
| |
| * wrap get_entry_and_processing_manager in try, except blockRodney Ewing2013-08-161-22/+30
| |
| * run initial processing on all failed entriesRodney Ewing2013-08-161-3/+16
| |
| * add bulk_run, thumbs, and initial sub_commandsRodney Ewing2013-08-161-19/+77
| |
| * Fixing ./bin/gmg reprocess available, which I broke :)Christopher Allan Webber2013-08-161-2/+3
| |
| * Trying to fix the bug that's happening to rodney757 but not to me ;)Christopher Allan Webber2013-08-161-4/+5
| |
| * Revert "use parser.parse_known_args() instead of parser.parse_args()"Christopher Allan Webber2013-08-166-45/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 029e779c468ba1a6bfd893679cfaae7f418f45dd. (and a bit more!) This wasn't needed anymore because we did a "rest" capture and passed that over to the reprocess run command. Conflicts: mediagoblin/gmg_commands/assetlink.py mediagoblin/gmg_commands/dbupdate.py mediagoblin/gmg_commands/import_export.py mediagoblin/gmg_commands/users.py
| * Renaming the processing manager stuff to be less ambiguous.Christopher Allan Webber2013-08-161-4/+4
| | | | | | | | | | | | BONUS COMMIT to Ben Finney and the Free Software Melbourne crew. :) IRONY: Initially I committed this as "media manager".
| * That manager.process() line no longer made senseChristopher Allan Webber2013-08-161-1/+0
| |
| * Updating to the point where we can allllmost run with the new reprocessing codeChristopher Allan Webber2013-08-161-25/+13
| | | | | | | | This commit sponsored by Odin Hørthe Omdal. Thank you!
| * Should be enough to get to the point where you can actually initialize a ↵Christopher Allan Webber2013-08-161-4/+5
| | | | | | | | | | | | | | | | processing command now. However, it doesn't celery task-ify it... This commit sponsored by Catalin Cosovanu. Thank you!
| * Steps toward working "run" reprocessing command.Christopher Allan Webber2013-08-161-9/+32
| | | | | | | | This commit sponsored by Philippe Casteleyn. Thank you!
| * Moving celery setup to the right placeChristopher Allan Webber2013-08-161-4/+4
| | | | | | | | This commit sponsored by Jose Manuel Zueco Lazaro. Thank you!
| * Whitespacin' it up.Christopher Allan Webber2013-08-161-0/+3
| |
| * `gmg reprocess available --action-help` now tells you processor arguments!Christopher Allan Webber2013-08-161-6/+20
| | | | | | | | | | Every reprocessing action possible can inform you of its command line argument stuff! Is that awesome or what?
| * "initial" reprocessing subcommand now works!Christopher Allan Webber2013-08-161-4/+27
| | | | | | | | | | | | | | We are on our way now to a working reprocessing system under this redesign! This commit sponsored by Bjarni Rúnar Einarsson. Thank you!
| * More progress towards the new reprocessing infrastructure: args updatingChristopher Allan Webber2013-08-162-21/+73
| | | | | | | | This commit sponsored by Elizabeth Webber. Thanks, sis!
| * added comments and did a little refactoring. not sure if it is actually any ↵Rodney Ewing2013-08-161-11/+34
| | | | | | | | clearer though
| * add option to not run eagerlyRodney Ewing2013-08-161-2/+8
| |
| * added image reprocessingRodney Ewing2013-08-161-0/+3
| |
| * pep 8Rodney Ewing2013-08-161-9/+9
| |
| * add command option for regenerating all thumbnailsRodney Ewing2013-08-161-3/+18
| |
| * make media_id an optional argumentRodney Ewing2013-08-161-40/+42
| |
| * refactored _run_reprocessingRodney Ewing2013-08-161-1/+9
| |
| * added a set_media_state function. removed the --all flag (just don't enter ↵Rodney Ewing2013-08-161-15/+27
| | | | | | | | any media_ids to process all media). slight refactor
| * Pep 8Rodney Ewing2013-08-161-4/+4
| |
| * Just raise standard exception. Pass print statement to gettextRodney Ewing2013-08-161-19/+10
| |
| * added a _run_reprocessing function which handles the hook callsRodney Ewing2013-08-161-0/+6
| |
| * add reprocess_all function. still need to add code to reprocess all failed ↵Rodney Ewing2013-08-161-0/+28
| | | | | | | | entries
| * Added a set_media_type function that has checks to only reprocess one ↵Rodney Ewing2013-08-161-1/+47
| | | | | | | | media_type at a time
| * Beginnings of a reprocess commandRodney Ewing2013-08-162-0/+45
| |
| * Throw an error if there are unrecognized argumentsRodney Ewing2013-08-166-1/+18
| |
| * use parser.parse_known_args() instead of parser.parse_args()Rodney Ewing2013-08-166-36/+36
| |
* | This was a quick update, I mostly worked on the transition from using the oldtilly-Q2013-09-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | User table columns (is_admin, status, email_verified) and making sure that their functionality is instead completely handled by privileges. I also worked on the meta pages which I hope to finish soon. I set up migrations to ensure the default privileges are given to users that should have them. Lastly, I made it so that banned users can log out. =============================================================================== Made Sure the Vestigial Columns of the User Table were not being Used =============================================================================== --\ mediagoblin/auth/views.py --\ mediagoblin/db/models.py --\ mediagoblin/templates/mediagoblin/base.html --\ mediagoblin/templates/mediagoblin/moderation/user.html --\ mediagoblin/templates/mediagoblin/user_pages/collection_lis$ --\ mediagoblin/templates/mediagoblin/user_pages/user.html --\ mediagoblin/tests/test_auth.py --\ mediagoblin/tests/test_persona.py --\ mediagoblin/user_pages/views.py =============================================================================== Wrote the Migrations to Set up the Default Privileges =============================================================================== --\ mediagoblin/db/migrations.py --\ mediagoblin/gmg_commands/users.py =============================================================================== Work on the Meta Pages =============================================================================== --\ mediagoblin/meta/routing.py --\ mediagoblin/meta/views.py --\ mediagoblin/static/css/base.css --\ mediagoblin/templates/mediagoblin/meta/terms_of_service.html =============================================================================== Small Changes =============================================================================== --\ mediagoblin/templates/mediagoblin/base.html --| Benevolently made it so that banned users can log out =============================================================================== X X X X X X X X X X X X X X X X X X X X ===============================================================================
* | This was a big commit! I included lots of documentation below, but generally Itilly-Q2013-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | did a few things. I wrote many many many new tests, either in old test files or in the three new test files I made. I also did some code-keeping work, deleting trailing whitespace and deleting vestigial code. Lastly, I fixed the parts of the code which I realized were broken thru the process of running tests. =============================================================================== Deleted trailing whitespace: =============================================================================== --\ mediagoblin/decorators.py --\ mediagoblin/auth/tools.py --\ mediagoblin/db/migrations.py --\ mediagoblin/db/models.py --\ mediagoblin/gmg_commands/users.py --\ mediagoblin/moderation/forms.py --\ mediagoblin/moderation/tools.py --\ mediagoblin/moderation/views.py --\ mediagoblin/templates/mediagoblin/moderation/media_panel.html --\ mediagoblin/templates/mediagoblin/moderation/report.html --\ mediagoblin/templates/mediagoblin/moderation/report_panel.html --\ mediagoblin/templates/mediagoblin/moderation/user.html --\ mediagoblin/templates/mediagoblin/moderation/user_panel.html --\ mediagoblin/templates/mediagoblin/user_pages/report.html --\ mediagoblin/templates/mediagoblin/utils/report.html --\ mediagoblin/user_pages/lib.py --\ mediagoblin/user_pages/views.py =============================================================================== Deleted Vestigial Code =============================================================================== --\ mediagoblin/db/util.py --\ mediagoblin/tests/test_notifications.py =============================================================================== Modified the Code: =============================================================================== --\ mediagoblin/moderation/tools.py --| Encapsulated the code around giving/taking away privileges into two | funtions. --\ mediagoblin/moderation/views.py --| Imported and used the give/take away privilege functions --| Replaced 'require_admin_or_moderator_login' with |'user_has_privilege(u"admin")' for adding/taking away privileges, only | admins are allowed to do this. --\ mediagoblin/templates/mediagoblin/banned.html --| Added relevant translation tags --| Added ability to display indefinite banning --\ mediagoblin/templates/mediagoblin/user_pages/media.html --| Made sure the add comments button was only visible for users with the | `commenter` privilege --\ mediagoblin/tests/test_submission.py --| Paroneayea fixed a DetachedInstanceError I was having with the our_user | function --\ mediagoblin/tests/tools.py --| Added a fixture_add_comment_report function for testing. --\ mediagoblin/tools/response.py --| Fixed a minor error where a necessary return statement was missing --| Fit the code within 80 columns --\ mediagoblin/user_pages/views.py --| Added a necessary decorator to ensure that only users with the 'commenter' | privilege can post comments =============================================================================== Wrote new tests for an old test file: =============================================================================== --\ mediagoblin/tests/test_auth.py --| Added a new test to make sure privilege granting on registration happens | correctly --\ mediagoblin/tests/test_modelmethods.py* --| Added a test to ensure the User method has_privilege works properly =============================================================================== Wrote entirely new files full of tests: =============================================================================== --\ mediagoblin/tests/test_moderation.py --\ mediagoblin/tests/test_privileges.py --\ mediagoblin/tests/test_reporting.py =============================================================================== =============================================================================== NOTE: Any files I've marked with a * in this commit report, were actually subm- itted in my last commit. I made that committ to fix an error I was having, so they weren't properly documented in that report. =============================================================================== ===============================================================================
* | Merge branch 'master' into OPW-Moderation-Updatetilly-Q2013-08-201-2/+2
|\| | | | | | | | | | | | | | | Conflicts: mediagoblin/db/models.py mediagoblin/decorators.py mediagoblin/routing.py mediagoblin/user_pages/views.py
| * typo fix in foundations branchRodney Ewing2013-08-021-2/+2
| |