mediagoblin.git
9 years agombox_message.get_payload() returns bytestring.
Berker Peksag [Mon, 4 Aug 2014 19:08:23 +0000 (22:08 +0300)]
mbox_message.get_payload() returns bytestring.

9 years agoMake sort_keys True to avoid hash randomize feature in Python 3.
Berker Peksag [Mon, 4 Aug 2014 19:06:40 +0000 (22:06 +0300)]
Make sort_keys True to avoid hash randomize feature in Python 3.

9 years agoAdd more security checks when updating objects and tests
Jessica Tallon [Fri, 1 Aug 2014 21:26:12 +0000 (22:26 +0100)]
Add more security checks when updating objects and tests

9 years agoAdding Pump API stuff to the docs index.
Christopher Allan Webber [Mon, 4 Aug 2014 16:55:05 +0000 (11:55 -0500)]
Adding Pump API stuff to the docs index.

This commit sponsored by Joel Luellwitz.  Thanks!

9 years agoSet up virtualenv to use py2
Christopher Allan Webber [Sun, 3 Aug 2014 19:09:31 +0000 (14:09 -0500)]
Set up virtualenv to use py2

This commit sponsored by Jonas Öberg.  Thanks Jonas!

9 years agoUse the STARTTLS command to upgrade SMTP connections where possible.
Matt Molyneaux [Mon, 24 Mar 2014 15:00:19 +0000 (15:00 +0000)]
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?

9 years agoUpdated video thumbnail pipeline to use decodebin2
ayleph [Sat, 2 Aug 2014 03:15:55 +0000 (20:15 -0700)]
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.

9 years agoFix some security concerns regrding inpersonation in federation code.
Jessica Tallon [Thu, 31 Jul 2014 19:33:04 +0000 (20:33 +0100)]
Fix some security concerns regrding inpersonation in federation code.

9 years agoFix #927 - Clean up federation code after Elrond's review
Jessica Tallon [Mon, 28 Jul 2014 22:36:39 +0000 (23:36 +0100)]
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.

9 years agoMake chown more generic.
Elrond [Wed, 30 Jul 2014 17:51:23 +0000 (19:51 +0200)]
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:

9 years agoFix #923 - add allow_admin to user_has_privilege decorator
Jessica Tallon [Fri, 25 Jul 2014 17:58:57 +0000 (18:58 +0100)]
Fix #923 - add allow_admin to user_has_privilege decorator

9 years agoAvoid "lego translations" on the nothing currently featured strings
Christopher Allan Webber [Tue, 29 Jul 2014 18:38:59 +0000 (13:38 -0500)]
Avoid "lego translations" on the nothing currently featured strings

This commit sponsored by Vinzenz Vietzke.  Thank you!

9 years agoCommitting extracted and compiled translations
Christopher Allan Webber [Tue, 29 Jul 2014 16:02:42 +0000 (11:02 -0500)]
Committing extracted and compiled translations

9 years agoCommitting present MediaGoblin translations before pushing extracted messages
Christopher Allan Webber [Tue, 29 Jul 2014 16:01:36 +0000 (11:01 -0500)]
Committing present MediaGoblin translations before pushing extracted messages

9 years agoMake translatable table columns titles in media processing panel
Laura Arjona Reina [Sat, 26 Jul 2014 00:54:56 +0000 (02:54 +0200)]
Make translatable table columns titles in media processing panel

9 years agoMake translatable takeaway privileges actions
Laura Arjona Reina [Fri, 25 Jul 2014 22:50:39 +0000 (00:50 +0200)]
Make translatable takeaway privileges actions

9 years agoMake translatable the titles of TextAreas in moderation form
Laura Arjona Reina [Fri, 25 Jul 2014 22:30:08 +0000 (00:30 +0200)]
Make translatable the titles of TextAreas in moderation form

9 years agoMake translatable 'Feature' button in the explanation about how to feature media.
Laura Arjona Reina [Fri, 25 Jul 2014 21:30:23 +0000 (23:30 +0200)]
Make translatable 'Feature' button in the explanation about how to feature media.

9 years agoMake consistent quotation marks when referring to button labels
Laura Arjona Reina [Fri, 25 Jul 2014 19:16:14 +0000 (21:16 +0200)]
Make consistent quotation marks when referring to button labels

9 years agoMake translatable some strings that weren't i18n'ed
Laura Arjona Reina [Thu, 24 Jul 2014 17:09:28 +0000 (19:09 +0200)]
Make translatable some strings that weren't i18n'ed

