4412 Commits

Author SHA1 Message Date
Berker Peksag
c87825b692 Added an "htmlview" target to open docs after building them.
This is helpful if you build and test documentation updates in
your development env.

Copied from CPython's and Django's Doc/Makefile.
2015-01-09 23:05:04 +02:00
Jessica Tallon
b63b564e2e Minor fixes to API documentation: typos and dates, etc. 2015-01-09 15:15:29 +00:00
Jessica Tallon
2a702d0180 Update and reorganise API documentation 2015-01-09 14:02:49 +00:00
Jessica Tallon
2663394688 Add upper limit to count GET param for inbox and feed 2015-01-06 12:06:12 +00:00
Jessica Tallon
90b78c4a28 Clean up documentation and add documentation on activities 2014-12-30 16:01:20 +01:00
Jessica Tallon
7eac1e6d6b Fix 1e0c938 by allowing target to be translatable in Activity.content 2014-12-22 11:48:01 +00:00
Jessica Tallon
1e0c938c63 Allow Activity.content to be fully translatable 2014-12-22 11:00:44 +00:00
Jessica Tallon
ce1344f40b Fix #1066 - Fix OAuth issue when using GET params 2014-12-18 08:53:05 +00:00
Jessica Tallon
95dbed2d72 Fix #1078 - Stop 500 error when GET request on inbox 2014-12-16 12:15:13 +00:00
Jessica Tallon
9e715bb07f Fix #1077 - Fix updating comment via API and add test 2014-12-16 12:05:18 +00:00
Jessica Tallon
9a51bf1ebc Fix #1064 - Add major and minor feed for outbox/feed 2014-12-15 18:04:50 +00:00
Jessica Tallon
4dec1cd695 Fix #1069 - Add deleting images and comments via delete activities 2014-12-15 11:18:30 +00:00
Christopher Allan Webber
57024f34a3 Committing extracted and compiled translations 2014-12-14 15:02:50 -06:00
Christopher Allan Webber
7a917e291a Recommend cloning the stable branch instead of master from now on
This commit sponsored by Karen Rustad.  You're awesome, Karen!
2014-12-14 12:56:33 -06:00
Christopher Allan Webber
e2a4e048c9 Committing extracted and compiled translations 2014-12-13 10:04:10 -06:00
Christopher Allan Webber
1439e4965f Fix the output file to the correct one in the new i18n compile loop 2014-12-13 10:04:10 -06:00
Christopher Allan Webber
f5a829fabf Just spacing things out to look a bit cleaner. 2014-12-13 10:04:10 -06:00
Christopher Allan Webber
8471c5b4d2 Submitting workaround to skip compiling Lojban. Sniff :(
We'll eventually support Lojban again.  This issue fixes #1071, but
leaves #1070 open.
2014-12-13 10:04:10 -06:00
Christopher Allan Webber
8441e87d75 Committing present MediaGoblin translations before pushing extracted messages 2014-12-13 10:04:10 -06:00
Jessica Tallon
c7c26b1740 Fix #1056 - Add flag to accept URLs without a trailing slash 2014-12-12 14:33:15 +00:00
Jessica Tallon
058964bce7 Fix #1055 - API feed should be sorted in order of newest first 2014-12-11 16:35:10 +00:00
Jessica Tallon
4a09d5956a Fix #1053 - Add height and width attributes and MetadataProcess task
Added "height" and "width" attributes to "image" and "fullImage"
    in the API where possible. The height and width of images wasn't
    being stored anywhere so I've created a task to add or update
    the metadata on images and also started adding those to new images
    when they're submitted in the InitialProcessor.
2014-12-11 11:52:34 +00:00
Jessica Tallon
f2698759cd Fix #1026 - Add inbox feed with major, minor and direct endpoints 2014-12-09 20:42:43 +00:00
jpope777
8017abec70 Fix #1058 - Verifier page could be clearer 2014-12-08 11:46:56 -06:00
Jessica Tallon
060a7a7b3d Fix #1057 - unquote redirection URL on successful OAuth authorization 2014-12-08 17:00:33 +00:00
Jessica Tallon
3588522606 Fix #1054 - Add missing attributes to Activity.serialize 2014-12-08 14:46:48 +00:00
Jessica Tallon
a5c09c50c0 Fix OAuth length problems in clients by removing that constraint 2014-12-08 13:44:33 +00:00
Jessica Tallon
8d8fdfd1b8 Partial fix #1048 - Don't require as long nonce 2014-12-05 17:22:55 +00:00
Jessica Tallon
5b7e6bb8c2 Fix #1049 - name renamed to displayName for Location 2014-12-05 14:04:18 +00:00
Christopher Allan Webber
7b808c1fad There's absolutely no reason for a Session().commit object mirrored onto Session() :)
Thanks for catching, Elrond :)
2014-12-03 15:40:58 -06:00
Christopher Allan Webber
8379046d4a Use request.db to do a query to support a global-free view :) 2014-12-03 15:40:58 -06:00
Christopher Allan Webber
ddabf20f25 Make all mixin methods ignore mg_globals and use self._app instead
This commit sponsored by Daniel Lang.  Thank you!
2014-12-03 15:40:58 -06:00
Christopher Allan Webber
7c563e91bf Attach the MediaGoblinApp to the engine, and provide a way for models to access
This allows SQLAlchemy models to gain access to app-level configuration
without the need for global variables.

