aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add ActivityIntermediator table and refactor some of Activity modelJessica Tallon2014-08-273-220/+364
| | | | | | | | | | - This has introduced a intermediatory table between object/target and the activity. This allows for multiple activities to be associated with one object/target. - This moves some of the methods off Activity model into a mixin which didn't need to interact with database things. - This also cleaned up the migrations as well as adding retroactive creation of activities for collection creation.
* Add better support for targets on ActivitiesJessica Tallon2014-08-262-44/+81
| | | | | | This adds betters upport for targets in the content generation and on the model itself. Adding getters for properties which would otherwise require looking up e.g. get_author.
* Create activity model and add activity creationJessica Tallon2014-08-227-23/+343
| | | | | | | | 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.).
* Make blog_post_listing easier to readJessica Tallon2014-08-191-1/+1
| | | | | | This is Elronds change on #948. As 'blog_slug' is always set in request.matchdict there is no need to do a default-none get on the dictionary. This change just makes it easier to read.
* List blogs by URL user rather than request userayleph2014-08-191-1/+1
| | | | | | | | | | | | The blog_post_listing function in mediagoblin/media_types/blow/views.py attempts to access blogs based on the requesting user rather than the url user. This results in server errors when an unauthenticated user attempts to follow a link from another user's blog post listing, and 404 errors when an authenticated user attempts to follow a link from another user's blog post listing. This change bases blog post listings on the URL user rather than the request user.
* Add docs on collection_add_media hook.Elrond2014-08-191-0/+16
|
* Start for documenting core hooks.Elrond2014-08-192-0/+20
| | | | | This is basicly a start by Chris Webber, I'm just commiting it for him.
* Add new hook 'collection_add_media'Odin Hørthe Omdal2014-08-181-7/+9
|
* Tidy up federation code and add tests to cover more of the APIsJessica Tallon2014-08-1811-242/+346
|
* Use oauthlib's safe characters when generating client_key and client_secretJessica Tallon2014-08-181-4/+3
|
* Fix a python2.6 compatibility issue. Removing a dict comprehension.Christopher Allan Webber2014-08-181-1/+2
| | | | This commit sponsored by Christopher Beppler. Thanks!
* Always remove the session when running check_db_up_to_date()Christopher Allan Webber2014-08-151-5/+10
| | | | This commit sponsored by Francois Marier. Thank you!
* Forgot to add starttls_config.iniJessica Tallon2014-08-121-0/+4
|
* Fix #861 - Add unit test and documentation for email_smtp_force_starttlsJessica Tallon2014-08-123-2/+44
|
* Elrond keeps pointing out places I should "is not None" at :)Christopher Allan Webber2014-08-081-2/+2
|
* Okay, we don't know that indexes are falsey, so let's make it clearer. Yeek!Christopher Allan Webber2014-08-081-1/+1
|
* this negation needs parens.Christopher Allan Webber2014-08-081-1/+1
|
* Pull the indexes out of the dictionary directlyChristopher Allan Webber2014-08-081-8/+11
| | | | Instead of checking for their keys and pulling them out later, that is.
* If the constraint already exists, roll back to a sane state.Christopher Allan Webber2014-08-081-1/+1
|
* Explaining why we're committing mid-migrationChristopher Allan Webber2014-08-081-0/+4
|
* Only add the constraint if we need to. Catch an exception if we don't.Christopher Allan Webber2014-08-071-6/+10
| | | | Also, updating the comment about sqlite being crazy :)
* Document both migrations, comment out old migrationChristopher Allan Webber2014-08-071-9/+35
|
* Add a new migration which removes/fixes the old migrationChristopher Allan Webber2014-08-072-1/+51
| | | | | | | The previous migration, as it turns out, was not needed, and there were many inconsistencies put in place by adding it. See issue #920. This commit sponsored by Gergő Tisza. Thank you!
* Committing extracted and compiled translationsChristopher Allan Webber2014-08-0473-622/+688
|
* Committing present MediaGoblin translations before pushing extracted messagesChristopher Allan Webber2014-08-044-57/+5045
|
* Add more security checks when updating objects and testsJessica Tallon2014-08-042-37/+129
|
* Adding Pump API stuff to the docs index.Christopher Allan Webber2014-08-041-0/+20
| | | | This commit sponsored by Joel Luellwitz. Thanks!
* Set up virtualenv to use py2Christopher Allan Webber2014-08-031-11/+1
| | | | This commit sponsored by Jonas Öberg. Thanks Jonas!
* Use the STARTTLS command to upgrade SMTP connections where possible.Matt Molyneaux2014-08-022-0/+12
| | | | | | | | | | | | | Adds the option `email_smtp_force_tls` which will cause `send_email` to error if it is unable to use the `STARTTLS` command (e.g. where the user knows the SMTPd supports `STARTTLS` and wishes to protect themselves against a downgrade attack) Setting both `email_smtp_user_ssl` and `email_smtp_force_tls` may result in undefined behaviour if the SMTPd has not been correctly configured. TODO: Unit tests? TODO: Documentation?
* Updated video thumbnail pipeline to use decodebin2ayleph2014-08-011-1/+1
| | | | The video thumbnailer uses decodebin to automatically detect the file type in the thumbnail pipeline. However, decodebin does not properly demux theora streams, which causes the thumbnailer to fail for .ogv files. decodebin2 properly demuxes the theora stream and successfully creates thumbnails for .ogv files.
* Fix some security concerns regrding inpersonation in federation code.Jessica Tallon2014-07-312-2/+98
|
* Fix #927 - Clean up federation code after Elrond's reviewJessica Tallon2014-07-3010-152/+182
| | | | | | | | - 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.
* Make chown more generic.Elrond2014-07-301-2/+2
| | | | | | | | | | Some distributions (ubuntu 14.04 maybe?) don't create a group for a new user. So change the "chown" to use the primary group of the user instead of forcing the group. This should do the right thing in more cases. Old: chown mediagoblin:mediagoblin New: chown mediagoblin:
* Fix #923 - add allow_admin to user_has_privilege decoratorJessica Tallon2014-07-295-33/+35
|
* Avoid "lego translations" on the nothing currently featured stringsChristopher Allan Webber2014-07-291-7/+9
| | | | This commit sponsored by Vinzenz Vietzke. Thank you!
* Committing extracted and compiled translationsChristopher Allan Webber2014-07-2971-3178/+12744
|
* Committing present MediaGoblin translations before pushing extracted messagesChristopher Allan Webber2014-07-292-507/+1597
|
* Make translatable table columns titles in media processing panelLaura Arjona Reina2014-07-291-16/+16
|
* Make translatable takeaway privileges actionsLaura Arjona Reina2014-07-291-7/+7
|
* Make translatable the titles of TextAreas in moderation formLaura Arjona Reina2014-07-291-1/+4
|
* Make translatable 'Feature' button in the explanation about how to feature ↵Laura Arjona Reina2014-07-291-1/+1
| | | | media.
* Make consistent quotation marks when referring to button labelsLaura Arjona Reina2014-07-291-1/+1
|
* Make translatable some strings that weren't i18n'edLaura Arjona Reina2014-07-293-4/+4
|
* Remove the option about whether or not spectrograms are created. They ↵Christopher Allan Webber2014-07-252-14/+5
| | | | | | always are. This commit sponsored by Emily O'Leary. Thanks, Emily!
* Add __unicode__ representation to Notification and MediaCommentMixinTryggvi Bjorgvinsson2014-07-252-1/+16
| | | | | | Instead of having __repr__ return a unicode object which it should not do, we use the __unicode__ method to allow use of Notification and MediaCommentMixin objects in unicode strings.
* Adding thallian to the authors listChristopher Allan Webber2014-07-241-0/+1
|
* Fix by thallian: use correct datetime.strptimeChristopher Allan Webber2014-07-241-1/+1
| | | | datetime.dateime already imported, so....
* Merge branch 'Federation'Jessica Tallon2014-07-2325-228/+1389
|\
| * Switch from slug to ID and clean up style to conform to PEP-8Jessica Tallon2014-07-225-39/+88
| |
| * Create test for garbage collectionJessica Tallon2014-07-221-4/+37
| |