aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix plugin documentationSebastian Spaeth2013-09-041-1/+1
| | | | | The docs suggest to use {% template_hook "media_sidebar" %}. This will break Mediagoblin in mysterious ways, and the docs need a fix.
* Fix failing to build docsChristopher Allan Webber2013-08-281-12/+14
|
* Merge remote-tracking branch 'refs/remotes/tsyesika/master'Christopher Allan Webber2013-08-154-1/+131
|\ | | | | | | New oauth tools! Heck yeah!
| * Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblinxray72242013-07-141-1/+8
| |\
| * | Cleans up some of the OAuth codexray72242013-07-111-9/+0
| | |
| * | Finishes most of oauth, just decorator to completexray72242013-07-112-0/+29
| | |
| * | Adds more support for oauth - access_token & decorators still to doxray72242013-07-111-1/+1
| | |
| * | Adds oauth support up until authorizationxray72242013-07-112-0/+26
| | |
| * | Client registration now supports application/x-www-form-urlencoded nowxray72242013-07-111-0/+46
| | |
| * | Working client registrationxray72242013-07-113-43/+40
| | |
| * | Moves json_response into tools/json.pyxray72242013-07-111-0/+41
| | |
* | | Fix notifications, which I broke.Christopher Allan Webber2013-08-141-0/+2
| | | | | | | | | | | | This commit sponsored by Denver Gingerich. Thank you!
* | | Avoiding the celery warnings that we seem to be confusing people lately.Christopher Allan Webber2013-08-141-1/+8
| | | | | | | | | | | | | | | | | | Basically, it's shuffling around the notifications stuff. This commit sponsored by Günter Kraft. Thank you!
* | | * create config option for optional jinja2 extensionsKenneth Dombrowski2013-08-071-1/+7
| | | | | | | | | | | | | | | | | | | | | * add comments & clarify code for jinja2 extensions Conflicts: mediagoblin/config_spec.ini
* | | babel 1.0 doesn't have a localedata.list() method, so updated setup.py.Rodney Ewing2013-07-291-1/+1
| |/ |/| | | | | made "import crypto" fully qualified
* | save “stay_logged_in” in the sessionJakob Kramer2013-07-111-2/+8
| | | | | | | | | | | | Since sessions are rebuilt, e.g. when you try to post a blank comment and therefore receive an error message, the session will be overwritten without the old max_age.
* | add login option: stay_logged_inJakob Kramer2013-07-111-1/+2
|/ | | | | | | As proposed in issue #354; it adds an attribute max_age to mediagoblin.tools.session.Session that is passed to response.set_cookie; max_age is set to 30 days if the checkbox is selected
* Merge remote-tracking branch 'upstream/master' into authRodney Ewing2013-06-252-2/+7
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/app.py mediagoblin/auth/forms.py mediagoblin/auth/tools.py mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/edit/views.py mediagoblin/plugins/basic_auth/tools.py mediagoblin/tests/test_edit.py
| * Merge remote-tracking branch 'refs/remotes/joar/notifications'Christopher Allan Webber2013-06-221-1/+6
| |\ | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py
| | * New notificationsJoar Wandborg2013-06-091-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added request.notifications - Email configuration fixes - Set config_spec default SMTP port to `0` and switch to SSL/non-SSL default if `port == 0` - Added email_smtp_use_ssl configuration setting - Added migrations for notification tables - Added __repr__ to MediaComment(Mixin) - Added MediaComment.get_entry => MediaEntry - Added CommentSubscription, CommentNotification, Notification, ProcessingNotification tables - Added notifications.task to celery init - Fixed a bug in the video transcoder where pygst would hijack the --help argument. - Added notifications - views - silence - subscribe - routes - utility methods - celery task - Added half-hearted .active comment CSS style - Added quick JS to show header_dropdown - Added fragment template to show notifications in header_dropdown - Added fragment template to show subscribe/unsubscribe buttons on media/comment pages - Updated celery setup tests with notifications.task - Tried to fix test_misc tests that I broke - Added notification tests - Added and extended tests.tools fixtures - Integrated new notifications into media_home, media_post_comment views - Bumped SQLAlchemy dependency to >= 0.8.0 since we need polymorphic for the notifications to work
| * | Fix by Rodney Ewing so render_http_exception works with newer Werkzeug versions.Christopher Allan Webber2013-06-221-1/+1
| |/
| * moved email_debug_message to gmg/tools/mailRodney Ewing2013-05-271-1/+14
| |
* | Merge branch 'pre-auth' into basic_authRodney Ewing2013-05-271-1/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/auth/tools.py mediagoblin/auth/views.py mediagoblin/db/migrations.py mediagoblin/plugins/basic_auth/lib.py mediagoblin/plugins/httpapiauth/__init__.py mediagoblin/plugins/piwigo/views.py
| * | moved email_debug_message to gmg/tools/mailRodney Ewing2013-05-241-1/+14
| |/
* / add a check for authentication plugin on startup and respond according to ↵Rodney Ewing2013-05-241-0/+1
|/ | | | no_auth config option. allows instance to be run w/o authentication
* Start of ability to have plugins provide static resources!Christopher Allan Webber2013-05-231-0/+38
| | | | | | | | | | Note I have not tested any of this yet ;) But we're already on our way: - We've got docs - The hook is there Lots to do still though. But, progress! :) This commit sponsored by Laura Arjona Reina. Thanks larjona!
* Changes to display all EXIF informationGabriel Saldana2013-05-201-1/+1
|
* Oh right, actually add that hook we just documented, ↵Christopher Allan Webber2013-05-151-0/+7
| | | | | | "template_context_prerender" :) This commit sponsored by William Goudie. Thanks Bill! :)
* Fully working context hooks, both template/view and global level, with testsChristopher Allan Webber2013-05-141-5/+8
| | | | | | Needs documentation though... that's coming next :) This commit sponsored by Luca Tius. Thanks Luca!
* Use the controller's symbolic/lookup name as part of the key for context hooksChristopher Allan Webber2013-05-101-1/+1
| | | | This commit sponsored by David Collins. Thank you!
* The beginning of context hooks.Christopher Allan Webber2013-05-081-1/+8
| | | | | | | | | | | | | | | | | Not the working solution, but getting there conceptually. Basically we'll have a key with the view and the template as a tuple which is the context hook that anyone can attach to. However, some changes have still to be made: - The unit test doesn't work yet and contains a set_trace ;) - We'll probably switch the "view" component from being the callable to the "urlgen"'able name per Elrond's suggestion - Found a bug in unit tests related to running custom apps for different configs... hm. I need to fix this! Nonetheless, making progress. This commit sponsored by... wait a minute... Christopher Webber?!
* Create redir_obj and use it around.Elrond2013-04-281-0/+7
| | | | | | | | This is a shortcut function to redirect to the main page for an object. Objects currently supported: media entries and collections. And go around and replace various places to use this.
* Removed an unused importRodney Ewing2013-04-261-2/+0
|
* No lazy_* needed here; Add ReallyLazyProxy.__repr__.Elrond2013-04-251-0/+7
| | | | | | | | | | | | One should use lazy_* only if you have a good reason. This one found by our unit tests! For example add_message adds the message to the session, the session needs to be serialized (with json) and well, LazyProxy is not serializable. To aid in debugging, gave our ReallyLazyProxy a __repr__.
* Adding ReallyLazyProxy, a proxy that does what we expect :)Christopher Allan Webber2013-04-241-4/+13
|
* Switching non-forms back to using normal pass_to_ugettextChristopher Allan Webber2013-04-241-1/+1
|
* Fix-bug-667-Use-lazy_pass_to_ugettext-for-forms.Aditi Mittal2013-04-241-1/+1
|
* Create set_thread_locale and use it.Elrond2013-04-242-3/+7
| | | | | | Setting up a new template env should not directly touch the translation tools, but go through a function in translations.py.
* removing old callable utilities and porting stuff over.Christopher Allan Webber2013-04-191-67/+1
|
* we should be returning the result, not None!Christopher Allan Webber2013-04-191-1/+1
|
* fixing hook_handle for when result is never assigned, avoid reference ↵Christopher Allan Webber2013-04-191-0/+2
| | | | without assignent
* As Elrond points out, we might as well .pop() default_handlerChristopher Allan Webber2013-04-191-1/+1
|
* Hooks: the Next Generation!Christopher Allan Webber2013-04-191-0/+90
| | | | I have not tested any of this but it looks right ;)
* And... pyblosxom code removed again :)Christopher Allan Webber2013-04-191-114/+0
| | | | We agreed on a new direction on IRC last night...
* pyblosxom run_callback hoistedChristopher Allan Webber2013-04-181-0/+114
|
* Start to use six for basestring.Elrond2013-04-181-1/+2
| | | | | | six allows us to smoothly get more forward compatible with py3. The idea is to change things over to use six, when/if we feel a need for it.
* Merge remote-tracking branch 'refs/remotes/tsyesika/394-fuzzy-timestamp'Christopher Allan Webber2013-04-133-0/+120
|\
| * Adds the unit tests and removes useless function we don't useJessica T2013-04-121-7/+0
| |
| * Adds the timesince ability which fixes #394Jessica T2013-04-113-0/+127
| |
* | Merge branch '637_friendlier_hooks'Christopher Allan Webber2013-04-101-0/+67
|\ \ | |/ |/|