aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/app.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Let setup_global_and_app_config call setup_globalsElrond2011-07-051-3/+0
| | | | | | | | | | | | Let setup_global_and_app_config set the global and app config in the mg_globals already. This way, the config is available to everyone very early.
| * Create setup_global_and_app_configElrond2011-07-041-14/+3
| | | | | | | | | | | | | | Moving the config reading and error reporting from app.py to init/__init__.py. Straight forward. This also fixes the duplicated exceptions.
| * Move setting up of staticdirector to init submoduleElrond2011-07-041-15/+3
| | | | | | | | | | This duplicates some exceptions, which will be fixed very soon.
* | Setup the application to record the database version if missing on launchChristopher Allan Webber2011-07-101-0/+11
|/
* Move config.py to init/Elrond2011-07-021-1/+1
| | | | | | | Some simple changes needed to do that. The interesting question left: Should config_spec.ini also be moved?
* Move get_jinja_loader to init submodule.Elrond2011-07-021-1/+2
|
* Move mediagoblin.celery_setup -> mediagoblin.init.celeryElrond2011-07-021-1/+1
| | | | | | As the first target of the new .init. submodule move celery_setup there. Quite straight forward, just a lot of places to change.
* renaming storage_system_from_paste_config()->storage_system_from_config()Christopher Allan Webber2011-06-191-2/+2
| | | | | As Elrond points out, this name doesn't make sense anymore since this isn't based on the paste config. Thanks Elrond!
* It's a good idea for us to pass the application itself into mg_globals :)Christopher Allan Webber2011-06-181-0/+1
|
* Move entire app structure over to using the new config system.Christopher Allan Webber2011-06-181-62/+83
| | | | | | | | | | | | | | | | | | | This is a huge change! This means several things. - From the python point of view, launching the application is a heck of a lot cleaner. You just need to pass in the config file path to MediaGoblinApp's __init__() and whether or not this funtion should setup celery and you're good. - There are now two separate config files, separating the server setup from the application setup. - server.ini: the paste deploy config file, which configures the applications and server setup but *NOT* the mediagoblin application itself. - mediagoblin.ini: where you configure mediagoblin (and possibly celery) - Launching the application is now different. Instead of: ./bin/paster serve mediagoblin.ini --reload We launch like: ./bin/paster serve server.ini --reload
* mediagoblin.globals->mediagoblin.mg_globalsChristopher Allan Webber2011-06-121-1/+1
|
* Moving workbench out of process_mediaChristopher Allan Webber2011-06-111-2/+1
|
* Have the application set up instances of the WorkbenchManager.Christopher Allan Webber2011-06-111-3/+8
|
* Proper webtest infrastructure... seems to be about right anyway :)Christopher Allan Webber2011-06-041-6/+7
|
* Now you can set CELERY_ALWAYS_EAGER environment variable so that youChristopher Allan Webber2011-05-201-1/+7
| | | | | | don't have to run celeryd at the same time. This should make Elrond happy ;)
* Factor out most of the database connection into db/open.pyElrond2011-05-191-7/+5
| | | | | | | | 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
* Clean unused imports (found by pyflakes).Elrond2011-05-181-1/+1
|
* Renaming connect_database to connect_database_from_config and using in ↵Christopher Allan Webber2011-05-181-2/+2
| | | | from_celery
* Move "connect to database" into db/util.pyElrond2011-05-181-6/+2
|
* Move models into new db/ directoryElrond2011-05-181-1/+2
| | | | | | | | 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.
* Separation between setting up the template env and the template loaderChristopher Allan Webber2011-05-121-2/+5
| | | | for a glorious future where we have gettext in template context
* Asbool the email debug mode optionChristopher Allan Webber2011-05-081-2/+2
|
* Only convert db port if it's there and use asint to do it (better errors if ↵Christopher Allan Webber2011-05-081-2/+4
| | | | failing)
* app.py: Need to pass in port number as 'int'Sebastian Spaeth2011-05-081-1/+2
| | | | | | | | | | 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>
* Added an email debug mode which, by default, is enabledChristopher Allan Webber2011-05-071-3/+6
|
* Updated default sender addressJoar Wandborg2011-05-081-1/+1
| | | | Signed-off-by: Joar Wandborg <git@wandborg.com>
* Made changes according to http://bugs.foocorp.net/issues/271#note-7Joar Wandborg2011-05-081-0/+4
| | | | Signed-off-by: Joar Wandborg <git@wandborg.com>
* HTTPFound more accurate than HTTPMovedPermanently.Christopher Allan Webber2011-04-261-1/+1
| | | | (Just observed this in cc.engine, making observation here also while I'm at it :))
* Actually call setup_celery_from_config when launching from paste.Christopher Allan Webber2011-04-241-10/+15
| | | | | Also changed **kw to **app_config, which is more useful of a variable name.
* Make certain bits of info accessable as global variables from anywhereChristopher Allan Webber2011-04-241-0/+10
|
* util.setup_user_in_request must be called lastChristopher Allan Webber2011-04-191-1/+2
|
* Move the request.app stuff to the same areaChristopher Allan Webber2011-04-171-4/+6
|
* Add the staticdirector stuff to the mediagoblin wsgi app.Christopher Allan Webber2011-04-171-1/+21
|
* Actually set up the storage systemsChristopher Allan Webber2011-04-171-5/+20
|
* Moved app.load_controller -> util.import_component and added tests.Christopher Allan Webber2011-04-171-11/+5
|
* Changes Mediagoblin -> MediaGoblin.Will Kahn-Greene2011-04-131-3/+3
|
* This should allow for request.user and show users logged inChristopher Allan Webber2011-04-031-1/+1
| | | | ... except it's not working?
* Use beaker from middleware, it's official.Christopher Allan Webber2011-04-031-2/+1
|
* Added copyright noticesMatt Lee2011-03-271-0/+16
|
* erp, connection[database_path] not connection['database_path'] obviously :PChristopher Allan Webber2011-03-271-1/+1
|
* Properly load in the database and register the connection with the modelsChristopher Allan Webber2011-03-261-7/+12
|
* Commenting out beaker till we start using it :)Christopher Allan Webber2011-03-241-1/+4
|
* beakered_app removed from the paste_app_factory. Deployers shouldChristopher Allan Webber2010-07-181-5/+1
| | | | wrap the app w/ beaker themselves
* Added session support w/ beakerChristopher Allan Webber2010-07-181-4/+11
|
* Still totally useless but at least it writes to the databaseChristopher Allan Webber2010-07-181-1/+1
|
* A few adustments to the routing and etcChristopher Allan Webber2010-07-181-3/+4
|
* Basic but useless connection to the databaseChristopher Allan Webber2010-07-171-1/+7
|
* Initial mediagoblin structureChristopher Allan Webber2010-07-171-0/+64