4276 Commits

Author SHA1 Message Date
Berker Peksag
19baab1b03 Remove Paste#http, Paste#urlmap and Paste#static dependencies.
Changes:

* Paste#http -> Gunicorn
* Paste#urlmap and Paste#static -> werkzeug.wsgi.SharedDataMiddleware
2014-06-29 04:23:50 +03:00
Berker Peksag
f9d93c0e9a Fix print statements. 2014-06-29 04:13:23 +03:00
Berker Peksag
e2cb0f86fe Remove sqlalchemy-migrate imports from the codebase. Do not touch tests yet. 2014-06-27 03:17:12 +03:00
Berker Peksag
e6aab20dc7 Use new-style class. 2014-06-25 21:10:37 +03:00
Christopher Allan Webber
27f9932731 Removing legacy mongo-related docstring 2014-06-23 13:45:00 -05:00
Christopher Allan Webber
b1fbf67ec4 Add a modify_request hook 2014-06-22 22:22:16 -05:00
Natalie Foust-Pilcher
446cece470 Used the codecs library to read the csv file in batchaddmedia as unicode. 2014-06-21 15:26:23 -04:00
Aleksej
daf47b3890 Issue #837: Moderation report page: offender's name linked to the reporter's profile. 2014-06-13 10:41:55 -05:00
Aleksej
88542a8c1f Issue 839: move attribution from some icons' alt into title. 2014-06-13 10:37:47 -05:00
Berker Peksag
9da03b739f Convert media_ids to int safely.
With this commit, "gmg deletemedia spam,12" will not raise
ValueError anymore.
2014-06-13 10:30:46 -05:00
Berker Peksag
25b1296ded Properly exit when "gmg deletemedia" succeed.
Also, fixed a typo: "to will be" -> "will be"
2014-06-13 10:30:46 -05:00
Christopher Allan Webber
05dbec8b94 Merge remote-tracking branch 'remotes/berker/remove-pkginfo' 2014-06-13 10:25:33 -05:00
Loïc Le Ninan
0742e11dff Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. Replaced Required with InputRequired. 2014-06-13 10:23:07 -05:00
Natalie Foust-Pilcher
b9d990ac6a Fixed another error created by my last fix 2014-06-12 14:48:15 -04:00
Natalie Foust-Pilcher
32ba7efcfc Fixed a fatal error causing mediagoblin to crash when certain types of media
were uploaded
2014-06-12 14:12:34 -04:00
Christopher Allan Webber
9f84506885 Adding Loïc Le Ninan to the contributor list 2014-06-11 17:06:11 -05:00
Loïc Le Ninan
8c7ba963af #303 : enhancement : add a command to delete users 2014-06-11 16:42:26 -05:00
Rodrigo Rodrigues da Silva
8db3277cd7 Put block mediagoblin_sidebar back in user_pages/media.html. Fixes issue #906. 2014-06-11 11:37:03 -05:00
Christopher Allan Webber
713dde5b9d Adding comments in the migration explaining a bit what's going on.
This commit sponsored by Philip Horger.  Thank you!
2014-06-11 11:09:28 -05:00
Christopher Allan Webber
987a63514f Explicitly set the column names to "user" and "privilege" 2014-06-11 11:01:17 -05:00
Christopher Allan Webber
c56a88b43e Switch "user_id" to "privilege" and "privilege_id" to "user".
This builds on the previous code Natalie wrote, but makes some changes:
 - More direct alterations for non-sqlite code
 - In both cases, I've made it so that we switched the field names from
   privilege_id and user_id to user and privilege respectively.  This
   way we can do the name swap, but in one case it's "easy": just
   changing the name.  (In the sqlite case it's still tricky though.)
2014-06-10 18:02:34 -05:00
Christopher Allan Webber
70bceff85f Merge remote-tracking branch 'refs/remotes/tilly-q/ticket-874' into mergetest
Conflicts:
	mediagoblin/db/migrations.py
2014-06-10 16:48:45 -05:00
Christopher Allan Webber
1ec440b446 Adding Rodrigo to AUTHORS 2014-06-10 11:51:12 -05:00
Rodrigo Rodrigues da Silva
33ee70f9b0 Adding a template hook to the dropdown header 2014-06-10 11:49:41 -05:00
Berker Peksag
ef3badb3b4 Use new-style classes. The old-style classes are deprecated in Python 3. 2014-06-08 08:20:17 +03:00
Berker Peksag
bda76c420d Use six.iteritems() in tools/exif.py. 2014-06-08 08:19:32 +03:00
Berker Peksag
03d4be0e39 Fix an usage of file(). 2014-06-08 08:19:04 +03:00
Berker Peksag
f1d9a62a4b Update a comment. 2014-06-07 14:00:27 +03:00
Berker Peksag
d9aced73f1 The file() builtin has been removed in Python 3. Use open() instead. 2014-06-07 13:51:42 +03:00
Berker Peksag
120fa4ae95 Change urllib and urllib import with six.moves.urllib. 2014-06-07 13:49:39 +03:00
Christopher Allan Webber
eb7f69ac30 metadata here should really be stored_metadata.
We went through all the difficulty of converting the tags and never
saved them!

Thanks to Boris Bobrov for pointing this out.

This commit also sponsored by William Kahn-Greene.  Thanks Will... for
everything! :)
2014-06-06 09:57:27 -05:00
Christopher Allan Webber
d57dd89e98 psql, not postgres, in configure.ac 2014-06-05 11:01:21 -05:00
Berker Peksag
dce76c3ee7 Sync py2_unicode decorator with Django. 2014-06-03 01:41:44 +03:00
Berker Peksag
f9a7201c32 Use mediagoblin._compat.{ugettext, ungettext} on Python 3. 2014-06-02 22:25:27 +03:00
Berker Peksag
5a239cb7b8 Use six.moves.zip instead of itertools.izip. 2014-06-02 21:03:56 +03:00
Berker Peksag
0b2572b9a8 Add py2_unicode helper to mediagoblin._compat. 2014-06-02 21:01:48 +03:00
Berker Peksag
e49b7e02b2 Use six.text_type instead of unicode().
I will be switch to use ``from __future__ import unicode_literals`` later.
2014-06-02 20:59:28 +03:00
Berker Peksag
76bb92dcb4 Fix a typo in babel.ini. 2014-06-02 10:41:26 -05:00
Christopher Allan Webber
b02e37c297 removing zh and ja from RTL list. medicalwei reports they are not RTL languages.
This commit sponsored by Philipp Edelmann.  Thanks!
2014-06-02 10:39:23 -05:00
Christopher Allan Webber
ac7f3b17bf git submodule fetch -> git submodule update 2014-06-02 10:34:16 -05:00
tilly-Q
4ed4908cbd Added pyld to the mediagoblin dependencies because it is necessary with the new
metadata functionality.
2014-05-29 12:57:40 -04:00
Berker Peksag
a80c74bbcc Add ugettext and ungettext helpers to mediagoblin._compat. 2014-05-26 19:53:10 +03:00
Berker Peksag
fd19da346b Use six.moves.urllib.parse instead of the urlparse module. 2014-05-26 19:52:18 +03:00
Berker Peksag
386c9c7c55 Use six.iteritems() instead of dict.iteritems(). 2014-05-26 19:50:38 +03:00
tilly-Q
da537ed44e Merge branch 'metadata' 2014-05-14 13:02:30 -04:00
tilly-Q
2daf8ec000 Fixed a small error relating to the default value of media_metadata 2014-05-14 12:34:13 -04:00
tilly-Q
414c682fb4 Added some tests for metadata. 2014-05-14 12:16:03 -04:00
tilly-Q
1688abbfc4 Cleaned up the code a little bit 2014-05-14 12:03:58 -04:00
tilly-Q
0e69d93295 Fixed small error in the edit.metadata javascript 2014-05-14 12:02:54 -04:00
tilly-Q
c8abeb58af Set a default value to MediaEntry.media_metadata 2014-05-14 11:56:59 -04:00