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
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
a4bae8700e
Move "connect to database" into db/util.py
2011-05-18 01:03:40 +02: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
0e0e3d9aad
Separation between setting up the template env and the template loader
...
for a glorious future where we have gettext in template context
2011-05-12 15:17:07 -05: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
Sebastian Spaeth
19f8a24e41
app.py: Need to pass in port number as 'int'
...
When we configured an explicite db_port in mediagoblin.ini, paster would
crash claiming that the port number must be an int. Given that we don't
have a "get_conf_int()" function or something similar (yet?), simply
convert the port number to int before passing it to the mongo Connection
instance.
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-05-08 11:12:38 +02: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
1bb0fdf2f4
HTTPFound more accurate than HTTPMovedPermanently.
...
(Just observed this in cc.engine, making observation here also while I'm at it :))
2011-04-26 15:46:56 -05:00
Christopher Allan Webber
5784c4e963
Actually call setup_celery_from_config when launching from paste.
...
Also changed **kw to **app_config, which is more useful of a variable
name.
2011-04-24 20:57:38 -05:00
Christopher Allan Webber
df9809c209
Make certain bits of info accessable as global variables from anywhere
2011-04-24 14:48:55 -05:00
Christopher Allan Webber
ddff7cce3e
util.setup_user_in_request must be called last
2011-04-19 19:16:56 -05:00
Christopher Allan Webber
0dd6594596
Move the request.app stuff to the same area
2011-04-17 16:36:01 -05:00
Christopher Allan Webber
582c4d5fb2
Add the staticdirector stuff to the mediagoblin wsgi app.
2011-04-17 16:30:51 -05:00
Christopher Allan Webber
5afdd7a1de
Actually set up the storage systems
2011-04-17 10:36:46 -05:00
Christopher Allan Webber
cb8ea0fe3f
Moved app.load_controller -> util.import_component and added tests.
2011-04-17 09:43:03 -05:00
Will Kahn-Greene
8e1e744d27
Changes Mediagoblin -> MediaGoblin.
2011-04-13 10:04:30 -04:00
Christopher Allan Webber
a3fdcf5ce0
This should allow for request.user and show users logged in
...
... except it's not working?
2011-04-03 18:40:01 -05:00
Christopher Allan Webber
14ba9383de
Use beaker from middleware, it's official.
2011-04-03 16:37:36 -05:00
Matt Lee
e5572c6077
Added copyright notices
2011-03-27 18:47:23 -04:00
Christopher Allan Webber
65d7374c37
erp, connection[database_path] not connection['database_path'] obviously :P
2011-03-27 17:30:42 -05:00
Christopher Allan Webber
2b4e236ac3
Properly load in the database and register the connection with the models
2011-03-26 13:03:32 -05:00
Christopher Allan Webber
7846e40608
Commenting out beaker till we start using it :)
2011-03-24 19:06:31 -05:00
Christopher Allan Webber
c4d7156476
beakered_app removed from the paste_app_factory. Deployers should
...
wrap the app w/ beaker themselves
2010-07-18 17:59:40 -05:00
Christopher Allan Webber
b61874b245
Added session support w/ beaker
2010-07-18 15:59:23 -05:00
Christopher Allan Webber
bda3405342
Still totally useless but at least it writes to the database
2010-07-18 15:21:51 -05:00
Christopher Allan Webber
0f63a9440d
A few adustments to the routing and etc
2010-07-18 11:20:18 -05:00
Christopher Allan Webber
73e0dbcca3
Basic but useless connection to the database
2010-07-17 13:32:57 -05:00
Christopher Allan Webber
31a8ff4288
Initial mediagoblin structure
2010-07-17 11:33:08 -05:00