Christopher Allan Webber
399272eea5
Add "gmg raw_alembic" command.
...
This allows you to dispatch to the "alembic" command line tool properly,
but properly respecting MediaGoblin's own configuration.
2016-03-03 09:31:00 -08:00
Christopher Allan Webber
a48736fc09
typo fix: Set sqlalchemy.url, not qlalchemy.url
2016-03-02 16:08:12 -08:00
Christopher Allan Webber
af6b89eafe
Remove old hack to support pre-0.7.5 Alembic versions
...
Thanks to Jessica Tallon for pointing out this TODO and its associated
hack could be removed.
2016-03-02 11:20:47 -08:00
Andrew Browning
690597ef83
Fix #5432 - Comment report link doens't work
...
This builds on work done for #5376 and associates the correct comment
ID with comment report links.
2016-03-02 12:45:07 -05:00
Andrew Browning
289826dc46
Fix #5435 - Bad comment links cause server error
...
This patch addresses an issue where a server error is caused by
entering a non-existent comment ID in a media URL.
2016-03-02 12:31:55 -05:00
Jessica Tallon
161bc6b2c1
Fix #5376 - Ensure links have correct ID
...
This ensures that links to comments have the correct ID (the
ID of the Comment object) as well as fixing deletion on reports
and fixing a few other little things. I hope this fixes the #5376
issue, though cannot reproduce so unable to confirm.
2016-03-01 12:04:08 +00:00
Andrew Browning
1db8690fe9
Fix #5433 - Typo in decorators
2016-03-01 01:00:14 -05:00
Andrew Browning
d508435985
Fix #5431 - Typo in models
...
Fix a typo in models.py.
2016-03-01 00:28:42 -05:00
Jessica Tallon
7555d1084f
Fixes #5421 - Ensures Report.object_id is nullable
...
It seems there was a commit for a while where the migration was
making Report.object_id NOT NULL and this caused an errror when
a report deleted the associated object (media). This migrtion
checks it's nullable and if not, alters it so it is.
2016-02-29 19:18:42 +00:00
Jessica Tallon
ab14059538
Migration for #5415 - I forgot it, Doh!
2016-02-29 19:04:44 +00:00
Jessica Tallon
4c3a621b6d
Fix a typo in consolidate_reports migration
2016-02-29 18:17:42 +00:00
Jessica Tallon
2104c3e0f2
Fix #5415 - Deleted comments get removed properly when tombstones
...
The original wrapper existed and should be been removed, this fix
now ensures the TextComment removes the Comment wrapper to prevent
the deleted (comments which are tombstones) existing.
2016-02-29 15:40:34 +00:00
Jessica Tallon
7fa67404ee
Simply for the Notification.object_id migration
2016-02-29 15:34:14 +00:00
Jessica Tallon
f20e508dbc
Missing perens
2016-02-29 14:26:05 +00:00
Jessica Tallon
677bf0ef62
Fixed issue introduced in previous migration
2016-02-29 14:14:58 +00:00
Jessica Tallon
6efcab2d69
Change Notification.object_id to be ID of Comemnt not TextComment
...
This shouldn't really effect much but it is a needed change for the future
this changes the Notification.object_id to be the ID of the Comment (the link
table to the comment object) rather than TextComment (the comment object itself).
This is needed as now comments can be other things, other than TextComment.
2016-02-29 12:33:51 +00:00
Christopher Allan Webber
7e550fcb9d
Email debug mode on Python 3 was printing bytestring representation for subject body
...
There's nothing useful about seeing b'foo\nbar\nbaz' printing to
stdout. That's not what the user should get!
2016-02-25 15:38:28 -08:00
Christopher Allan Webber
eb564614cb
Fix ascii media type for Python 3. Fix by 宋文武 (iyzsong)
2016-02-24 17:54:34 -08:00
Christopher Allan Webber
410ab9cacd
Oops, I forgot to include test_mgoblin_app_pdf.ini
2016-02-24 17:52:15 -08:00
Boris Bobrov
993e061873
Change viewitems to items
...
There is no viewitems in python3
2016-02-23 04:15:06 +03:00
Boris Bobrov
5eaf6c1120
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.
2016-02-23 04:03:27 +03:00
Boris Bobrov
7dcdc2dcc6
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.
2016-02-23 03:57:00 +03:00
Andrew Browning
1fe6f5d6d7
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.
2016-02-23 03:32:34 +03:00
Andrew Browning
5aa4ab0615
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.
2016-02-22 14:43:38 -08:00
Christopher Allan Webber
d61778a489
Switch from Paste for serving to Waitress
...
Incredibly, it looks like none of our documentation has to change taking
this route...!
2016-02-19 10:22:14 -08:00
Christopher Allan Webber
fa9c0576ba
Fix another python 3 and unicode issue
2016-02-11 14:47:04 -08:00
Christopher Allan Webber
cd4a7492cd
Fixing one more bytes vs string battle in Python 3
2016-02-11 11:36:05 -08:00
Christopher Allan Webber
64b989a756
#5416 : Fix tests using the FileObjectAwareFile
2016-02-11 11:21:44 -08:00
Christopher Allan Webber
1eaad45f89
.iteritems() doesn't exist in Python 3, converted to .items()
2016-02-11 10:23:06 -08:00
Christopher Allan Webber
850eabc325
Committing extracted and compiled translations
2016-02-07 09:28:51 -08:00
Loic Dachary
679f729221
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>
2016-02-06 14:33:49 -05:00
Boris Bobrov
05f26e3abc
Do not calculate processing info for anonymous user
2016-02-05 05:38:18 +03:00
Boris Bobrov
fa858bd717
removed debug prints, added video icon
2016-02-05 05:30:34 +03:00
Boris Bobrov
654d7cf94f
Display type icon in thumbnails
2016-02-05 05:30:28 +03:00
Boris Bobrov
3b6b009077
Merge branch 'media_panel'
2016-02-05 04:33:05 +03:00
Boris Bobrov
f13225fa6d
Prevent dict changed during iteration
in video
2016-02-05 04:32:19 +03:00
Christopher Allan Webber
5573c41054
Issue #5349 : Submission tests fail confusingly on missing dependency
...
They gave a DetachedInstanceError, despite being totally unrelated to
anything in database-land!
2016-02-04 15:40:28 -08:00
Boris Bobrov
41076dc96b
Fix occurence of unicode()
...
Fix unicode() -> six.text_type()
2016-02-01 01:43:36 +01:00
Boris Bobrov
db6cc0c061
Change uploader
to actor
...
Class User doesn't have field `uploader` any more, instead there
`actor`. Fix several uses of `uploader` to `actor`.
2016-02-01 00:35:42 +01:00
Boris Bobrov
a2608d6b59
changes to BaseProcessingFail arguments usage
2016-02-01 00:30:32 +01:00
Boris Bobrov
75972f0afa
some fixes to the panel looks
2016-02-01 00:30:30 +01:00
Boris Bobrov
906a00b667
added filtering by entry state in processing panel
2016-02-01 00:29:44 +01:00
Boris Bobrov
728ee1df3c
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
2016-02-01 00:28:32 +01:00
Boris Bobrov
e3663c7be1
changed the way we save information about exceptions
2016-01-28 22:04:44 +01:00
Boris Bobrov
4dd814a945
moved styles to a css file; more fixes to templates
2016-01-28 22:04:42 +01:00
Boris Bobrov
a186505a8a
removed h2 from media panel
2016-01-28 22:03:46 +01:00
Boris Bobrov
d59c2298e4
removed querying of unused metrics in media panel
2016-01-28 22:03:44 +01:00
Boris Bobrov
9ab3c66cf1
processing panel new looks
2016-01-28 22:03:11 +01:00
Loic Dachary
7c9af02ab6
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>
2016-01-25 12:09:19 -08:00
Christopher Allan Webber
64c035b39f
Issue #5394 : Wrong url for forgot_password in basic_auth plugin
...
Fix by jerome. Thank you!
2016-01-21 12:37:50 -08:00