9 years agoUse isinstance and six.text_type to check types of an object.
Berker Peksag [Mon, 28 Jul 2014 12:26:13 +0000 (15:26 +0300)]
Use isinstance and six.text_type to check types of an object.

9 years agoFix urlparse import.
Berker Peksag [Mon, 28 Jul 2014 12:25:20 +0000 (15:25 +0300)]
Fix urlparse import.

9 years agoDisable cache support of LazyProxy.
Berker Peksag [Mon, 28 Jul 2014 12:24:49 +0000 (15:24 +0300)]
Disable cache support of LazyProxy.

Since Babel 1.0, there's a enable_cache keyword argument of LazyProxy,
but we can't pass it directly.

9 years agoUpdate .gitignore.
Berker Peksag [Mon, 28 Jul 2014 10:29:26 +0000 (13:29 +0300)]
Update .gitignore.

9 years agoCleanup mediagoblin._compat and fix translation tests.
Berker Peksag [Mon, 28 Jul 2014 10:27:19 +0000 (13:27 +0300)]
Cleanup mediagoblin._compat and fix translation tests.

9 years agoUpdate dependency list.
Berker Peksag [Mon, 28 Jul 2014 10:24:17 +0000 (13:24 +0300)]
Update dependency list.

9 years agoSkip test_sql_migrations on Python 3 for now.
Berker Peksag [Mon, 28 Jul 2014 10:22:42 +0000 (13:22 +0300)]
Skip test_sql_migrations on Python 3 for now.

9 years agoRemove an usage of deprecated cgi.parse_qs().
Berker Peksag [Mon, 28 Jul 2014 09:54:59 +0000 (12:54 +0300)]
Remove an usage of deprecated cgi.parse_qs().

9 years agofunc_name removed in Python 3.
Berker Peksag [Mon, 28 Jul 2014 07:35:14 +0000 (10:35 +0300)]
func_name removed in Python 3.

9 years agoRemove the option about whether or not spectrograms are created. They always are.
Christopher Allan Webber [Fri, 25 Jul 2014 21:02:28 +0000 (16:02 -0500)]
Remove the option about whether or not spectrograms are created.  They always are.

This commit sponsored by Emily O'Leary.  Thanks, Emily!

9 years agoAdd __unicode__ representation to Notification and MediaCommentMixin
Tryggvi Bjorgvinsson [Sat, 19 Jul 2014 12:35:50 +0000 (12:35 +0000)]
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.

9 years agoAdding thallian to the authors list
Christopher Allan Webber [Thu, 24 Jul 2014 17:15:12 +0000 (12:15 -0500)]
Adding thallian to the authors list

9 years agoFix by thallian: use correct datetime.strptime
Christopher Allan Webber [Thu, 24 Jul 2014 17:09:17 +0000 (12:09 -0500)]
Fix by thallian: use correct datetime.strptime

datetime.dateime already imported, so....

9 years agoMerge branch 'Federation'
Jessica Tallon [Tue, 22 Jul 2014 23:23:23 +0000 (00:23 +0100)]
Merge branch 'Federation'

9 years agoSwitch from slug to ID and clean up style to conform to PEP-8
Jessica Tallon [Mon, 21 Jul 2014 17:32:47 +0000 (18:32 +0100)]
Switch from slug to ID and clean up style to conform to PEP-8

9 years agoCreate test for garbage collection
Jessica Tallon [Thu, 17 Jul 2014 10:39:24 +0000 (11:39 +0100)]
Create test for garbage collection

9 years agoAdd unseralize for API objects
Jessica Tallon [Wed, 16 Jul 2014 16:59:03 +0000 (17:59 +0100)]
Add unseralize for API objects

9 years agoAdd garbage collection task
Jessica Tallon [Tue, 15 Jul 2014 20:24:25 +0000 (21:24 +0100)]
Add garbage collection task

9 years agooops - add decorators for federated APIs
Jessica Tallon [Sat, 12 Jul 2014 08:15:16 +0000 (09:15 +0100)]
oops - add decorators for federated APIs

9 years agoAdd documentation for interacting with media entires
Jessica Tallon [Sat, 12 Jul 2014 08:04:40 +0000 (09:04 +0100)]
Add documentation for interacting with media entires

9 years agoAdd test for API object endpoint
Jessica Tallon [Sat, 12 Jul 2014 07:42:39 +0000 (08:42 +0100)]
Add test for API object endpoint

9 years agoAdd more tests for federation APIs
Jessica Tallon [Fri, 11 Jul 2014 14:23:55 +0000 (15:23 +0100)]
Add more tests for federation APIs

