4755 Commits

Author SHA1 Message Date
Christopher Allan Webber
692e8e7848 This import_export stuff is mongodb days leftovers. Removing!
This commit sponsored by Ray Redd.  Thanks!
2014-11-26 16:44:28 -06:00
Berker Peksag
9d85dcdf11 Fix unicode handling in "gmg addmedia". 2014-11-22 18:12:19 +00:00
Jessica Tallon
9c602458d8 Fix #1025 - Make API IDs IRIs 2014-11-21 13:30:31 +00:00
Christopher Allan Webber
f44bd7dc87 Patch by Sturm: explain permissions on media directories in deployment docs
This should hopefully reduce the amount that users are confused by their
media files not being available.
2014-11-20 11:36:29 -06:00
Jessica Tallon
34b755f43d Fix #1039 - Fix typo in user model 'oublished' to 'published' 2014-11-20 10:14:43 +00:00
Jessica Tallon
dd73391663 Fix #1021 - Skip broken activities which caused feed/inbox to 500 2014-11-20 09:46:37 +00:00
Jessica Tallon
45e687fcf8 Fix #1023 - Make timestamps in API timezone aware 2014-11-19 10:49:53 +00:00
Jessica Tallon
c511fc5e5e Fix User and MediaEntry serialize and add serialize to models which need it 2014-11-04 10:42:31 +00:00
Jessica Tallon
4fc1671d84 Fix #1016 - Covert the timestamp from seconds to datetime object 2014-11-04 10:42:31 +00:00
Christopher Allan Webber
aa68730237 Fix airy to properly work with the "forced to the bottom of the page" footer 2014-10-30 14:27:26 -05:00
Christopher Allan Webber
9a248310f7 Remove ^P character 2014-10-30 14:17:40 -05:00
Christopher Allan Webber
d46267da46 Clarifying the json processing callbacks even further 2014-10-30 13:56:55 -05:00
Rodrigo Rodrigues da Silva
770d0efa3a Fix misleading log message reported in #985. 2014-10-30 13:47:52 -05:00
Rodrigo Rodrigues da Silva
dedebd48dd Add a template hook to stl sideinfo. Fixes #940. 2014-10-30 13:30:31 -05:00
ayleph
8cf9d64328 Updates per request of moggers87 2014-10-30 11:34:23 -05:00
ayleph
c7236fd0da Unit tests
Added unit tests for lowercasify username on login.
2014-10-30 11:34:23 -05:00
ayleph
a2b3c623fd Pass validated username to check_login_simple
The login function in mediagoblin/auth/views.py grabs the username prior to
form validation. If validation passes, the pre-validated username is passed to
the check_login_simple function.

Lowercasifying of the username occurs as part of form validation. By sending
the pre-validated username, there's a chance of sending a username with
uppercase letters. This will fail to match any user ids in the database, as
all of the usernames are lowercased during the registration process.

This change sends the post-validated username to check_login_simple, so that
any username that was entered by the user with uppercase letters has a chance
to be properly lowercased before being passed.
2014-10-30 11:34:23 -05:00
Christopher Allan Webber
aa50cab0dc Template hook to allow plugin authors to add extra things to the header
Thanks to Andrew Browning for requesting this and suggesting where to
put it!
2014-10-30 11:15:19 -05:00
Jessica Tallon
bc2c06a10d Fix #1017 - Exception caused by activity being set on incorrect foreign key
The .activity ForeignKey on several models such as MediaEntry expects
	a ActivityIntmediatory ID not an Activity ID however in submit code the
	activity attribute was being set the Activity, simply removing this
	assignment should fix the issue as everything is set correctly at this point.

	I have also moved the creation of the activity above the processing of media
	to avoid race conditions.
