5235 Commits

Author SHA1 Message Date
Boris Bobrov
f8f471e7ee finally fix url validator 2018-07-12 12:50:37 +02:00
Boris Bobrov
99a3e4c880 Revert "Revert "Import messages in blog views""
This reverts commit 8c36ec5246828e3c99d956edd8524f3ade430571.
2018-07-12 07:36:00 +02:00
Boris Bobrov
9861ad12d3 fix typo 2018-07-11 18:26:23 +02:00
Boris Bobrov
87548030cb fix auth error and simplify url and email checks 2018-07-11 17:30:09 +02:00
Boris Bobrov
5430bc2cdd remove requirement for the file to be with single dot in name 2018-07-11 16:54:08 +02:00
Boris Bobrov
4024bcddf9 fix default gmg help message 2018-07-11 16:53:32 +02:00
Boris Bobrov
e08de70757 Merge remote-tracking branch 'gsoc2016/Subtitle-1' 2018-07-10 18:29:30 +02:00
Andrew Browning
588162b861 Fix server crash on blog about page [#5572]
Don't bother checking for user's blog if no user returned.
2018-07-08 19:01:07 -04:00
ĎÚβĨŐÚŚ Dod
3dfc8c9b4b 2 bug fixes in editor views
* `WTForms` instances get `__init__`-ed with `defaults` as `kwargs`.
  The first arg is a `request.form` (which is what one must supply if
  this is a `POST` and must *not* supply otherwise).
  The content of that form (empty on `GET`) has higher priority than
  the defaults (which makes the user get an empty form).

* Fix `edit_profile()` to allow changing `location` from a non-blank
  value to blank (i.e. removing the location).

(cherry picked from commit 75f3e23b92392b9bd309fab4c1a52fd38d453627)
2018-06-28 22:54:06 +02:00
Boris Bobrov
f1e79d68e1 Revert "cap sqlalchemy"
This reverts commit d803f14361ec02878afe4f6b196ce917010a1e2f.
WTForms 2.2 was releases, see
https://issues.mediagoblin.org/ticket/5570#comment:6
2018-06-08 17:46:29 +02:00
Dpg
bc179396a6 Add Creative Commons 4.0 licenses [#955]
Add CC version 4.0 licenses to SORTED_LICENSES.
2018-05-24 01:04:48 +10:00
Boris Bobrov
d803f14361 cap sqlalchemy
Closes #5557 and fixes some complaints in irc
2018-04-30 20:26:34 +02:00
Andrew Browning
58dce892e1 Add moderation panel thumbnail header [#5563]
Add moderation panel column header for thumbnail column.
2018-04-08 19:49:46 -04:00
Andrew Browning
a35007cc2d Process videos with incorrect date tags [#5409]
Video processing expects datetime tags in a specific format. This
commit allows videos with missing or incorrect datetime tags to be
processed with no datetime tags instead of failing.
2018-04-08 19:40:02 -04:00
Andrew Browning
9a23a81671 Prevent video plugin from processing svg [#934]
Prior to the gstreamer-1.0 upgrade, the video processing engine included
a check for excluded extensions which gstreamer might accept despite us
not wanting to process them. In commit 91f5f5e, the check against
EXCLUDED_EXT was removed. Since then, the video plugin has accepted and
attempted to process svg files.

This commit adds the check against EXCLUDED_EXTS into the sniff_handler
function so that we can bail out on certain file extensions before the
plugins tries to sniff the file type. The previous implementation
excluded nef files, which appears to be a Nikon camera image. I've
copied that forward to this code. I've also added a log message to
indicate that we're purposefully refusing to process the file.
2018-04-04 17:11:15 -04:00
Andrew Browning
fee80cf134 Remove backup file added in b5dd245 2018-04-04 15:24:08 -04:00
Andrew Browning
7ab8ca61c4 Use https:// instead of git:// to clone [#5551]
This was partially addressed in eee3e41 but missed many items.
2018-04-02 01:34:37 -04:00
Andrew Browning
85f6bea61f Add chrysn to AUTHORS 2017-11-29 11:56:22 -05:00
chrysn
98340b6d03 Fix EXIF rotation to make the image portrait on demand
Closes: https://issues.mediagoblin.org/ticket/5525
Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
2017-11-29 03:02:41 -05:00
Boris Bobrov
59a9c11e9a add alembic migrations to MANIFEST
Alembic migrations do not get imported anywhere. Because of it
they do not get included to the python package. But they need to
be there in order for migrations to succeed.
2017-11-17 14:23:12 +03:00
Boris Bobrov
b3429ec69c move alembic.ini to python app dir 2017-11-14 22:01:19 +03:00
Boris Bobrov
152d037323 add alembic.ini to MANISFEST.in 2017-11-14 19:22:17 +03:00
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
Vijeth Aradhya
0eeb2adad7 Merge branch 'multiple-qualities-frontend' into 'transcoding_progress'
Minor changes

See merge request !3
2017-08-29 06:06:23 +00:00
vijeth-aradhya
f1cdf74202 Change complimentary_task to complementary_tas
Closes #11
2017-08-29 11:26:12 +05:30
vijeth-aradhya
7fb50b7a21 Remove self.entry in VideoTranscoder 2017-08-27 23:12:46 +05:30
vijeth-aradhya
e86e08ae74 Show default resolution progress in processing panel 2017-08-22 13:35:44 +05:30
vijeth-aradhya
b89e12a23e Add main_transcoding_progress to ProgressCallback 2017-08-22 13:34:53 +05:30