Boris Bobrov [Tue, 23 Feb 2016 01:15:06 +0000 (04:15 +0300)]
Change viewitems to items
There is no viewitems in python3
Boris Bobrov [Tue, 23 Feb 2016 01:03:27 +0000 (04:03 +0300)]
do not show error message when it's not a exception
Gah, the previous patch was not enough! We cannot use text, we can only
use exception with a special attribute.
Lets return safe None for now an resolve this properly later, when we're
not in the freeze.
Boris Bobrov [Tue, 23 Feb 2016 00:57:00 +0000 (03:57 +0300)]
Catch import error when text is used as a reason instead of path
fail_error was used in import, but due to some changes text could appear
there and it caused an error.
There is little sense now to remove these text messages because they are
probably in databases already, so just ignore import errors.
Andrew Browning [Tue, 23 Feb 2016 00:15:40 +0000 (19:15 -0500)]
Fix issue #5411 sqlite connection closes
This update changes migrations to wrap db.execute results in a list to
keep the connection from closing for sqlite migrations.
Andrew Browning [Sun, 21 Feb 2016 22:49:53 +0000 (17:49 -0500)]
Fix issue 5422 Resend verification fails
If a user was logged in and already verified, the resend_verification
link would cause a server error. This fix addresses that by using the
correct syntax to query the username from the request.
Christopher Allan Webber [Sat, 20 Feb 2016 21:25:45 +0000 (13:25 -0800)]
Oh, we don't need Paste, but we do need PasteScript!
Christopher Allan Webber [Sat, 20 Feb 2016 20:44:42 +0000 (12:44 -0800)]
Basic explaination of how to deploy with Python 3.
Could be better, but "works" for now.
Christopher Allan Webber [Fri, 19 Feb 2016 19:51:20 +0000 (11:51 -0800)]
Move Ubuntu -> *buntu because of absurd trademark issues
For more context, see:
http://joeyh.name/blog/entry/trademark_nonsense/
Christopher Allan Webber [Thu, 18 Feb 2016 02:06:32 +0000 (18:06 -0800)]
Removing python 2.6 junk: argparse and a 2.6 classifier
Christopher Allan Webber [Thu, 18 Feb 2016 01:39:32 +0000 (17:39 -0800)]
Switch from Paste for serving to Waitress
Incredibly, it looks like none of our documentation has to change taking
this route...!
Boris Bobrov [Thu, 18 Feb 2016 06:42:24 +0000 (09:42 +0300)]
Cleanup setup.py
Remove old comments and duplicate requirements from setup.py
Christopher Allan Webber [Wed, 17 Feb 2016 23:52:24 +0000 (15:52 -0800)]
Removed deprecated comment about wsgi environ being borked
Christopher Allan Webber [Thu, 11 Feb 2016 22:47:04 +0000 (14:47 -0800)]
Fix another python 3 and unicode issue
Christopher Allan Webber [Thu, 11 Feb 2016 19:36:05 +0000 (11:36 -0800)]
Fixing one more bytes vs string battle in Python 3
Christopher Allan Webber [Thu, 11 Feb 2016 19:21:44 +0000 (11:21 -0800)]
#5416: Fix tests using the FileObjectAwareFile
Boris Bobrov [Thu, 21 Jan 2016 19:26:39 +0000 (22:26 +0300)]
Upgrade sqlalchemy and sa-migrate
Our versions were too old. And not compatible with python3.
Christopher Allan Webber [Thu, 11 Feb 2016 18:26:51 +0000 (10:26 -0800)]
Move "/usr/bin/env bash" to simply "/bin/sh"
This makes working with Guix easier.
Christopher Allan Webber [Thu, 11 Feb 2016 18:23:06 +0000 (10:23 -0800)]
.iteritems() doesn't exist in Python 3, converted to .items()
Christopher Allan Webber [Wed, 10 Feb 2016 19:11:02 +0000 (11:11 -0800)]
Switch to #!/bin/sh (don't use "env" unless we have to)
env causes problems in GuixSD and maybe even some other places.
Christopher Allan Webber [Sun, 7 Feb 2016 17:28:51 +0000 (09:28 -0800)]
Committing extracted and compiled translations
Loic Dachary [Mon, 25 Jan 2016 12:08:52 +0000 (19:08 +0700)]
Fix #5079 - tags unicity is on the slug, not the name
Signed-off-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
Boris Bobrov [Fri, 5 Feb 2016 02:38:18 +0000 (05:38 +0300)]
Do not calculate processing info for anonymous user
Boris Bobrov [Mon, 18 Aug 2014 14:47:21 +0000 (17:47 +0300)]
removed debug prints, added video icon
Boris Bobrov [Fri, 15 Aug 2014 23:18:12 +0000 (02:18 +0300)]
Display type icon in thumbnails
Boris Bobrov [Fri, 5 Feb 2016 01:33:05 +0000 (04:33 +0300)]
Merge branch 'media_panel'
Boris Bobrov [Fri, 5 Feb 2016 01:32:19 +0000 (04:32 +0300)]
Prevent `dict changed during iteration` in video
Boris Bobrov [Fri, 5 Feb 2016 01:32:07 +0000 (04:32 +0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin
Christopher Allan Webber [Thu, 4 Feb 2016 23:40:28 +0000 (15:40 -0800)]
Issue #5349: Submission tests fail confusingly on missing dependency
They gave a DetachedInstanceError, despite being totally unrelated to
anything in database-land!
Boris Bobrov [Mon, 1 Feb 2016 00:43:36 +0000 (01:43 +0100)]
Fix occurence of unicode()
Fix unicode() -> six.text_type()
Boris Bobrov [Sun, 31 Jan 2016 23:35:42 +0000 (00:35 +0100)]
Change `uploader` to `actor`
Class User doesn't have field `uploader` any more, instead there
`actor`. Fix several uses of `uploader` to `actor`.
Boris Bobrov [Mon, 18 Aug 2014 00:07:02 +0000 (03:07 +0300)]
changes to BaseProcessingFail arguments usage
Boris Bobrov [Sat, 16 Aug 2014 21:43:21 +0000 (00:43 +0300)]
some fixes to the panel looks
Boris Bobrov [Sat, 16 Aug 2014 14:41:37 +0000 (17:41 +0300)]
added filtering by entry state in processing panel
Boris Bobrov [Sat, 16 Aug 2014 13:38:35 +0000 (16:38 +0300)]
included plugin from previous commit to mediagoblin.ini
Boris Bobrov [Sun, 31 Jan 2016 23:28:32 +0000 (00:28 +0100)]
added a plugin to display information about entries in processing
Conflicts:
mediagoblin/templates/mediagoblin/base.html -- resolved by using
the original file and manually adding pieces from my commit
Boris Bobrov [Mon, 11 Aug 2014 16:59:35 +0000 (20:59 +0400)]
changed the way we save information about exceptions
Boris Bobrov [Mon, 11 Aug 2014 16:42:49 +0000 (20:42 +0400)]
moved styles to a css file; more fixes to templates
Boris Bobrov [Mon, 11 Aug 2014 10:03:18 +0000 (14:03 +0400)]
removed h2 from media panel
Boris Bobrov [Mon, 11 Aug 2014 09:51:07 +0000 (13:51 +0400)]
removed querying of unused metrics in media panel
Boris Bobrov [Mon, 11 Aug 2014 09:39:19 +0000 (13:39 +0400)]
processing panel new looks
Loic Dachary [Mon, 25 Jan 2016 10:26:33 +0000 (17:26 +0700)]
Fix #5408 - ignore non-int offset in api feed
In the same fashion limit=BAD fallsback to the default value,
fallback to zero when offset=WORSE.
Also add test coverage verifying limit/offset do the right thing.
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Thu, 14 Jan 2016 10:55:18 +0000 (11:55 +0100)]
Fix #947 - media_type configuration files location
Document the location of the config_spec.ini files for media_types.
Signed-off-by: Loic Dachary <loic@dachary.org>
Boris Bobrov [Fri, 22 Jan 2016 07:32:35 +0000 (10:32 +0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin
Boris Bobrov [Thu, 21 Jan 2016 22:36:27 +0000 (01:36 +0300)]
Make freesound compatible with python3
Freesound is a lib used for audio processing. Unfortunately, it doesn't
work with python3.
It lives in extlib, so we don't own the code. But, since the patch is
pretty trivial, it was decided to merge it anyway and propose the fix to
upstream. Which was done in https://github.com/MTG/freesound/pull/700 .
Also, a bugreport was opened to use upstream version instead of our
local, when it gets merged, ticket 5403.
Christopher Allan Webber [Thu, 21 Jan 2016 20:37:50 +0000 (12:37 -0800)]
Issue #5394: Wrong url for forgot_password in basic_auth plugin
Fix by jerome. Thank you!
宋文武 [Tue, 12 Jan 2016 01:48:00 +0000 (09:48 +0800)]
Pass filename instead of file object when calling PIL.Image.save()
Boris Bobrov [Thu, 21 Jan 2016 20:19:31 +0000 (23:19 +0300)]
Fix an occurence of `print ...` to `print(...)`
Loic Dachary [Tue, 12 Jan 2016 17:39:28 +0000 (18:39 +0100)]
Fix #1096 - allow - in usernames
Signed-off-by: Loic Dachary <loic@dachary.org>
Ben Sturmfels [Tue, 19 Jan 2016 12:53:52 +0000 (23:53 +1100)]
trac#5397: Allow decode_request to parse content-type headers with extra options.
It previously parsed "Content-Type: application/x-www-form-urlencoded", but not "Content-Type: application/x-www-form-urlencoded; charset=utf-8".
Jessica Tallon [Wed, 20 Jan 2016 09:09:42 +0000 (09:09 +0000)]
Fix #5398 and #5395 - Fix tests failing due to problem creating connection for alembic
For some reason the alembic connection wasn't seeing any tables that existed
however the existing connection works well and we shouldn't be creating a brand
new one when we have one ready to use. I've used a little bit of a hack due to our
old version of alembic.
After 0.7.5 of alembic it offers a `Config.attributes` dictionary which is designed to
allow you to pass your connection/engine/whatever to the env.py config script so you're
not required to create new ones. As we're on an older version I just create a dictionary
with the same name and use it as otherwise documented. It seems this is the suggested
fix for #5395 and it fixes #5398 too.
Jessica Tallon [Tue, 19 Jan 2016 09:17:12 +0000 (09:17 +0000)]
Fix #5390 - Create migration to delete Notifications and fix Report
When a user deleted media or other objects any notificationn objects or reports
would cause errors as the object doesn't exist anymore. This now removes them or
sets them to None as expected by the code. This also adds some code to the base
deletion code to make sure this happens when an object is deleted.
Loic Dachary [Tue, 12 Jan 2016 17:09:56 +0000 (18:09 +0100)]
Fix #1099 - remove x mode from ini file
Signed-off-by: Loic Dachary <loic@dachary.org>
Loic Dachary [Tue, 12 Jan 2016 00:47:20 +0000 (01:47 +0100)]
Fix #5359 - unpriviledged -> unprivileged
Jessica Tallon [Mon, 18 Jan 2016 10:29:01 +0000 (10:29 +0000)]
Use inspect_table inplace of redefining them all
Just like we would have in sqlalchemy-migration inspect_table works and
is better than constantly redefining a table in the migration. This switches
the migration to use that method.
Jessica Tallon [Mon, 18 Jan 2016 09:39:34 +0000 (09:39 +0000)]
Fix #5391 - Alembic migrations would only work for SQLite
The database connection was being set in a alembic.ini config file, if the user
had specified postgres the "sqlite" connection URL in alembic.ini would override
that. We probably should look into this more so i've opened #5395.
ayleph [Sun, 6 Dec 2015 19:48:45 +0000 (14:48 -0500)]
Fix issue 5366 Update blog views
This commit updates blog views to be compatible with recent database
migrations.
Signed-off-by: Jessica Tallon <tsyesika@tsyesika.se>
Jessica Tallon [Tue, 12 Jan 2016 11:41:21 +0000 (11:41 +0000)]
Fix #5382 - Add migration and fix so tombstones are removed from collections
When an item is deleted it should be removed from all collections, this commit
makes that happen. It's got two changes:
1. Adds the code so when an object is soft deleted, it's automatically removed from
all collection items
2. Add a migration to fix this issue for those who have tombstones (Graveyard objects)
in their collections because of this bug.
This commit requires you to run a migration
Loic Dachary [Tue, 12 Jan 2016 00:26:14 +0000 (01:26 +0100)]
Fix #5315 - use `env` in shebangs
宋文武 [Tue, 12 Jan 2016 03:37:21 +0000 (11:37 +0800)]
Use six.itervalues() in delete_media_files
Christopher Allan Webber [Thu, 14 Jan 2016 18:16:12 +0000 (10:16 -0800)]
Adding Tom Fay to the AUTHORS file
Christopher Allan Webber [Thu, 7 Jan 2016 22:36:26 +0000 (14:36 -0800)]
Add a TODO to rename run_all_migrations to run_legacy_migrations
Boris Bobrov [Thu, 26 Nov 2015 20:47:55 +0000 (23:47 +0300)]
Initial alembic migration to base other migrations on
Use this migration as a parent for yours.
Boris Bobrov [Sat, 7 Nov 2015 13:57:22 +0000 (16:57 +0300)]
Enable alembic as the main tool for migrations
Enable alembic for all migrations and limit the max number of
sqlalchemy-migration migration. All new migrations must now be in
Alembic!
Boris Bobrov [Sun, 1 Nov 2015 00:26:39 +0000 (09:26 +0900)]
Fix various style issues
Sorry, cannot look at them without urge to fix
Christopher Allan Webber [Thu, 7 Jan 2016 19:07:38 +0000 (11:07 -0800)]
Add a comment when we do / don't add collections dropdown
Otherwise that "del submit_form.collection" might be confusing :)
tom [Sat, 12 Dec 2015 11:29:27 +0000 (11:29 +0000)]
Add test to check that an activity is created when a collection was chosen.
tom [Sat, 12 Dec 2015 11:02:39 +0000 (11:02 +0000)]
Add collection drop down to submit page.
Boris Bobrov [Thu, 7 Jan 2016 15:28:52 +0000 (18:28 +0300)]
Do not require python3.3 explicitely
It's easier to say "use python3.3+" rather than prevent usage of earlier
versions programmatically in autoconf.
Boris Bobrov [Thu, 7 Jan 2016 18:12:01 +0000 (21:12 +0300)]
Uncap Paste
Paste was capped to 1.9.9 because 2.0 broke us. Now Paste 2.0.x was released
and it doesn't break us any more. Closes bug 5317.
Boris Bobrov [Thu, 7 Jan 2016 16:50:27 +0000 (19:50 +0300)]
Add workaround for incompilable Interlingua locale
For now we cannot compile Interlingua (ia) locale; please see issue
1070 for details.
ayleph [Sun, 6 Dec 2015 19:54:32 +0000 (14:54 -0500)]
Fix issue 5367 Edit view updates
This commit fixes issue 5367 by updating the edit view to be compatible
with recent db migrations.
Signed-off-by: Jessica Tallon <tsyesika@tsyesika.se>
ayleph [Mon, 7 Dec 2015 16:38:21 +0000 (11:38 -0500)]
Fix issue 5371 broken collection atom feeds
Signed-off-by: Jessica Tallon <tsyesika@tsyesika.se>
Jessica Tallon [Wed, 6 Jan 2016 15:45:41 +0000 (15:45 +0000)]
Fix #5369 - Broken activities cause issues in migrations
This fixes a few bugs in previous migrations and then also introduces a new
migration for those who had run the previous migrations without encountering
the bugs to ensure that the database is in the same state as those who ran it
after the bug fixes introduced in this commit.
The commit also ensures that all activities are valid, they should be but they
might not be so checks, from now on we should be able to assume that all activities
will always be valid.
Christopher Allan Webber [Tue, 29 Dec 2015 21:01:02 +0000 (15:01 -0600)]
Point to the "Libre Browsers Libre Formats" page on the LibrePlanet wiki
Jessica Tallon [Tue, 29 Dec 2015 16:41:47 +0000 (16:41 +0000)]
Remove .tx/config as we're no longer using Transifex
Jessica Tallon [Tue, 29 Dec 2015 16:36:35 +0000 (16:36 +0000)]
Fix a exception db closed exception in migrations
Some sqlite migrations were failing due to some problems with sqlite. A
work around has been created for these however it does involve loading lots
of data into memory. If you have a large database you should consider trying
to move to postgres.
Jessica Tallon [Mon, 28 Dec 2015 13:27:41 +0000 (13:27 +0000)]
Fix migrations of activity intermediators
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.
Jessica Tallon [Mon, 28 Dec 2015 12:55:33 +0000 (12:55 +0000)]
Fix #5368 - Improve test efficiancy
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
Boris Bobrov [Sun, 20 Dec 2015 23:46:24 +0000 (02:46 +0300)]
Merge branch 'stable'
Boris Bobrov [Sun, 20 Dec 2015 23:45:22 +0000 (02:45 +0300)]
Work around pbutils import warning bug (5066)
Boris Bobrov [Sun, 20 Dec 2015 18:38:56 +0000 (21:38 +0300)]
Fix typo in VideoData docstring
Christopher Allan Webber [Sun, 20 Dec 2015 17:11:07 +0000 (11:11 -0600)]
Setting 0.8.2.dev in configure.ac as well
Christopher Allan Webber [Sun, 20 Dec 2015 17:10:23 +0000 (11:10 -0600)]
Setting version to v0.8.2.dev
Christopher Allan Webber [Sun, 20 Dec 2015 16:58:43 +0000 (10:58 -0600)]
Fixing typo (thanks breton)
Christopher Allan Webber [Sun, 20 Dec 2015 15:53:25 +0000 (09:53 -0600)]
0.8.1 release notes
Christopher Allan Webber [Sun, 20 Dec 2015 15:05:00 +0000 (09:05 -0600)]
Merge branch 'stable'
Jessica Tallon [Sun, 20 Dec 2015 01:11:31 +0000 (01:11 +0000)]
Fix security issue in OAuth verifier validation
Christopher Allan Webber [Sun, 20 Dec 2015 03:57:27 +0000 (21:57 -0600)]
Merge branch 'stable'
Conflicts:
mediagoblin/i18n/templates/en/mediagoblin.po
mediagoblin/plugins/archivalook/tools.py
Jessica Tallon [Sun, 20 Dec 2015 01:49:28 +0000 (01:49 +0000)]
Fix bug on the OAuth client deauthorization page
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.
ayleph [Fri, 18 Dec 2015 02:06:42 +0000 (21:06 -0500)]
Fix Issue 5375 Deprecated function in video thumb
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)
ayleph [Fri, 18 Dec 2015 02:06:42 +0000 (21:06 -0500)]
Fix Issue 5375 Deprecated function in video thumb
This patch fixes issue 5375 by replacing a function call that has
been removed in recent versions of PIL with the recommended
replacement.
Christopher Allan Webber [Mon, 14 Dec 2015 20:19:20 +0000 (14:19 -0600)]
Kludgey documentation fix so that python 2 does not break with flup
See also Issue #5373
Ben Sturmfels [Tue, 4 Aug 2015 04:19:09 +0000 (14:19 +1000)]
Add "Add media" button on home page when no media is present.
This is an addition to the button hidden in the top toolbar.
Christopher Allan Webber [Thu, 10 Dec 2015 17:29:20 +0000 (11:29 -0600)]
Fix issue #5372: test_comment_notification fails with werkzeug 0.11 or newer
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.
ayleph [Fri, 4 Dec 2015 07:02:02 +0000 (02:02 -0500)]
Fix issue 983 PDF UnicodeDecodeError
Parse PDF lines as unicode to prevent UnicodeDecodeError when a
non-ASCII character is encountered.
Jessica Tallon [Wed, 25 Nov 2015 14:57:46 +0000 (14:57 +0000)]
Fix #5363 - Collections don't serialize correctly
Jessica Tallon [Tue, 24 Nov 2015 10:45:23 +0000 (10:45 +0000)]
Added test for #5356 - Read someone else's feed
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.
ayleph [Sat, 31 Oct 2015 08:18:44 +0000 (04:18 -0400)]
Allow API client to GET another user's outbox
Signed-off-by: Jessica Tallon <tsyesika@tsyesika.se>
Jessica Tallon [Mon, 23 Nov 2015 17:27:32 +0000 (17:27 +0000)]
Fix #5354 & #5355 - Fix Graveyard.serialize
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.
ayleph [Wed, 4 Nov 2015 03:56:33 +0000 (22:56 -0500)]
Use urljoin to create proper feed media URLs