This commit sponsored by Peter Hogg.  Thank you, Peter!
2014-12-03 15:40:58 -06:00
Christopher Allan Webber
5e5ea4a3e9 Use request.app.auth instead of mg_globals 2014-12-03 15:40:57 -06:00
Christopher Allan Webber
753cfc3bb9 Reforming get_jinja_env to make better use of the MediaGoblinApp 2014-12-03 15:40:57 -06:00
Christopher Allan Webber
b8e2ab2f55 Starting to deprecate the app_config, global_config by attaching stuff to app
- app.global_config, app.app_config
 - making setup_crypto use app.app_config
 - setting app.workbench_manager
2014-12-03 15:40:57 -06:00
Christopher Allan Webber
a4768df0ca Context objects now use a contextmanager (and update gmg shell to use it)
This means that we have a really convenient way to make sure that you
have a context/request that threads its way through the application,
where everything needed gets "shut down" appropriately by the end.

You always get a context object via a context manager!  And by the time
you're done with it, things should be cleaned up.
2014-12-03 15:40:57 -06:00
Christopher Allan Webber
9d82dff6fb Adding query property to DatabaseMaster for forward compatibility 2014-12-03 15:40:57 -06:00
Christopher Allan Webber
f08e31522d Make "gmg shell" work with the new globals-less setup 2014-12-03 15:40:57 -06:00
Christopher Allan Webber
f7521cac34 Attach the base models to sessions and the DatabaseMaster for backwards compatibility
Really we should stop relying on that though.
2014-12-03 15:40:57 -06:00
Christopher Allan Webber
5cbdb15cdb Only conditionally import Session in db/util.py 2014-12-03 15:40:57 -06:00
Christopher Allan Webber
c060353e35 Set up request.db / app.db(_manager) depending on DISABLE_GLOBALS 2014-12-03 15:40:57 -06:00
Christopher Allan Webber
2026752120 Move the scoped_session, sessionmaker imports 2014-12-03 15:40:57 -06:00
Christopher Allan Webber
e248e1429a Some docstrings 2014-12-03 15:40:57 -06:00
Christopher Allan Webber
63f6a418d1 Return DatabaseManager or DatabaseMaster depending on DISABLE_GLOBALS
They're both similar!  One sets up sessions, one grabs sessions from a global object.
2014-12-03 15:40:57 -06:00
Christopher Allan Webber
5f3703d545 Oops, got the boolean backwards :P 2014-12-03 15:40:57 -06:00
Christopher Allan Webber
4591af32b3 Adding DatabaseManager as an alternative to DatabaseMaster
This is another step to get to a no-globals configuration.  I'm not
sure if this code works yet or not... :)
2014-12-03 15:40:57 -06:00
Christopher Allan Webber
b88ca698dd An environment variable to transition towards removing global variables 2014-12-03 15:40:56 -06:00
Christopher Allan Webber
15c86f3a57 Give our sqlalchemy objects access to their own session 2014-12-03 15:40:56 -06:00
Christopher Allan Webber
d71499004f Add context generator: first step towards removing globals from the application
This allows you to generate a "context" object that gets threaded
throughout the application... this object should keep track of the same
things that currently we use global variables for.
2014-12-03 15:40:56 -06:00