Jessica Tallon [Thu, 9 Oct 2014 18:20:13 +0000 (19:20 +0100)]
Merge branch 'location'
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.
Jessica Tallon [Mon, 15 Sep 2014 18:34:42 +0000 (19:34 +0100)]
Add location model and migrations
Jessica Tallon [Tue, 7 Oct 2014 09:01:38 +0000 (10:01 +0100)]
Merge branch '905-activities'
Add Activity and Generator models which allow for
activities to be created. This now works with the
feed API.
Jessica Tallon [Tue, 7 Oct 2014 07:54:26 +0000 (08:54 +0100)]
Add __repr__ to Activity and Generator class
Jessica Tallon [Sat, 4 Oct 2014 10:26:48 +0000 (11:26 +0100)]
Fix bug where activity.content was not populated
Jessica Tallon [Thu, 4 Sep 2014 18:12:48 +0000 (19:12 +0100)]
Fix all the unit tests and clean up code
Jessica Tallon [Thu, 2 Oct 2014 19:28:58 +0000 (20:28 +0100)]
Fix typo in client registration API for logo_uri
Berker Peksag [Thu, 2 Oct 2014 18:27:27 +0000 (21:27 +0300)]
Install ExifRead from GitHub on Python 3.
Berker Peksag [Thu, 2 Oct 2014 17:17:34 +0000 (20:17 +0300)]
Add initial migration guide.
This can be moved to docs/source/devel/migrations.rst.
Berker Peksag [Thu, 2 Oct 2014 17:16:46 +0000 (20:16 +0300)]
Do not call AlembicMigrationManager.init_tables() for now.
sqlalchemy-migrate will do this for us.
Berker Peksag [Thu, 2 Oct 2014 17:13:46 +0000 (20:13 +0300)]
Port "gmg batchaddmedia" command to Python 3.
Christopher Allan Webber [Thu, 2 Oct 2014 15:51:37 +0000 (10:51 -0500)]
Restore exif-py to tox config, for now...
Jessica Tallon [Wed, 1 Oct 2014 18:45:53 +0000 (19:45 +0100)]
Fix #549 - Deauthorize OAuth applications
Christopher Allan Webber [Tue, 30 Sep 2014 21:34:15 +0000 (16:34 -0500)]
Fix migrations on Python 2.
This commit sponsored by Loïc Grobol. Thank you!
Jessica Tallon [Tue, 30 Sep 2014 11:50:51 +0000 (12:50 +0100)]
Fix #919 - Use class names in super call not self.__class__
Jessica Tallon [Tue, 30 Sep 2014 10:23:24 +0000 (11:23 +0100)]
Fix #952 - Force the footer to the bottom of the page
Jessica Tallon [Tue, 30 Sep 2014 08:27:53 +0000 (09:27 +0100)]
Add logging to console to gunicorn
Jessica Tallon [Mon, 29 Sep 2014 08:04:30 +0000 (09:04 +0100)]
Merge branch '942-default-location'
* 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
Jessica Tallon [Fri, 19 Sep 2014 13:15:11 +0000 (14:15 +0100)]
Add documentation on changing data dir and Fix stylistic changes
Alon Levy [Thu, 25 Sep 2014 21:47:08 +0000 (00:47 +0300)]
pdf tests: use our own pdf doc as GOOD_PDF
remove non distributable good.pdf
Christopher Allan Webber [Thu, 25 Sep 2014 20:09:09 +0000 (15:09 -0500)]
.gitignore celerybeat-schedule.
This commit sponsored by Thomas Løcke. Thank you!
Christopher Allan Webber [Sun, 10 Aug 2014 21:27:29 +0000 (16:27 -0500)]
Updated config_spec.ini to add %(data_basedir)s and make use of it!
This commit sponsored by Loïc Grobol. Thanks!
Christopher Allan Webber [Sun, 10 Aug 2014 21:19:50 +0000 (16:19 -0500)]
defaults now pulled from a mashup of mediagoblin.ini and config_spec.ini
This commit sponsored by Thomas Løcke. Thank you!
Christopher Allan Webber [Wed, 24 Sep 2014 15:37:47 +0000 (10:37 -0500)]
Avoid doing python setup.py sdist, use setup.py develop instead for tox
Berker had this previously, but for some reason it wasn't
working... here's why! usedevelop needs to be in the testenv! Aha!
This commit sponsored by Gian-Maria Daffré! Thank you!
Christopher Allan Webber [Wed, 24 Sep 2014 14:32:05 +0000 (09:32 -0500)]
Switch print statement to print function
Christopher Allan Webber [Tue, 23 Sep 2014 15:46:47 +0000 (10:46 -0500)]
removing exif-py line
Jessica Tallon [Wed, 24 Sep 2014 10:53:33 +0000 (11:53 +0100)]
Fix Content-Disposition error for retrieving OAuth request tokens
Christopher Allan Webber [Mon, 22 Sep 2014 19:05:36 +0000 (14:05 -0500)]
Making alembic happen with python 3 only... for now.
We want to make sure it works nicely first.
Christopher Allan Webber [Mon, 22 Sep 2014 18:58:13 +0000 (13:58 -0500)]
Merge branch 'merge-python3-port'
Conflicts:
setup.py
Christopher Allan Webber [Mon, 22 Sep 2014 18:38:00 +0000 (13:38 -0500)]
MediaGoblin 0.7.2 development cycle
Christopher Allan Webber [Sun, 21 Sep 2014 20:52:37 +0000 (15:52 -0500)]
Fixing bullet points, sigh
Christopher Allan Webber [Sun, 21 Sep 2014 19:25:06 +0000 (14:25 -0500)]
MediaGoblin 0.7.1!
Christopher Allan Webber [Sun, 21 Sep 2014 17:41:00 +0000 (12:41 -0500)]
Adding Low Kian Seong to AUTHORS
Christopher Allan Webber [Sun, 21 Sep 2014 17:39:04 +0000 (12:39 -0500)]
Updated the release notes
Christopher Allan Webber [Sun, 21 Sep 2014 16:08:49 +0000 (11:08 -0500)]
Committing extracted and compiled translations
Christopher Allan Webber [Sun, 21 Sep 2014 16:08:22 +0000 (11:08 -0500)]
Committing present MediaGoblin translations before pushing extracted messages
Christopher Allan Webber [Fri, 19 Sep 2014 21:54:10 +0000 (16:54 -0500)]
download url removed
Christopher Allan Webber [Fri, 19 Sep 2014 21:25:35 +0000 (16:25 -0500)]
Merge remote-tracking branch 'refs/remotes/moggers87/garbage-branch'
Christopher Allan Webber [Fri, 19 Sep 2014 20:56:26 +0000 (15:56 -0500)]
Temporarily disable garbage collection
We need to make sure we safely set up transactions here... it looks
pretty clearly like we aren't yet, so we need to review this. This
should be re-enabled by 0.8.0.
Christopher Allan Webber [Wed, 17 Sep 2014 23:07:50 +0000 (18:07 -0500)]
Comment out the "check if the database is up to date" stuff
... it's presently causing session issues :\
Christopher Allan Webber [Tue, 16 Sep 2014 22:36:52 +0000 (17:36 -0500)]
Last two issues related to the python 3 merge tests: fixed!
- 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! :)
ayleph [Tue, 16 Sep 2014 22:29:09 +0000 (15:29 -0700)]
Modify deleteuser to fail gracefully
bin/gmg deleteuser will produce a traceback error if you attempt to delete a
user who does not exist. This commit provides a fix to allow deletuser to fail
gracefully.
This commit addresses https://issues.mediagoblin.org/ticket/969
Christopher Allan Webber [Tue, 16 Sep 2014 20:35:23 +0000 (15:35 -0500)]
Annnnd another json decode fix for py3! On a roll with these!
This commit sponsored by Ramana Kumar. Thanks!
Christopher Allan Webber [Tue, 16 Sep 2014 20:33:46 +0000 (15:33 -0500)]
decode to unicode before loading in json again, for py3
This commit sponsored by Chris Cormack. Thanks!
Christopher Allan Webber [Tue, 16 Sep 2014 20:25:30 +0000 (15:25 -0500)]
Much more nicely formed form error check
This doesn't rely on checking HTML output... thus, cleaner.
This commit sponsored by Alexandre Guédon. Thank you!
Christopher Allan Webber [Tue, 16 Sep 2014 20:15:13 +0000 (15:15 -0500)]
Fix error check in test_edit.py for python 3
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.
Christopher Allan Webber [Tue, 16 Sep 2014 20:08:28 +0000 (15:08 -0500)]
Fix exception catching on python 3
This commit sponsored by Paul Smith. Thank you!
Christopher Allan Webber [Tue, 16 Sep 2014 20:07:33 +0000 (15:07 -0500)]
Fix iteritems usage on python 3
This commit sponsored by Ben (Free Software Melbourne) Finney. Thanks!
Matt Molyneaux [Tue, 16 Sep 2014 20:03:29 +0000 (21:03 +0100)]
The scheduled garbage collection task was not being called due to it being misnamed
Fix #968
Christopher Allan Webber [Tue, 16 Sep 2014 19:56:13 +0000 (14:56 -0500)]
json.loads(request.body) => json.loads(response.body.decode()))
This fixes python 3 stuff.
This commit sponsored by James Reilly. Thanks, James!
Christopher Allan Webber [Tue, 16 Sep 2014 19:46:02 +0000 (14:46 -0500)]
Import mock correctly on py3
This commit sponsored by Andrew McNicol. Thank you!
Christopher Allan Webber [Tue, 16 Sep 2014 19:37:52 +0000 (14:37 -0500)]
Simplify things here and use io.open
Christopher Allan Webber [Tue, 16 Sep 2014 19:37:36 +0000 (14:37 -0500)]
Fix test_legacy_api.py
Or rather, reimplement one of Berker's fixes and add one of mine:
- add back the http_auth_headers fix Berker wrote
- decode to json when testing the response.body, since we have no
idea what the order will be here
Christopher Allan Webber [Tue, 16 Sep 2014 19:26:40 +0000 (14:26 -0500)]
Import mock from unittest if on py3
Christopher Allan Webber [Tue, 16 Sep 2014 19:01:43 +0000 (14:01 -0500)]
Merge branch 'master' into merge-python3-port
Has some issues, will iteratively fix!
Conflicts:
mediagoblin/gmg_commands/__init__.py
mediagoblin/gmg_commands/deletemedia.py
mediagoblin/gmg_commands/users.py
mediagoblin/oauth/views.py
mediagoblin/plugins/api/views.py
mediagoblin/tests/test_api.py
mediagoblin/tests/test_edit.py
mediagoblin/tests/test_oauth1.py
mediagoblin/tests/test_util.py
mediagoblin/tools/mail.py
mediagoblin/webfinger/views.py
setup.py
Christopher Allan Webber [Mon, 15 Sep 2014 19:26:57 +0000 (14:26 -0500)]
Temporarily disabling the mediagoblin errors middleware
We don't have paste (core) in py3, so....
Christopher Allan Webber [Mon, 15 Sep 2014 17:10:29 +0000 (12:10 -0500)]
No reason to wrap the rest of the options in a quote
This commit sponsored by Thane Williams. Thank you!
Christopher Allan Webber [Mon, 15 Sep 2014 16:46:56 +0000 (11:46 -0500)]
Upgrading gunicorn. Referenced issue is resolved.
Also, upgrading seems to fix weird
"RuntimeError: dictionary changed size during iteration" issues
I was seeing. (Looked like a gunicorn issue, not ours.)
Christopher Allan Webber [Fri, 12 Sep 2014 17:29:12 +0000 (12:29 -0500)]
py2.7 compatibility with open(..., encoding="utf-8"), use io.open
This commit sponsored by Peter Baumgarten. Thank you!
Christopher Allan Webber [Fri, 12 Sep 2014 15:42:23 +0000 (10:42 -0500)]
Explicitly open READMEFILE as utf-8
Christopher Allan Webber [Fri, 12 Sep 2014 14:30:46 +0000 (09:30 -0500)]
Fix unicode error in pdf media type
(we're checking against bytestrings, so make that explicit)
Christopher Allan Webber [Thu, 11 Sep 2014 20:34:19 +0000 (15:34 -0500)]
Set up tox.ini to run more properly:
- Don't run dbupdate... the tests themselves do this, and we might
mess up someone's db
- We shouldn't run setup.py develop because that installs a new
*live* db... the tests do isolation, so...
- Install the package's dependencies by the package itself... it
seems that removing "skipsdist = True" fixes this
- Run py.test manually rather than use runtests.sh (which itself uses
./bin/py.test if it can)
Jessica Tallon [Mon, 8 Sep 2014 16:55:03 +0000 (17:55 +0100)]
Merge branch '945-well-known'
* 945-well-known:
Add /.well-known/webfinger API to lookup user hrefs
Add XRD+XML formatting for /.well-known/host-meta
Jessica Tallon [Mon, 8 Sep 2014 15:26:48 +0000 (16:26 +0100)]
Add /.well-known/webfinger API to lookup user hrefs
Odin Hørthe Omdal [Sun, 3 Aug 2014 16:07:28 +0000 (18:07 +0200)]
Raw image mediatype had a non-unicode logging call
Was causing UnicodeDecodeError when file/folder was not ascii.
Fixes bug #935.
Odin Hørthe Omdal [Sun, 7 Sep 2014 10:56:13 +0000 (12:56 +0200)]
Add __repr__ for Collection and CollectionItem
Christopher Allan Webber [Sun, 7 Sep 2014 14:39:01 +0000 (09:39 -0500)]
Slight tweak to the description wording
Low Kian Seong [Mon, 25 Aug 2014 23:06:01 +0000 (07:06 +0800)]
Update setup.py
A `description` is needed so that project is not listed as `UNKNOWN` on `pypi`
Christopher Allan Webber [Sat, 6 Sep 2014 15:56:27 +0000 (10:56 -0500)]
Handle cr2 files through the raw_image media type
This commit sponsored by Jim Campbell. Hey, I know that guy! Thanks
Jim! :)
Jessica Tallon [Fri, 5 Sep 2014 15:00:06 +0000 (16:00 +0100)]
Fixes navbar for sandyseventiesspeedboat
Jessica Tallon [Fri, 5 Sep 2014 13:13:49 +0000 (14:13 +0100)]
Add XRD+XML formatting for /.well-known/host-meta
Jessica Tallon [Wed, 3 Sep 2014 14:58:40 +0000 (15:58 +0100)]
Only have Model.activity for activity compatable objects/targets
Jessica Tallon [Fri, 29 Aug 2014 12:49:48 +0000 (13:49 +0100)]
Fix migrations and refactor object_type
- 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
Christopher Allan Webber [Wed, 27 Aug 2014 18:28:51 +0000 (13:28 -0500)]
now in the 0.7.1.dev cycle
Christopher Allan Webber [Wed, 27 Aug 2014 17:27:04 +0000 (12:27 -0500)]
Correcting, host-meta not webfinger.
Christopher Allan Webber [Wed, 27 Aug 2014 17:26:23 +0000 (12:26 -0500)]
Run the following to fix the missing git submodule init step
Jessica Tallon [Wed, 27 Aug 2014 14:32:59 +0000 (15:32 +0100)]
Oops forgot to add medigoblin.tools.federation
Jessica Tallon [Wed, 27 Aug 2014 13:34:07 +0000 (14:34 +0100)]
Add ActivityIntermediator table and refactor some of Activity model
- 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.
Christopher Allan Webber [Tue, 26 Aug 2014 17:31:29 +0000 (12:31 -0500)]
Also add git submodule init to the release docs
Jessica Tallon [Tue, 26 Aug 2014 07:53:28 +0000 (08:53 +0100)]
Add better support for targets on Activities
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.
Christopher Allan Webber [Mon, 25 Aug 2014 20:31:55 +0000 (15:31 -0500)]
At version 0.7.0, at last!
Christopher Allan Webber [Mon, 25 Aug 2014 19:44:41 +0000 (14:44 -0500)]
Committing extracted and compiled translations
Christopher Allan Webber [Mon, 25 Aug 2014 19:44:17 +0000 (14:44 -0500)]
Committing present MediaGoblin translations before pushing extracted messages
Christopher Allan Webber [Mon, 25 Aug 2014 16:43:17 +0000 (11:43 -0500)]
Updating release notes.
Jessica Tallon [Fri, 22 Aug 2014 17:53:29 +0000 (18:53 +0100)]
Create activity model and add activity creation
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.).
Christopher Allan Webber [Fri, 22 Aug 2014 21:21:48 +0000 (16:21 -0500)]
not yet, anyway.
Christopher Allan Webber [Fri, 22 Aug 2014 21:13:09 +0000 (16:13 -0500)]
Blog media type doc
Christopher Allan Webber [Fri, 22 Aug 2014 20:01:23 +0000 (15:01 -0500)]
updating ayleph to Andrew Browning
Christopher Allan Webber [Fri, 22 Aug 2014 19:58:22 +0000 (14:58 -0500)]
Updating the AUTHORS file for this release
Christopher Allan Webber [Fri, 22 Aug 2014 14:54:55 +0000 (09:54 -0500)]
eek, should be python2 not python22
Jessica Tallon [Tue, 19 Aug 2014 13:03:53 +0000 (14:03 +0100)]
Make blog_post_listing easier to read
This is Elronds change on #948. As 'blog_slug' is always
set in request.matchdict there is no need to do a default-none
get on the dictionary. This change just makes it easier to read.
ayleph [Sat, 16 Aug 2014 17:45:58 +0000 (10:45 -0700)]
List blogs by URL user rather than request user
The blog_post_listing function in mediagoblin/media_types/blow/views.py
attempts to access blogs based on the requesting user rather than the url
user. This results in server errors when an unauthenticated user attempts to
follow a link from another user's blog post listing, and 404 errors when an
authenticated user attempts to follow a link from another user's blog post
listing.
This change bases blog post listings on the URL user rather than the request
user.
Elrond [Mon, 18 Aug 2014 22:56:37 +0000 (00:56 +0200)]
Add docs on collection_add_media hook.
Elrond [Mon, 18 Aug 2014 22:39:33 +0000 (00:39 +0200)]
Start for documenting core hooks.
This is basicly a start by Chris Webber, I'm just commiting
it for him.
Odin Hørthe Omdal [Sun, 17 Aug 2014 20:22:00 +0000 (22:22 +0200)]
Add new hook 'collection_add_media'
Jessica Tallon [Tue, 5 Aug 2014 21:04:50 +0000 (22:04 +0100)]
Tidy up federation code and add tests to cover more of the APIs
Jessica Tallon [Tue, 5 Aug 2014 20:41:31 +0000 (21:41 +0100)]
Use oauthlib's safe characters when generating client_key and client_secret
Christopher Allan Webber [Mon, 18 Aug 2014 15:40:08 +0000 (10:40 -0500)]
Fix a python2.6 compatibility issue. Removing a dict comprehension.
This commit sponsored by Christopher Beppler. Thanks!
Christopher Allan Webber [Fri, 15 Aug 2014 21:23:15 +0000 (16:23 -0500)]
Always remove the session when running check_db_up_to_date()
This commit sponsored by Francois Marier. Thank you!
Berker Peksag [Fri, 15 Aug 2014 20:07:35 +0000 (23:07 +0300)]
Implement ServeCommand.{loadserver, loadapp}.
This is partly port from PasteScript.