9 years agoRequire uploader privileges to upload media to API
Jessica Tallon [Thu, 10 Jul 2014 17:17:47 +0000 (18:17 +0100)]
Require uploader privileges to upload media to API

9 years agoRemove unneeded oauth fixtures and add test for image submission
Jessica Tallon [Thu, 10 Jul 2014 16:47:54 +0000 (17:47 +0100)]
Remove unneeded oauth fixtures and add test for image submission

9 years agoRename test_joarapi.py => test_legacy_api.py
Jessica Tallon [Wed, 9 Jul 2014 17:01:08 +0000 (18:01 +0100)]
Rename test_joarapi.py => test_legacy_api.py

9 years agoAdd fixtures to provide OAuth client, request and access models
Jessica Tallon [Wed, 9 Jul 2014 16:23:57 +0000 (17:23 +0100)]
Add fixtures to provide OAuth client, request and access models

9 years agoUpdate documentation on uploading media via API
Jessica Tallon [Tue, 8 Jul 2014 16:27:38 +0000 (17:27 +0100)]
Update documentation on uploading media via API

9 years agoFix problem in OAuth views
Jessica Tallon [Tue, 8 Jul 2014 14:39:24 +0000 (15:39 +0100)]
Fix problem in OAuth views

9 years agoClean up & Add support to update objects in feed API
Jessica Tallon [Tue, 8 Jul 2014 20:27:43 +0000 (21:27 +0100)]
Clean up & Add support to update objects in feed API

9 years agoFix problem where feed posting wasn't returning correct object
Jessica Tallon [Mon, 7 Apr 2014 16:09:08 +0000 (11:09 -0500)]
Fix problem where feed posting wasn't returning correct object

9 years agoFix image upload problem in API
Jessica Tallon [Fri, 4 Apr 2014 17:25:20 +0000 (12:25 -0500)]
Fix image upload problem in API

9 years agoAdd .jpe file extension recognition
Jessica Tallon [Fri, 4 Apr 2014 17:24:45 +0000 (12:24 -0500)]
Add .jpe file extension recognition

9 years agoFix issue where create_uuid doesn't exist nor used
Jessica Tallon [Fri, 4 Apr 2014 16:47:59 +0000 (11:47 -0500)]
Fix issue where create_uuid doesn't exist nor used

9 years agoImprove the documentation
xray7224 [Sun, 12 Jan 2014 18:19:37 +0000 (18:19 +0000)]
Improve the documentation

9 years agoAdds the unit-tests for API and cleans up API
xray7224 [Thu, 14 Nov 2013 22:42:07 +0000 (22:42 +0000)]
Adds the unit-tests for API and cleans up API

9 years agoClean up code (after linting)
xray7224 [Thu, 14 Nov 2013 17:27:06 +0000 (17:27 +0000)]
Clean up code (after linting)

9 years agoRefactors api uploading to media managers
xray7224 [Thu, 10 Oct 2013 19:19:58 +0000 (20:19 +0100)]
Refactors api uploading to media managers

9 years agoFix some problems with comments and image posting
xray7224 [Sat, 28 Sep 2013 20:37:37 +0000 (16:37 -0400)]
Fix some problems with comments and image posting

9 years agoAdd some more code to work better with image uploads
xray7224 [Sat, 28 Sep 2013 19:22:18 +0000 (15:22 -0400)]
Add some more code to work better with image uploads

9 years agoAdd basic upload image capabilities
xray7224 [Tue, 24 Sep 2013 19:30:51 +0000 (20:30 +0100)]
Add basic upload image capabilities

9 years agoAdd basic comment support and flesh out some other endpoints
Jessica Tallon [Wed, 4 Sep 2013 18:34:29 +0000 (19:34 +0100)]
Add basic comment support and flesh out some other endpoints

9 years agoAdd static pump_io to API and fix problem where null appeared in profile
Jessica Tallon [Wed, 4 Sep 2013 15:32:49 +0000 (16:32 +0100)]
Add static pump_io to API and fix problem where null appeared in profile

9 years agoRemove old webfinger support
xray7224 [Tue, 3 Sep 2013 17:50:33 +0000 (18:50 +0100)]
Remove old webfinger support

9 years agoAdd .json url for host-meta and fix host-meta problem of not having 'links'
xray7224 [Tue, 3 Sep 2013 16:24:24 +0000 (17:24 +0100)]
Add .json url for host-meta and fix host-meta problem of not having 'links'