2014-10-29 08:47:12 +00:00
Jessica Tallon
c5f258fec0 Fix #1007 - get location object not string of location name; caused 500 when editing profile 2014-10-27 11:11:43 +00:00
Jessica Tallon
0dc2e731d6 Fix #1010 - Typos in mediagoblin/media_types/image/migrations.py 2014-10-27 09:45:23 +00:00
Jessica Tallon
790e1a96eb Fix #1005 - location.position is a dictionary so 'value' in dict check needed 2014-10-27 09:28:56 +00:00
Jessica Tallon
63c865790a Only create a slug after a media upload via the API when there is a title 2014-10-22 21:42:57 +01:00
Jessica Tallon
c785f3a090 Fix problem where duplicate slug would cause an update exception 2014-10-22 18:59:04 +01:00
Jessica Tallon
44c53d3bc4 Merge branch '984-ai-improvements' 2014-10-21 11:57:15 +01:00
Jessica Tallon
5ddc85e071 Fix #984 - Improvements to Activity and ActivityIntermediator
- Add unit tests to cover get and set methods on Activity
- Rewrite the set to remove set and use Session.flush instead
- Use sqlalchemy's validator instead of .save hack
2014-10-21 11:44:11 +01:00
Meg Ford
4f1a34b84d airy.css: Override white text in TOS
Fixes bug https://issues.mediagoblin.org/ticket/808
2014-10-16 15:01:49 -05:00
Christopher Allan Webber
a806e4dcc4 Somehow Shawn and Sergio got in there twice 2014-10-15 09:32:58 -05:00
Christopher Allan Webber
4c03d45f6a Make a mediagoblin.ini file for the user if needed.
This is to prevent our docs from confusing people in this
transitionary time period...
2014-10-10 19:35:09 -05:00
Christopher Allan Webber
0d063605ec Do git submodule init and git submodule update in bootstrap.sh
Idea borrowed from guix bootstrap script.

If this proves to not be great we can move it :)
2014-10-10 16:27:23 -05:00
Christopher Allan Webber
03969d8521 Bring back the ascii art goblin! For python 2 anyway.
This does a "friendly" fallback where it skips the middleware on python 3.
2014-10-10 15:46:08 -05:00
Christopher Allan Webber
2b475821a1 Remove the paste.ini rule. 2014-10-10 14:42:18 -05:00
Christopher Allan Webber
0e58f8105f So, we're not really using AC_CONFIG_MACRO_DIR for now. 2014-10-10 14:42:18 -05:00
Christopher Allan Webber
f0e137ab2e Update docs: it's now ./bootstrap.sh, also, you need to get a copy of mediagoblin.ini 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
ae8d42f59c Clarification on the mediagoblin.ini copying 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
ba12976d1a Give a user a mediagoblin.ini if they don't have one 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
5e73017f3f Conditionally give paste or gunicorn help 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
53463ad71d Move paste.ini, lazystarter.sh back to the right place 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
ae361ba126 Use python imports to determine whether or not we're using gunicorn
This commit sponsored by Andrés Muñiz Piniella.  Thank you!
2014-10-10 14:42:17 -05:00
Christopher Allan Webber
227a81b534 Add and use paste server selector. Yeah! Smart solutions!
This commit sponsored by Tryggvi Björgvinsson.  Thank you!
2014-10-10 14:42:17 -05:00
Christopher Allan Webber
9bf845d88f That's right, *append* to the list, don't call it :P 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
2e2a1aec6c Only install gunicorn on py2 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
90c2989bd2 Also remove the include directory 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
41c6732eff Update lazyserver to use paste or gunicorn conditionally
Also get rid of env.in, we're not using that for now.
2014-10-10 14:42:17 -05:00
Christopher Allan Webber
1da574c6c9 Various makefile fixes
- Actually use $(PYTHON) in virtualenv creation
 - Make paste.ini if need be
 - distclean is more forgiving if files aren't there
 - clean up virtualenvs also
2014-10-10 14:42:17 -05:00
Christopher Allan Webber
ea2825fa10 Moving experimental-bootstrap.sh back to bootstrap.sh 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
86f89fd0b1 No rule, yet, to clean house. 2014-10-10 14:42:17 -05:00
Christopher Allan Webber
b2624eb0fb Users now get an editable copy of mediagoblin.example.ini->mediagoblin.ini
This way we no longer have people confusedly editing mediagoblin.ini
when they meant to edit mediagoblin.example.ini.  Hopefully it should be
a lot simpler.
2014-10-10 14:42:17 -05:00
Christopher Allan Webber
47aac7b051 Ignore paste.ini because it's just a symlink to the appropriate python
version paste
2014-10-10 14:42:16 -05:00
Christopher Allan Webber
adecace30b Symlink the appropriate paste.ini 2014-10-10 14:42:16 -05:00