aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix migrations of activity intermediatorsJessica Tallon2015-12-291-11/+11
| | | | | | | | | | | | | | There was a problem where it was assuming the tablenames are the same in master as they always were and that isn't the case. This would cause it to raise an exception when trying to look up a table which didn't exist. This fixes that by hardcoding the old tablenames in for this migration.
* | Fix #5368 - Improve test efficiancyJessica Tallon2015-12-291-4/+5
| | | | | | | | | | | | | | | | There were a number of tests where lots of models where being iterated through and then at the end committing them. The problem is all the changes had to be kept in memory or on disk somewhere before they were commit to the database. This fix commits each change as it's being made, allowing resources to be freed and fixing some of the inefficiencies
* | Merge branch 'stable'Boris Bobrov2015-12-213-2/+59
|\ \
| * | Work around pbutils import warning bug (5066)Boris Bobrov2015-12-212-2/+6
| | |
| * | Fixing typo (thanks breton)Christopher Allan Webber2015-12-201-1/+1
| | |
| * | 0.8.1 release notesChristopher Allan Webber2015-12-201-0/+53
| | |
* | | Fix typo in VideoData docstringBoris Bobrov2015-12-201-1/+1
| | |
* | | Setting 0.8.2.dev in configure.ac as wellChristopher Allan Webber2015-12-201-1/+1
| | |
* | | Setting version to v0.8.2.devChristopher Allan Webber2015-12-201-1/+1
| | |
* | | Merge branch 'stable'Christopher Allan Webber2015-12-202-0/+21
|\| |
| * | Fix security issue in OAuth verifier validationJessica Tallon2015-12-192-0/+21
| | |
* | | Merge branch 'stable'Christopher Allan Webber2015-12-191-1/+0
|\| | | | | | | | | | | | | | | | | Conflicts: mediagoblin/i18n/templates/en/mediagoblin.po mediagoblin/plugins/archivalook/tools.py
| * | Fix Issue 5375 Deprecated function in video thumbayleph2015-12-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This patch fixes issue 5375 by replacing a function call that has been removed in recent versions of PIL with the recommended replacement. (cherry picked from commit 564a48e018bcd786aa32b232cb7216be3ef3fb5e)
| * | Fix urlparse import in tools/routing.pyBerker Peksag2015-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | urlparse is already a function, so we don't need to specify a module name. Refs #5339
| * | Regenerate po file after 8e832f84597bd1505f23f4abd4eef96ce12d3822Berker Peksag2015-07-221-111/+44
| | |
| * | Fix typos reported in #1102Berker Peksag2015-07-221-2/+2
| | |
| * | Pin mock 1.0.1 in Python 2 for now.Berker Peksag2015-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | mock recently dropped Python 2.6 support and then re-introduced it in its latest release (however, it's a bit unstable right now). I think at this point, we can be more cautious and just use mock==1.0.1.
| * | Change all unicode() calls with six.text_type().Berker Peksag2015-06-256-10/+18
| | | | | | | | | | | | Fixes #5329.
| * | Fix typo.Berker Peksag2015-06-251-1/+1
| | |
| * | Fix more print statements. Refs #5331Berker Peksag2015-06-252-3/+7
| | |
| * | Fix print statements to be python3 compatible. Refs #5331Sebastian Spaeth2015-06-251-2/+2
| | |
| * | Import urlparse from six.moves to work on both Python 2 and 3.Berker Peksag2015-06-051-1/+3
| | |
* | | Fix bug on the OAuth client deauthorization pageJessica Tallon2015-12-201-1/+1
| | | | | | | | | | | | | | | | | | An exception was raised when a user tried to go to the authroization page this occured when we changed the field names on the models from "user" to actor. This patch corrects the query and resolves the error.
* | | Fix Issue 5375 Deprecated function in video thumbayleph2015-12-201-1/+1
| | | | | | | | | | | | | | | | | | This patch fixes issue 5375 by replacing a function call that has been removed in recent versions of PIL with the recommended replacement.
* | | Kludgey documentation fix so that python 2 does not break with flupChristopher Allan Webber2015-12-141-0/+5
| | | | | | | | | | | | See also Issue #5373
* | | Add "Add media" button on home page when no media is present.Ben Sturmfels2015-12-101-0/+5
| | | | | | | | | | | | This is an addition to the button hidden in the top toolbar.
* | | Fix issue #5372: test_comment_notification fails with werkzeug 0.11 or newerChristopher Allan Webber2015-12-101-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Formerly like: chris commented on your post (​http://localhost:80/u/otherperson/m/some-title/c/1/#comment) at GNU MediaGoblin With werkzeug 0.11.0 or higher: chris commented on your post (​http://localhost/u/otherperson/m/some-title/c/1/#comment) at GNU MediaGoblin Easy enough just to be flexible.
* | | Fix issue 983 PDF UnicodeDecodeErrorayleph2015-12-101-1/+1
| | | | | | | | | | | | | | | Parse PDF lines as unicode to prevent UnicodeDecodeError when a non-ASCII character is encountered.
* | | Fix #5363 - Collections don't serialize correctlyJessica Tallon2015-11-251-1/+1
| | |
* | | Added test for #5356 - Read someone else's feedJessica Tallon2015-11-241-2/+35
| | | | | | | | | | | | | | | | | | This adds a test and improves a previous test for the ability to read someone elses feed. Previously it was not possible however this has since been patched and this test checks for that.
* | | Allow API client to GET another user's outboxayleph2015-11-241-2/+2
| | | | | | | | | | | | Signed-off-by: Jessica Tallon <tsyesika@tsyesika.se>
* | | Fix #5354 & #5355 - Fix Graveyard.serializeJessica Tallon2015-11-231-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Graveyard.serialize raised an exception as the deleted datetime objects where not being converted to strings for json encoding. It also didn't deal with the case when there was an actor, it now calls the actor's serialize method as it should. Thanks to Alyeph who provided the patches for both of these.
* | | Use urljoin to create proper feed media URLsayleph2015-11-191-2/+3
| | |
* | | Fix for issue 5070 gst incomplete fileayleph2015-11-191-0/+1
| | | | | | | | | | | | | | | | | | | | | Seek tmp_media_file to 0 before attempting to discover the file type. This prevents the following error when discovering mp4 video files. "gst-stream-error-quark: This file is incomplete and cannot be played"
* | | Fix add collection view for new schemaDaniel Krol2015-11-091-2/+4
| | |
* | | Fix minor grammatical error 'settings' -> 'setting'.Ben Sturmfels2015-11-0549-49/+49
| | |
* | | Remove <br/> from safe string indicating that CSRF cooking is missing.Ben Sturmfels2015-11-0549-70/+70
| | |
* | | trac#687: Add unit tests for `redirect` and `redirect_obj`.Ben Sturmfels2015-11-051-0/+65
| | |
* | | Switch to webtest >= 2.0.18Christopher Allan Webber2015-11-051-1/+1
| | |
* | | trac#665: Upgrade to WebTest 2.0.18 and fix broken test `test_csrf_cookie_set`.Ben Sturmfels2015-11-052-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Test was failing due to API change in WebTest around accessing cookies set in the test client. These are now in `test_app.cookies`. While there are currently 48 other tests failing, I've verified that before and after this change that the same number fail. I've also checked that no other tests use the old API for accessing test client cookies. I've pinned to version 2.0.18. My understanding is that it's generally a good idea to pin to a specific version where possible to avoid the "why has this suddenly broken" type bugs. This also seems appropriate since WebTest appears to be very stable.
* | | Prevent unhandled exception on non-existant user.Ben Sturmfels2015-11-051-13/+15
| | | | | | | | | | | | | | | | | | These changes bring `makeadmin` and `changepw` in-line with the approach used in `deleteuser`. I've also made the error messages more consistent: list the username and full sentences.
* | | Merge branch 'comments'Jessica Tallon2015-10-2026-344/+754
|\ \ \
| * | | Comment changes for federationJessica Tallon2015-10-2026-344/+754
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Fix #5353 - Bug in OAuth which referenced "user"Jessica Tallon2015-10-173-8/+8
| | | | | | | | | | | | | | | | | | | | | There was a recent change in 0f3bf8d where several names which were used to refer the actor where renamed to the standard "actor" property name. There were some places in the OAuth decorator and the OAuth views where the old names were still referred. This fixes that.
* | | Add public_id fixes throughout the codeJessica Tallon2015-10-077-27/+107
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Add Graveyard modelJessica Tallon2015-10-073-124/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the Graveyard model which is used when a model is deleted, it stores the important "shell" information on the model so it can hard-delete the real object. It also remaps the GenericModelReference references to the new Graveyard model. This also moves the soft deletion setting from __model_args__ to "deletion_mode" on the model.
* | | Add the __model_args__ deletion codeJessica Tallon2015-10-073-2/+148
| | | | | | | | | | | | | | | | | | | | | | | | This adds the "deleted" fields to the models as well as a new __model_args__ section whcih supports the option for changing the deletion type. Deletion is now handled by choosing a deletion method based on the __model_args__["deletion"] setting, for example if it's soft deletion it will call Model.soft_delete()
* | | Collection changes and migration for federationJessica Tallon2015-10-0748-250/+437
| | | | | | | | | | | | | | | | | | | | | - 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
* | | Fix bugs with the exifread library updateJessica Tallon2015-10-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - As of version 2.1.2 of exifread the 90 CW and 90 CCW values were swapped, this bug is now fixed however our test data had those values swapped too. I have fixed that. - I also noticed that I had different orientation values, this was noticed and fixed for some other differing values in commit ccca39f1 when it was decided we'll add values which were noticed on different platforms.
* | | Fix #994: Also set self.data when no change made to URL.Ben Sturmfels2015-09-081-1/+2
| | | | | | | | | | | | This partially reverts 2a1082e3