9 years agoSupport some webfinger API's and real profile and /api/user/<user>/
xray7224 [Tue, 3 Sep 2013 16:17:07 +0000 (17:17 +0100)]
Support some webfinger API's and real profile and /api/user/<user>/

9 years agoSupport for the comments endpoint
xray7224 [Mon, 2 Sep 2013 18:25:24 +0000 (19:25 +0100)]
Support for the comments endpoint

9 years agoFixes problem where full URL was being used inplace of host
xray7224 [Mon, 2 Sep 2013 15:23:40 +0000 (16:23 +0100)]
Fixes problem where full URL was being used inplace of host

9 years agoUse the the slug as the UUID instead of a newly generated UUID
xray7224 [Mon, 2 Sep 2013 15:22:24 +0000 (16:22 +0100)]
Use the the slug as the UUID instead of a newly generated UUID

9 years agoAdd image URL's (thumb & full)
Jessica Tallon [Wed, 14 Aug 2013 18:58:01 +0000 (19:58 +0100)]
Add image URL's (thumb & full)

9 years agoFixes where User id in API would return url rather than host
Jessica Tallon [Wed, 14 Aug 2013 17:32:27 +0000 (18:32 +0100)]
Fixes where User id in API would return url rather than host

9 years agoAdds comments for the MediaEntry api
Jessica Tallon [Wed, 14 Aug 2013 17:23:52 +0000 (18:23 +0100)]
Adds comments for the MediaEntry api

9 years agoChanges serialization to .serialize method on object - MediaEntry
Jessica Tallon [Wed, 14 Aug 2013 16:51:36 +0000 (17:51 +0100)]
Changes serialization to .serialize method on object - MediaEntry

9 years agoAdds endpoint /api/image/<uuid> so that you can now view an image endpoint
Jessica Tallon [Wed, 14 Aug 2013 16:00:26 +0000 (17:00 +0100)]
Adds endpoint /api/image/<uuid> so that you can now view an image endpoint

9 years agoMake sure new media has a new uuid added on
Jessica Tallon [Wed, 14 Aug 2013 15:16:49 +0000 (16:16 +0100)]
Make sure new media has a new uuid added on

9 years agoAdds the federation routing
Jessica Tallon [Wed, 14 Aug 2013 14:49:12 +0000 (15:49 +0100)]
Adds the federation routing

9 years agoAdds migration on MediaEntry to add uuid
Jessica Tallon [Wed, 14 Aug 2013 14:41:02 +0000 (15:41 +0100)]
Adds migration on MediaEntry to add uuid

9 years agoStarts the user (profile) endpoint and lays groundwork for inbox and feed endpoint
Jessica Tallon [Mon, 29 Jul 2013 20:53:08 +0000 (21:53 +0100)]
Starts the user (profile) endpoint and lays groundwork for inbox and feed endpoint

9 years agoAdds seralize on user
Jessica Tallon [Mon, 29 Jul 2013 16:31:42 +0000 (17:31 +0100)]
Adds seralize on user

9 years agoAdd JPope's sandy 70s speedboat theme
Jessica Tallon [Sun, 20 Jul 2014 08:47:58 +0000 (09:47 +0100)]
Add JPope's sandy 70s speedboat theme

9 years agoRevert "Add JPope's sandy 70s speedboat theme"
Jessica Tallon [Sun, 20 Jul 2014 08:28:30 +0000 (09:28 +0100)]
Revert "Add JPope's sandy 70s speedboat theme"

The theme is in the wrong place. Elrond suggested in IRC
that actually it should go in mediagoblin/themes.

This reverts commit 58432bcb8cf1795b90bc08b1a9615c64d77e1e3a.

9 years agoAdd JPope's sandy 70s speedboat theme
Jessica Tallon [Fri, 18 Jul 2014 17:01:58 +0000 (18:01 +0100)]
Add JPope's sandy 70s speedboat theme

9 years agoUse unicode for logging comments
Tryggvi Bjorgvinsson [Fri, 28 Feb 2014 23:25:02 +0000 (23:25 +0000)]
Use unicode for logging comments

The comment problems detailed in issue 791 are related to logging
of comments creation. The log tries to format unicode comments into
an ascii string (that is the unicode comment content).

This also creates problems with mark seen functionality since that
also logs the comments which breaks and you end up with a lot of
international comments in your message queue.

This commit makes both log messages unicode as well as the
representation of the comment.

9 years agoRemove paste.server dependency from tests.
Berker Peksag [Fri, 18 Jul 2014 09:39:13 +0000 (12:39 +0300)]
Remove paste.server dependency from tests.

