Christopher Allan Webber
a32acafa0b
Moving workbench out of process_media
2011-06-11 20:33:41 -05:00
Christopher Allan Webber
7ecc58cc5c
Have the application set up instances of the WorkbenchManager.
2011-06-11 19:47:02 -05:00
Christopher Allan Webber
c5678c1ab3
Proper webtest infrastructure... seems to be about right anyway :)
2011-06-04 13:20:48 -05:00
Elrond
55c74e1e4b
Propagate Exceptions up in Celery-Eager-Mode
...
When running in celery-eager mode, the celery machinery
hides all exceptions inside "celery tasks" (you can find
out about them on the task handle somehow). Currently much
better to propagate them straight up, so they're visible on
the console.
2011-06-03 23:54:33 +02:00
Christopher Allan Webber
571198c938
Now you can set CELERY_ALWAYS_EAGER environment variable so that you
...
don't have to run celeryd at the same time.
This should make Elrond happy ;)
2011-05-20 18:49:04 -05:00
Elrond
a67fec8177
Factor out most of the database connection into db/open.py
...
I needed to split the db connection/opening into open.py,
due to an import loop:
- util.py needs db/util.py:ObjectId
- db/util.py would need db/models.py
- db/models.py needs util.py:slugify
2011-05-19 01:35:02 +02:00
Elrond
86f9b47387
Clean unused imports (found by pyflakes).
2011-05-18 22:03:52 +02:00
Christopher Allan Webber
3262ad1dbb
Renaming connect_database to connect_database_from_config and using in from_celery
2011-05-18 08:44:57 -05:00
Elrond
0f18ed8f5e
Move models into new db/ directory
...
The database is a central point of interest/discussion.
Represent that by its own directory.
This will surely become more interesting when we have
migrations for example.
2011-05-18 00:44:10 +02:00
Christopher Allan Webber
cd847fd346
Asbool the email debug mode option
2011-05-08 10:07:39 -05:00
Christopher Allan Webber
a1eb1f6051
Only convert db port if it's there and use asint to do it (better errors if failing)
2011-05-08 07:16:50 -05:00
Christopher Allan Webber
eef100ada5
mgoblin_section.get, not app_config.get (doh)
...
My name's Chris Webber and I ignore pyflakes warnings.
2011-05-08 07:07:08 -05:00
Christopher Allan Webber
29f3fb7052
Added an email debug mode which, by default, is enabled
2011-05-07 22:45:06 -05:00
Joar Wandborg
8a6a81bcaa
Updated default sender address
...
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-08 02:03:11 +02:00
Joar Wandborg
4c093e85c7
Made changes according to http://bugs.foocorp.net/issues/271#note-7
...
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-08 00:55:57 +02:00
Christopher Allan Webber
88816492a3
Force imports of stuff like mediagoblin.process_media which has tasks we need
2011-05-03 21:48:02 -05:00
Christopher Allan Webber
258b62c6a2
Register the models when using from_celery
2011-05-01 19:41:22 -05:00
Christopher Allan Webber
1e48a8308a
Now we have something useful: mediagoblin.celery_setup.from_celery
...
auto-configures a celery config module from your paste config
2011-05-01 10:17:04 -05:00
Christopher Allan Webber
ef30978ad2
tests for setup_celery_from_config()
2011-04-30 21:54:05 -05:00
Christopher Allan Webber
1c61a6ca3b
A few more corrections to make setup_celery_from_config() work right
2011-04-30 21:53:39 -05:00
Christopher Allan Webber
694c235106
Import based on the DEFAULT_SETTINGS_MODULE in setup_celery_from_config
2011-04-30 11:32:33 -05:00
Christopher Allan Webber
bb64a6073c
Commit dummy_settings_module, of course.
2011-04-24 20:55:02 -05:00
Christopher Allan Webber
e231d9e8bb
setup_celery_from_config tool. Haven't tried if it works, but looks right...
2011-04-24 18:47:23 -05:00