aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin
Commit message (Collapse)AuthorAgeFilesLines
...
* Updates per request of moggers87ayleph2014-10-301-16/+13
|
* Unit testsayleph2014-10-301-0/+15
| | | | Added unit tests for lowercasify username on login.
* Pass validated username to check_login_simpleayleph2014-10-301-2/+3
| | | | | | | | | | | | | | | 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.
* Template hook to allow plugin authors to add extra things to the headerChristopher Allan Webber2014-10-301-0/+1
| | | | | Thanks to Andrew Browning for requesting this and suggesting where to put it!
* Fix #1017 - Exception caused by activity being set on incorrect foreign keyJessica Tallon2014-10-292-12/+11
| | | | | | | | | | 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.
* Fix #1007 - get location object not string of location name; caused 500 when ↵Jessica Tallon2014-10-271-1/+1
| | | | editing profile
* Fix #1010 - Typos in mediagoblin/media_types/image/migrations.pyJessica Tallon2014-10-271-3/+3
|
* Fix #1005 - location.position is a dictionary so 'value' in dict check neededJessica Tallon2014-10-271-2/+2
|
* Only create a slug after a media upload via the API when there is a titleJessica Tallon2014-10-222-3/+1
|
* Fix problem where duplicate slug would cause an update exceptionJessica Tallon2014-10-221-15/+18
|
* Merge branch '984-ai-improvements'Jessica Tallon2014-10-214-13/+96
|\
| * Fix #984 - Improvements to Activity and ActivityIntermediatorJessica Tallon2014-10-214-13/+96
| | | | | | | | | | | | - 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
* | airy.css: Override white text in TOSMeg Ford2014-10-161-0/+4
|/ | | | Fixes bug https://issues.mediagoblin.org/ticket/808
* Make a mediagoblin.ini file for the user if needed.Christopher Allan Webber2014-10-101-0/+26
| | | | | This is to prevent our docs from confusing people in this transitionary time period...
* Bring back the ascii art goblin! For python 2 anyway.Christopher Allan Webber2014-10-101-2/+6
| | | | This does a "friendly" fallback where it skips the middleware on python 3.
* Add and use paste server selector. Yeah! Smart solutions!Christopher Allan Webber2014-10-101-0/+31
| | | | This commit sponsored by Tryggvi Björgvinsson. Thank you!
* Merge branch 'location'Jessica Tallon2014-10-0914-25/+266
|\ | | | | | | | | | | | | | | | | | | | | | | Add Location model which holds textual, geolocation coordiantes or postal addresses. This migrates data off Image model metadata onto the general Location model. It also adds the ability for location to be set on MediaEntry, User, MediaComment and Collection models. The geolocation plugin has been updated so that the location can be displayed in more general places rather than explicitely on the MediaEntry view. If GPS coordiantes are set for the User the profile page will also have the OSM provided by the geolocation plugin.
| * Add location model and migrationsJessica Tallon2014-10-0914-28/+270
| |
* | Merge branch '905-activities'Jessica Tallon2014-10-079-42/+670
|\ \ | | | | | | | | | | | | | | | Add Activity and Generator models which allow for activities to be created. This now works with the feed API.
| * | Add __repr__ to Activity and Generator classJessica Tallon2014-10-074-4/+21
| | |
| * | Fix bug where activity.content was not populatedJessica Tallon2014-10-061-2/+6
| | |
| * | Fix all the unit tests and clean up codeJessica Tallon2014-10-067-59/+74
| | |
| * | Only have Model.activity for activity compatable objects/targetsJessica Tallon2014-09-032-85/+47
| | |
| * | Fix migrations and refactor object_typeJessica Tallon2014-09-025-105/+174
| | | | | | | | | | | | | | | | | | | | | - Make changes to objectType to be more pythonic "object_type" - Move object_type to mixins rather than be on the models - Convert migrations to sqlalchemy core rather than ORM (fix) - Change TYPES to use descriptive strings rather than numbers
| * | Oops forgot to add medigoblin.tools.federationJessica Tallon2014-08-271-0/+61
| | |
| * | Add ActivityIntermediator table and refactor some of Activity modelJessica Tallon2014-08-273-220/+364
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This has introduced a intermediatory table between object/target and the activity. This allows for multiple activities to be associated with one object/target. - This moves some of the methods off Activity model into a mixin which didn't need to interact with database things. - This also cleaned up the migrations as well as adding retroactive creation of activities for collection creation.
| * | Add better support for targets on ActivitiesJessica Tallon2014-08-262-44/+81
| | | | | | | | | | | | | | | | | | This adds betters upport for targets in the content generation and on the model itself. Adding getters for properties which would otherwise require looking up e.g. get_author.
| * | Create activity model and add activity creationJessica Tallon2014-08-227-23/+343
| |/ | | | | | | | | | | | | | | This creates the Activity and Genrator models from the Activity Streams spec and. I then created a migration which retro-actively create activities for media uploaded and comments created. Through out the code I've added so automatically activties are created when a user peforms an action (uploading media, commenting, etc.).
* | Fix typo in client registration API for logo_uriJessica Tallon2014-10-022-8/+8
| |
* | Add initial migration guide.Berker Peksag2014-10-021-1/+57
| | | | | | | | This can be moved to docs/source/devel/migrations.rst.
* | Do not call AlembicMigrationManager.init_tables() for now.Berker Peksag2014-10-021-6/+8
| | | | | | | | sqlalchemy-migrate will do this for us.
* | Port "gmg batchaddmedia" command to Python 3.Berker Peksag2014-10-021-20/+26
| |
* | Fix #549 - Deauthorize OAuth applicationsJessica Tallon2014-10-018-2/+124
| |
* | Fix migrations on Python 2.Christopher Allan Webber2014-09-301-0/+3
| | | | | | | | This commit sponsored by Loïc Grobol. Thank you!
* | Fix #919 - Use class names in super call not self.__class__Jessica Tallon2014-09-307-8/+8
| |
* | Fix #952 - Force the footer to the bottom of the pageJessica Tallon2014-09-302-123/+142
| |
* | Merge branch '942-default-location'Jessica Tallon2014-09-292-24/+42
|\ \ | | | | | | | | | | | | | | | | | | * 942-default-location: Add documentation on changing data dir and Fix stylistic changes Updated config_spec.ini to add %(data_basedir)s and make use of it! defaults now pulled from a mashup of mediagoblin.ini and config_spec.ini
| * | Add documentation on changing data dir and Fix stylistic changesJessica Tallon2014-09-291-19/+19
| | |
| * | Updated config_spec.ini to add %(data_basedir)s and make use of it!Christopher Allan Webber2014-09-241-8/+11
| | | | | | | | | | | | This commit sponsored by Loïc Grobol. Thanks!
| * | defaults now pulled from a mashup of mediagoblin.ini and config_spec.iniChristopher Allan Webber2014-09-241-9/+24
| | | | | | | | | | | | This commit sponsored by Thomas Løcke. Thank you!
* | | pdf tests: use our own pdf doc as GOOD_PDFAlon Levy2014-09-263-12/+18
|/ / | | | | | | remove non distributable good.pdf
* | Switch print statement to print functionChristopher Allan Webber2014-09-241-1/+1
| |
* | Fix Content-Disposition error for retrieving OAuth request tokensJessica Tallon2014-09-241-4/+0
| |
* | Making alembic happen with python 3 only... for now.Christopher Allan Webber2014-09-221-1/+6
| | | | | | | | We want to make sure it works nicely first.
* | Merge branch 'merge-python3-port'Christopher Allan Webber2014-09-2294-373/+776
|\ \ | | | | | | | | | | | | Conflicts: setup.py
| * | Last two issues related to the python 3 merge tests: fixed!Christopher Allan Webber2014-09-162-10/+15
| | | | | | | | | | | | | | | | | | | | | - Fix the "pulling the error out of excinfo" stuff for py3 - The u"" only gets embedded in the string on py2. This commit sponsored by Jeff Gibson. Thanks, Jeff! :)
| * | Annnnd another json decode fix for py3! On a roll with these!Christopher Allan Webber2014-09-161-1/+1
| | | | | | | | | | | | This commit sponsored by Ramana Kumar. Thanks!
| * | decode to unicode before loading in json again, for py3Christopher Allan Webber2014-09-161-1/+1
| | | | | | | | | | | | This commit sponsored by Chris Cormack. Thanks!
| * | Much more nicely formed form error checkChristopher Allan Webber2014-09-161-2/+4
| | | | | | | | | | | | | | | | | | This doesn't rely on checking HTML output... thus, cleaner. This commit sponsored by Alexandre Guédon. Thank you!
| * | Fix error check in test_edit.py for python 3Christopher Allan Webber2014-09-161-1/+1
| | | | | | | | | | | | | | | This isn't the nicest of checks... we should probably be checking the actual form passed into the context. But for now, it's a fix.