9 years agoAdd tox.ini.
Berker Peksag [Fri, 18 Jul 2014 08:05:11 +0000 (11:05 +0300)]
Add tox.ini.

9 years agoExplicitly *do not* handle NEF files via the video media type.
Christopher Allan Webber [Thu, 17 Jul 2014 20:04:03 +0000 (15:04 -0500)]
Explicitly *do not* handle NEF files via the video media type.

Gstreamer might think it's a good idea, but it isn't.

9 years agoFix #894 - index User.username field
Jessica Tallon [Thu, 17 Jul 2014 13:58:24 +0000 (14:58 +0100)]
Fix #894 - index User.username field

This commit sponsored by Emily O'Leary.  Thank you!

9 years agoImplement Raw Image media type plugin
Odin Hørthe Omdal [Mon, 12 May 2014 21:41:03 +0000 (23:41 +0200)]
Implement Raw Image media type plugin

9 years agoFix tests on Python 3.
Berker Peksag [Mon, 14 Jul 2014 02:49:38 +0000 (05:49 +0300)]
Fix tests on Python 3.

9 years agoAs Elrond points out, git submodule should come first!
Christopher Allan Webber [Sat, 12 Jul 2014 13:59:55 +0000 (08:59 -0500)]
As Elrond points out, git submodule should come first!

This commit sponsored by Sebastien Hut.  Thanks Sebastien!

9 years agoCommitting extracted and compiled translations
Christopher Allan Webber [Thu, 10 Jul 2014 17:33:32 +0000 (12:33 -0500)]
Committing extracted and compiled translations

9 years agoCommitting present MediaGoblin translations before pushing extracted messages
Christopher Allan Webber [Thu, 10 Jul 2014 17:32:36 +0000 (12:32 -0500)]
Committing present MediaGoblin translations before pushing extracted messages

9 years agoTags can now be passed in for media entries submitted via the api plugin
Tryggvi Bjorgvinsson [Thu, 5 Dec 2013 22:56:53 +0000 (22:56 +0000)]
Tags can now be passed in for media entries submitted via the api plugin

9 years agoFix bad copy/paste in skip_transcoding code (Fix by Beuc, Brett Smith)
Christopher Allan Webber [Thu, 10 Jul 2014 15:58:38 +0000 (10:58 -0500)]
Fix bad copy/paste in skip_transcoding code (Fix by Beuc, Brett Smith)

9 years agoMoving the quotation.
Christopher Allan Webber [Thu, 10 Jul 2014 15:32:49 +0000 (10:32 -0500)]
Moving the quotation.

This commit sponsored by Max Lupo.  Thanks Max!

9 years agoruntests.sh was asking to install nose instead of pytest
Amirouche Boubekki [Thu, 8 Aug 2013 18:51:20 +0000 (20:51 +0200)]
runtests.sh was asking to install nose instead of pytest

9 years agoThis was a very simple update. The gmg command `adduser` was generating an
tilly-Q [Sun, 29 Sep 2013 18:34:41 +0000 (14:34 -0400)]
This was a very simple update. The gmg command `adduser` was generating an
unncessary error because we were searching for a non-unicode string value in a
Unicode column of the core__users table.

9 years agoAdding WAI-ARIA attributes to the header dropdown (Fix by Aleksej Serdjukov)
Christopher Allan Webber [Thu, 10 Jul 2014 15:22:33 +0000 (10:22 -0500)]
Adding WAI-ARIA attributes to the header dropdown (Fix by Aleksej Serdjukov)

This fixes issue #754

Thanks Aleksej!

9 years agoWrapping things to not exceed column 80 in test_ldap
Christopher Allan Webber [Thu, 10 Jul 2014 15:05:23 +0000 (10:05 -0500)]
Wrapping things to not exceed column 80 in test_ldap

9 years agoAllow crypto.random_string to take optional alphabet param
Jessica Tallon [Mon, 7 Jul 2014 23:02:16 +0000 (00:02 +0100)]
Allow crypto.random_string to take optional alphabet param

9 years agoRemove Paste#http, Paste#urlmap and Paste#static dependencies.
Berker Peksag [Sun, 29 Jun 2014 01:23:50 +0000 (04:23 +0300)]
Remove Paste#http, Paste#urlmap and Paste#static dependencies.

Changes:

* Paste#http -> Gunicorn
* Paste#urlmap and Paste#static -> werkzeug.wsgi.SharedDataMiddleware