4907 Commits

Author SHA1 Message Date
Boris Bobrov
f5e48d9edf remove mentions of mediagoblin_local.ini 2017-11-13 02:43:25 +03:00
Boris Bobrov
94c10f1c57 clarify installation instructions about mediagoblin.ini 2017-11-13 02:38:44 +03:00
Romain Porte
65945005cf Added tests for tags in image API object 2017-11-12 00:08:02 +03:00
Romain Porte
6810ba03d4 Added tags in API (view them and edit them) 2017-11-12 00:07:53 +03:00
Romain Porte
da7c027f1c Improved gitignores for patch submitting
In order to ease the patch submitting process, *.patch was added as per
Linux kernel's .gitignore. Test cache directory was also added in its
own gitignore (as per kernel's recommendation on .gitignore location).
2017-11-12 00:07:47 +03:00
Romain Porte
8b48db61d1 Fixed flake8 errors for tests/test_api.py
Since I am adding a test I also took time to fix all flake8 errors in
this test file, since I may add more tests in there and I prefer to work
on a coherent code base.
2017-11-11 20:42:45 +03:00
Romain Porte
f2b32fbf6a Added tests for custom file name using API
This adds a new test and verify that the old test has the
"unknown.<extension>" format. As funny as it seems, the "image/jpeg"
Content-Type will generate a ".jpe" extension but I was expecting a more
common ".jpg" extension. This may be a bug, but this is not the subject
of this patch.
2017-11-11 20:41:58 +03:00
Romain Porte
f2b4760bd5 Change API filename upload using custom header
When uploading a file using the API its same is always going to be
'unknown.<extension>', which is not good looking for file urls. This
patch proposes a custom header named 'X-File-Name' that allows to
specify a file name using an API client.

This changeset was tested with a local OAuth1 client.
2017-11-11 20:41:01 +03:00
Boris Bobrov
a63d628f59 Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin 2017-11-11 16:05:43 +03:00
Boris Bobrov
6c981dd541 add Roman to AUTHORS 2017-11-11 16:05:02 +03:00
Romain Porte
879f899952 Replaced /bin/celeryd by /bin/celery in lazycelery
On a fresh clone the celeryd executable is not present. This is because
of the celery version migration to celery 4.x. As per celery's
documentation at http://docs.celeryproject.org/en/latest/whatsnew-4.0.html,
celeryd is no longer shipped in this version.
2017-11-11 16:04:26 +03:00
Andrew Browning
807f96d5c4 Fix location of host-meta.xml file [#5543] 2017-10-31 11:55:52 -04:00
Andrew Browning
d3943a2bc0 Fix trivial spelling error in test comment 2017-10-23 00:05:37 -04:00
Simen Heggestøyl
2ad4630c03 Port batchaddmedia command to Python 3 2017-10-16 18:25:40 +03:00
Simen Heggestøyl
480aa3a204 Make admin panel headers readable in Airy theme
The admin panel headers are white by default, making them almost
unreadable on the light background used in the Airy theme. Make the
headers dark, like text elsewhere in the theme.
2017-10-16 18:24:17 +03:00
Simen Heggestøyl
4727ee109e Handle collection in batchaddmedia command
Make the batchaddmedia command look for a 'collection-slug' column, that
for each row may specify the slug of a collection that the media should
be added to. This matches the '--collection-slug' argument of the
addmedia command.
2017-10-16 18:22:30 +03:00
Simen Heggestøyl
3eadd6705e Support Unicode characters in configuration values
Prior to this commit, using a Unicode character in a configuration
string would result in a `UnicodeDecodeError` being raised. Supporting
Unicode characters is especially useful in user-facing configuration
strings, such as `html_title`.
2017-10-16 18:21:28 +03:00
Simen Heggestøyl
ceab88e3bd Remove dead code in batchaddmedia.py
Remove an unused import and an unused local variable from
batchaddmedia.py.
2017-10-16 18:20:30 +03:00
Andrew Browning
0af3ba7fc1 Update batchaddmedia csv description docs [5458]
Commit c0ea2bad changed the expected location column header of csv files
used by the batchaddmedia command from 'media:location' to 'location'.
This change updates the docs to match.
2017-10-08 16:26:46 -04:00
Andrew Browning
b121d89cc5 Fix #5460 - Log IP address for failed login
This patch logs the remote address when a login attempt fails.
2017-09-20 01:48:17 -04:00
Andrew Browning
eee3e41bcf Fix #5517 - Change docs to clone repo using https 2017-09-20 01:39:46 -04:00
Andrew Browning
66dbc22e73 Add unit test for #5524
Add a unit test to verify that the change introduced in 07c535c no
longer resulst in a zero divide error when gps data contains no divisor.

This commit includes a test image created by Andrew Browning. Andrew
Browning dedicates this image to the public domain under the CC0 license.
2017-09-20 01:02:10 -04:00
Andrew Browning
07c535c876 Fix #5524 Zero division error in exif.py
This patch implements the safe_gps_ratio_divide function for gps
direction and altitude values to prevent a zero divide error on
malformed GPS data.
2017-09-20 00:22:19 -04:00
ayleph
763eae89d9 Fix #5514 - Add to Collection causes server error
Re-arrange code to check whether a collection has been selected prior
to checking whether an item already exists in the selected collection.
This fixes a regression introduced in 0f3bf8d.
2017-08-15 02:39:00 -04:00
Andrew Browning
5487c3b0d9 Properly escape asterisk in *buntu 2017-08-15 02:29:54 -04:00
ayleph
2f2b4cbacb Fix #5513 - Can't delete blog post drafts
Modify the @get_media_entry_by_id decorator to return media regardless
of processing state. Separately modify all view functions that use the
@get_media_entry_by_id decorator to require that the media be in the
processed state, other than for the media_confirm_delete view. This
allows blog post drafts to be deleted without returning a 404. Further,
it adds the ability to delete unprocessed media in the future, which
would be a nice addition to the user processing panel.
2017-08-15 01:43:58 -04:00
Boris Bobrov
1f8c877d74 Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin 2017-06-26 21:32:56 +03:00
Andrew Browning
12c0872b79 Apply button_warning style to blog delete buttons 2017-06-19 01:01:37 -04:00
Andrew Browning
6f5fcc5b52 Fix #830 - Remove exif from blog posts 2017-06-19 00:11:29 -04:00
Boris Bobrov
c159eeaffe Remove mongodb-related stuff
We dropped mongodb a long time ago
2017-06-18 17:08:30 +03:00
Boris Bobrov
f9bd8a15ed Add Robert to AUTHORS 2017-06-18 13:38:59 +03:00
Robert Smith
a08f0bfc86 Re #5308 added cascade to blog mediatype 2017-06-17 22:07:39 +03:00
Boris Bobrov
c3356889c9 Fix tests to reflect that we've moved to amqp 2017-06-10 12:22:58 +03:00
Boris Bobrov
411ae185bf move exifread to other dependencies 2017-06-10 01:29:19 +03:00
Boris Bobrov
4a14f6da51 Merge branch 'amqp-switch' 2017-06-10 01:25:24 +03:00
Boris Bobrov
00d0bb714b Remove upper cap on celery kombu
Also remove kombu from requirements, because celery fetches it anyway
2017-06-10 01:24:29 +03:00
Boris Bobrov
aac893584d Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin 2017-06-09 23:50:33 +03:00
Boris Bobrov
2e1e96503e Switch to rabbitmq by default and in docs 2017-06-09 23:49:24 +03:00
Andrew Browning
ec9a93fef0 Add space between words in blog message 2017-06-06 16:51:05 -04:00
Andrew Browning
0cf78df85f Add register_captcha template hook 2017-06-06 01:26:09 -04:00
Boris Bobrov
683c9cc66c Change all tabs to spaces in js file
It's bad to mix them
2017-05-23 11:28:08 +03:00
Boris Bobrov
754c4b1a0d Remove tinymce from dependencies
I think it was supposed to be used in blogs, but we never got there.
So lets just drop it from requirements in bower.json.
2017-05-04 00:39:19 +03:00
Boris Bobrov
daecc3e183 Change aria-text when state changes 2017-04-03 01:52:14 +03:00
Boris Bobrov
697e6c5cbc Make play button a button instead of div
More attempts to make mg acessible
2017-04-03 00:23:24 +03:00
Boris Bobrov
7bf8f03f64 Add aria attributes to audio player
I hope this helps a bit with mediagoblin accessibility
2017-04-02 23:25:56 +03:00
Boris Bobrov
638ea75648 Move audio html out of js 2017-04-02 20:50:33 +03:00
Boris Bobrov
a5dae0dbc2 Commit session after alembic updates have finished
After alembic updates we need to add foundations. The tables to add
foundations to are created as part of dbupdate process. For some reason
Alembic doesn't commit a session in the end. Because the session is not
commited, the tables do not really get created. And because of that,
foundations fail.

The solution is to commit the session after alembic updates.
2017-04-01 21:07:01 +03:00
Boris Bobrov
3bad5310f6 Pass connection to EnvironmentContext.configure
In https://bitbucket.org/zzzeek/alembic/issues/419/ we were suggested
use connection instead of engine. This should fix an issue reported
via ml.
2017-03-04 10:58:48 +03:00
Andrew Browning
2d0870e061 Fix trivial spelling and spacing error in cli help 2017-03-01 01:34:04 -05:00
Andrew Browning
741c25fd67 Fix #5500 UnicodeEncodeError in atom feed
This simple fix allows unicode strings in the atom feed thumb and
description fields by forcing the entire atom content string to
unicode.
2017-02-14 01:03:25 -05:00