4190 Commits

Author SHA1 Message Date
Christopher Allan Webber
bb12fb807e Add a new migration which removes/fixes the old migration
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!
2014-08-07 14:57:46 -05:00
Christopher Allan Webber
18cd6b3015 Committing extracted and compiled translations 2014-08-04 14:17:16 -05:00
Christopher Allan Webber
51a46e43f5 Committing present MediaGoblin translations before pushing extracted messages 2014-08-04 14:17:16 -05:00
Jessica Tallon
8d75091de2 Add more security checks when updating objects and tests 2014-08-04 20:02:18 +01:00
Christopher Allan Webber
bf92ac6d7c Adding Pump API stuff to the docs index.
This commit sponsored by Joel Luellwitz.  Thanks!
2014-08-04 11:55:05 -05:00
Christopher Allan Webber
23002ee77f Set up virtualenv to use py2
This commit sponsored by Jonas Öberg.  Thanks Jonas!
2014-08-03 14:09:31 -05:00
Matt Molyneaux
2d4d24f51e Use the STARTTLS command to upgrade SMTP connections where possible.
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?
2014-08-02 16:23:22 -05:00
ayleph
19df857734 Updated video thumbnail pipeline to use decodebin2
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.
2014-08-01 20:15:55 -07:00
Jessica Tallon
8917ffb1e7 Fix some security concerns regrding inpersonation in federation code. 2014-07-31 20:33:04 +01:00
Jessica Tallon
5e5d445890 Fix #927 - Clean up federation code after Elrond's review
- 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.
2014-07-30 21:53:52 +01:00
Elrond
138d934f01 Make chown more generic.
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:
2014-07-30 19:51:23 +02:00
Jessica Tallon
7bfc81b21a Fix #923 - add allow_admin to user_has_privilege decorator 2014-07-29 20:29:02 +01:00
Christopher Allan Webber
97650abd78 Avoid "lego translations" on the nothing currently featured strings
This commit sponsored by Vinzenz Vietzke.  Thank you!
2014-07-29 13:38:59 -05:00
Christopher Allan Webber
92ce9c0df9 Committing extracted and compiled translations 2014-07-29 11:02:42 -05:00
Christopher Allan Webber
2df7a1b66b Committing present MediaGoblin translations before pushing extracted messages 2014-07-29 11:01:36 -05:00
Laura Arjona Reina
e228876efa Make translatable table columns titles in media processing panel 2014-07-29 11:00:37 -05:00
Laura Arjona Reina
a463fe06ed Make translatable takeaway privileges actions 2014-07-29 11:00:37 -05:00
Laura Arjona Reina
7f50ae1656 Make translatable the titles of TextAreas in moderation form 2014-07-29 11:00:37 -05:00
Laura Arjona Reina
b752085339 Make translatable 'Feature' button in the explanation about how to feature media. 2014-07-29 11:00:37 -05:00
Laura Arjona Reina
b678965727 Make consistent quotation marks when referring to button labels 2014-07-29 11:00:37 -05:00
Laura Arjona Reina
6f8ae21a87 Make translatable some strings that weren't i18n'ed 2014-07-29 11:00:37 -05:00
Christopher Allan Webber
7e0c51af3e Remove the option about whether or not spectrograms are created. They always are.
This commit sponsored by Emily O'Leary.  Thanks, Emily!
2014-07-25 16:02:28 -05:00
Tryggvi Bjorgvinsson
dc19e98d98 Add __unicode__ representation to Notification and MediaCommentMixin
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.
2014-07-25 14:37:57 -05:00
Christopher Allan Webber
0e9aa9db14 Adding thallian to the authors list 2014-07-24 12:15:12 -05:00
Christopher Allan Webber
196cef381d Fix by thallian: use correct datetime.strptime
datetime.dateime already imported, so....
2014-07-24 12:09:17 -05:00
Jessica Tallon
aab6239477 Merge branch 'Federation' 2014-07-23 00:23:23 +01:00
Jessica Tallon
a14d90c2db Switch from slug to ID and clean up style to conform to PEP-8 2014-07-22 23:13:17 +01:00
Jessica Tallon
8ac7a653d9 Create test for garbage collection 2014-07-22 23:13:16 +01:00
Jessica Tallon
d8f55f2b41 Add unseralize for API objects 2014-07-22 23:13:16 +01:00
Jessica Tallon
0679545f19 Add garbage collection task 2014-07-22 23:13:16 +01:00
Jessica Tallon
0e283215bd oops - add decorators for federated APIs 2014-07-22 23:13:16 +01:00
Jessica Tallon
161cf125f0 Add documentation for interacting with media entires 2014-07-22 23:13:16 +01:00
Jessica Tallon
3c8bd177b2 Add test for API object endpoint 2014-07-22 23:13:16 +01:00
Jessica Tallon
51ab51921e Add more tests for federation APIs 2014-07-22 23:13:16 +01:00
Jessica Tallon
967df5eff0 Require uploader privileges to upload media to API 2014-07-22 23:13:16 +01:00
Jessica Tallon
ee9956c3de Remove unneeded oauth fixtures and add test for image submission 2014-07-22 23:13:16 +01:00
Jessica Tallon
c9115b89c9 Rename test_joarapi.py => test_legacy_api.py 2014-07-22 23:13:16 +01:00
Jessica Tallon
f751d346cf Add fixtures to provide OAuth client, request and access models 2014-07-22 23:13:16 +01:00
Jessica Tallon
128af9533f Update documentation on uploading media via API 2014-07-22 23:13:16 +01:00
Jessica Tallon
24e12cb133 Fix problem in OAuth views 2014-07-22 23:13:16 +01:00
Jessica Tallon
6781ff3cb1 Clean up & Add support to update objects in feed API 2014-07-22 23:13:15 +01:00
Jessica Tallon
c3b89febc0 Fix problem where feed posting wasn't returning correct object 2014-07-22 23:13:15 +01:00
Jessica Tallon
41599bf23c Fix image upload problem in API 2014-07-22 23:13:15 +01:00
Jessica Tallon
1304a28fa7 Add .jpe file extension recognition 2014-07-22 23:13:15 +01:00
Jessica Tallon
d70b7a5167 Fix issue where create_uuid doesn't exist nor used 2014-07-22 23:13:15 +01:00
xray7224
3d869e82b0 Improve the documentation 2014-07-22 23:13:15 +01:00
xray7224
247a3b788f Adds the unit-tests for API and cleans up API 2014-07-22 23:13:15 +01:00
xray7224
c64fc16b13 Clean up code (after linting) 2014-07-22 23:13:15 +01:00
xray7224
7810817caf Refactors api uploading to media managers 2014-07-22 23:13:15 +01:00
xray7224
3c3fa5e7bf Fix some problems with comments and image posting 2014-07-22 23:13:15 +01:00