aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/init
Commit message (Collapse)AuthorAgeFilesLines
* Avoid Celery/RabbitMQ "connection reset" errors [#5609].Fernando Gutierrez2020-05-121-1/+0
| | | | | | This change starts Celery only after RabbitMQ is available. It also returns the unnecessarily low BROKER_HEARTBEAT setting to default of 120.0 to help prevent connections being reset on machines under load.
* Add Python 3 docker-compose recipe for MediaGoblin hacking.Ben Sturmfels2019-09-161-0/+9
|
* Merge branch 'transcoding_progress'Boris Bobrov2018-07-121-0/+8
|\ | | | | | | This probably broke stuff
| * Replace print statements to loggingvijeth-aradhya2017-08-051-3/+0
| | | | | | | | Closes #5
| * Celery Priority testing with debug statementsvijeth-aradhya2017-06-131-0/+3
| | | | | | | | | | | | Error at this line: `self.entry.set_file_metadata(self.curr_file, **file_metadata)` Otherwise, celery part should work fine.
| * Add additional celery config settingsvijeth-aradhya2017-06-111-0/+8
| | | | | | | | | | | | Fixes older webm_video backward compatibilty issue. Add 'default' queue to be used from now. Add other necessary celery settings for priority.
* | Support Unicode characters in configuration valuesSimen Heggestøyl2017-10-161-0/+1
|/ | | | | | | Prior to this commit, using a Unicode character in a configuration string would result in a `UnicodeDecodeError` being raised. Supporting Unicode characters is especially useful in user-facing configuration strings, such as `html_title`.
* Fix tests post-alembic-migration-changes.Christopher Allan Webber2016-03-261-3/+9
| | | | | * mediagoblin/init/__init__.py (setup_database): Update to run alembic migrations, skip the old legacy migrations.
* Attach the MediaGoblinApp to the engine, and provide a way for models to accessChristopher Allan Webber2014-12-031-4/+6
| | | | | | | 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!
* Starting to deprecate the app_config, global_config by attaching stuff to appChristopher Allan Webber2014-12-031-1/+6
| | | | | | - app.global_config, app.app_config - making setup_crypto use app.app_config - setting app.workbench_manager
* Add documentation on changing data dir and Fix stylistic changesJessica Tallon2014-09-291-19/+19
|
* 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!
* Merge branch 'merge-python3-port'Christopher Allan Webber2014-09-221-2/+4
|\ | | | | | | | | Conflicts: setup.py
| * Merge branch 'master' into merge-python3-portChristopher Allan Webber2014-09-161-1/+16
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Use six.iteritems() instead of dict.iteritems().Berker Peksag2014-05-261-2/+4
| | |
* | | The scheduled garbage collection task was not being called due to it being ↵Matt Molyneaux2014-09-161-1/+1
| |/ |/| | | | | | | | | misnamed Fix #968
* | Tidy up federation code and add tests to cover more of the APIsJessica Tallon2014-08-181-2/+4
| |
* | Add unseralize for API objectsJessica Tallon2014-07-221-1/+1
| |
* | Add garbage collection taskJessica Tallon2014-07-221-0/+13
|/
* Improved test runtime from 352 seconds to 59 seconds by implementing an ↵Emily O'Leary2013-06-251-5/+9
| | | | in-memory sqlite DB and including an option to run migrations on this newly created database by adding a config option called run_migrations to the config_spec and passing it along in app.py to the setup_database function.
* New notificationsJoar Wandborg2013-06-091-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Various fixes to plugin assetlinking command.Christopher Allan Webber2013-05-231-2/+2
| | | | | | | Actually trying to run the command helps figure out what needs to be fixed :) This commit sponsored by Justin Nichol. Thank you!
* Work towards getting plugin static linking/serving to workChristopher Allan Webber2013-05-231-1/+1
| | | | | | | | | - add link_plugin_assets. For now, incorrectly running from ./bin/gmg theme assetlink... uh, will fix ;) - Update paste and config_spec.ini configs to handle the locations and serving of the plugins' static resources This commit sponsored by Marko Dimjašević. Thank you!
* Start of ability to have plugins provide static resources!Christopher Allan Webber2013-05-231-0/+7
| | | | | | | | | | 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!
* Tests should no longer use the environment-variable-related-setup and set up ↵Christopher Allan Webber2013-05-121-33/+0
| | | | | | | | | in app instead This should remove a bunch of confusing cruft. I hate using that environment variable! Also that old code was fragile. This commit sponsored by Stephen Milton. Thanks!
* Fix the new config "plugin spec" loading code so it doesn't break on no ↵Christopher Allan Webber2013-05-081-1/+1
| | | | plugins section
* Allow plugins to install their own config_spec.ini if they like.Christopher Allan Webber2013-05-081-0/+42
| | | | This commit sponsored by Timothy Vollmer. Thanks Tim!
* removing old callable utilities and porting stuff over.Christopher Allan Webber2013-04-193-5/+5
|
* Merge branch '637_friendlier_hooks'Christopher Allan Webber2013-04-103-10/+5
|\
| * Switch several functions over to using the new callable_run* tools!Christopher Allan Webber2013-04-103-10/+5
| |
* | Remove beaker stuff from the code.Brett Smith2013-03-241-15/+0
|/ | | | This is all obsoleted by It's Dangerous.
* Updated raven pluginJoar Wandborg2013-03-032-0/+9
| | | | | | | - Added wrap_wsgi, celery_setup, celery_logging_setup hooks - Updated raven plugin docs - Updated production considerations docs - Added raven logging setup
* You can now set the PASTE_CONFIG environment variable to control logging setupChristopher Allan Webber2013-02-251-0/+5
| | | | | | | | So this should work: PASTE_CONFIG=/path/to/paste_foo.ini ./lazycelery.sh Thanks to Laurent Fournier for sponsoring this commit!
* Use logging.config.fileConfig()Joar Wandborg2013-02-071-41/+2
| | | | Instead of the monster I had built before.
* Move workbench into tools directory.Elrond2013-01-171-1/+1
|
* RIP out mongoSebastian Spaeth2012-12-251-5/+3
| | | | | | | | | Since sqlalchemy is providing our database abstraction and we have moved away from Mongo as the underlying database, it is now time to simplify things and rip out mongo. This provides the bulk of the changes, and can stand on its own. There are some followup tasks that can be done, such as removing now unneeded abstraction layers, e.g. db.sql.fake.py
* en_US is always availableSebastian Spaeth2012-12-021-2/+2
| | | | | | | | | | | We were using "en" as fallback only when no preferred language matched. This is obviously bad. Always insert en_US as available locale, so we can match it with the accept_languages. Don't set available_locales as mg_global, per discussion with paroneaya, make it a global var in translate.py Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Honor user's browser language (#558)Sebastian Spaeth2012-12-021-0/+6
| | | | | | | | | | | | | Previously we would attempt to satisfy the user's first language preference, immediately falling back to english if that was not possible. Now, we will get the best match of the user's preferred languages. This requires storing the available locales on app startup, so we have mg_globals.available_locales ready to compare them against the list of preferred user languages. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Removed debugging stuff from masterJoar Wandborg2012-09-301-8/+0
|
* Use RawConfigParser instead of dict.viewitemsJoar Wandborg2012-09-301-3/+7
| | | | dict.viewitems breaks python 2.6 compatibility.
* Set up celery logging from paste iniJoar Wandborg2012-09-301-0/+65
|
* [Issue 466] Implement e-z plugin disablingWill Kahn-Greene2012-07-171-0/+7
|
* Rework plugin infrastructure to nix side-effectsWill Kahn-Greene2012-07-171-14/+12
| | | | | | | | | | | | | This reworks the plugin infrastructure so as to remove module-loading side-effects which were making things a pain in the ass to test. With the new system, there's no auto-registering meta class. Instead plugins do whatever they want and then specify a hooks dict that maps hook names to callables for the things they're tying into. The most common one (and the only one we've implemented so far) is "setup". This also simplifies the sampleplugin a little by moving the code to __init__.py.
* Flatpages first passWill Kahn-Greene2012-07-161-21/+24
| | | | | | | | | | This fixes the template loader so that it can load plugin templates. This adds code for registering template paths so that plugins can add their own templates. This adds the base code for the flatpagesfile plugin. It doesn't serve pages, yet, but it's pretty close.
* Add the theme domain to the application's staticdirectorChristopher Allan Webber2012-07-141-4/+8
|
* Update staticdirect stuff so it can handle "domains" of staticdirectionChristopher Allan Webber2012-07-141-2/+2
|
* Kill MultiRemoteStaticDirect... nobody was really using it anywayChristopher Allan Webber2012-07-141-10/+4
| | | | | Since we're adding the new "domain" staticdirect system we should clean this up.
* Moving staticdirect to tools/Christopher Allan Webber2012-07-141-1/+1
|
* Themes are now registered and can have their templates loaded properlyChristopher Allan Webber2012-07-141-5/+19
|
* from_celery.setup_self() didn't pay attention to default_conf_file kwarg, fixed.Christopher Allan Webber2012-05-201-4/+5
|