Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge remote branch 'remotes/elrond/misc/i592_use_full_path' | Christopher Allan Webber | 2011-10-15 | 1 | -0/+11 |
|\ | |||||
| * | i592: Use full path in various places | Elrond | 2011-10-03 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running mediagoblin in a sub path on a web server, most things inside mediagoblin need the "inside path", but when generating URLs for the webbrowser, full paths are needed. urlgen and routes already do that. Some (mostly pagination and login) need the URL of the current page. They used request.path_info. But this is the "inside" path, not the full. So now there is request.full_path and its used in various places. | ||||
* | | Fixing 404s, related to recent util refactoring. | Christopher Allan Webber | 2011-10-05 | 1 | -2/+3 |
|/ | |||||
* | Finished splitting util.py into separate files. | Aaron Williamson | 2011-10-01 | 1 | -6/+7 |
| | |||||
* | Moved common, translation, template, and url code out of util.py and into ↵ | Aaron Williamson | 2011-10-01 | 1 | -2/+3 |
| | | | | tools/[file].py | ||||
* | Merge branch 'i507_beaker_cache' | Christopher Allan Webber | 2011-09-05 | 1 | -1/+4 |
|\ | |||||
| * | Basic beaker caching functionality added to the application. | Christopher Allan Webber | 2011-08-23 | 1 | -1/+4 |
| | | |||||
* | | Issue 569: Initial framework for application middleware. | Nathan Yergler | 2011-09-04 | 1 | -5/+23 |
| | | |||||
* | | 508. Updates copyright/license information | Will Kahn-Greene | 2011-09-01 | 1 | -1/+1 |
|/ | |||||
* | Tacking on an empty matchdict when 404'ing just in case a template expects it | Christopher Allan Webber | 2011-08-20 | 1 | -0/+1 |
| | |||||
* | Adding and making use of the new 404 error page :) | Christopher Allan Webber | 2011-08-20 | 1 | -1/+1 |
| | |||||
* | Change the ordering of the app's __call__ method (attach things to request ↵ | Christopher Allan Webber | 2011-08-20 | 1 | -17/+17 |
| | | | | | | | first) This will make it easier for us to call something like a 404 page rendering method before the matching check is done. | ||||
* | Tweaks import lines switching \ for ( ). | Will Kahn-Greene | 2011-07-30 | 1 | -3/+3 |
| | |||||
* | Move setting up of storage into init/__init__.py | Elrond | 2011-07-18 | 1 | -10/+5 |
| | | | | | | | Factoring out this one should be the last one needed to rewrite the celery setup. The idea is to not setup the whole app, but just call a bunch of individual setup_* functions and be done. | ||||
* | Move application level setup of database to init/ | Elrond | 2011-07-17 | 1 | -20/+2 |
| | | | | | | Setting up the database now involves checking the migrations status and setting up the globals. Moved all of that into init/__init__.py:setup_database(). | ||||
* | app.py and migrate.py must import migrations in order to load said migrations... | Christopher Allan Webber | 2011-07-14 | 1 | -0/+3 |
| | |||||
* | Merge branch 'master' into f411_new_migrations | Christopher Allan Webber | 2011-07-13 | 1 | -40/+10 |
|\ | | | | | | | | | Conflicts: mediagoblin/db/open.py | ||||
| * | removed email variables from globals module | Deb | 2011-07-12 | 1 | -6/+0 |
| | | |||||
| * | Added a note about workbench only currently being used by celery | Christopher Allan Webber | 2011-07-09 | 1 | -0/+3 |
| | | |||||
| * | Factor setup_workbench into init submodule. | Elrond | 2011-07-07 | 1 | -4/+3 |
| | | |||||
| * | Let setup_global_and_app_config call setup_globals | Elrond | 2011-07-05 | 1 | -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_config | Elrond | 2011-07-04 | 1 | -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 submodule | Elrond | 2011-07-04 | 1 | -15/+3 |
| | | | | | | | | | | This duplicates some exceptions, which will be fixed very soon. | ||||
* | | Setup the application to record the database version if missing on launch | Christopher Allan Webber | 2011-07-10 | 1 | -0/+11 |
|/ | |||||
* | Move config.py to init/ | Elrond | 2011-07-02 | 1 | -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. | Elrond | 2011-07-02 | 1 | -1/+2 |
| | |||||
* | Move mediagoblin.celery_setup -> mediagoblin.init.celery | Elrond | 2011-07-02 | 1 | -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 Webber | 2011-06-19 | 1 | -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 Webber | 2011-06-18 | 1 | -0/+1 |
| | |||||
* | Move entire app structure over to using the new config system. | Christopher Allan Webber | 2011-06-18 | 1 | -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_globals | Christopher Allan Webber | 2011-06-12 | 1 | -1/+1 |
| | |||||
* | Moving workbench out of process_media | Christopher Allan Webber | 2011-06-11 | 1 | -2/+1 |
| | |||||
* | Have the application set up instances of the WorkbenchManager. | Christopher Allan Webber | 2011-06-11 | 1 | -3/+8 |
| | |||||
* | Proper webtest infrastructure... seems to be about right anyway :) | Christopher Allan Webber | 2011-06-04 | 1 | -6/+7 |
| | |||||
* | Now you can set CELERY_ALWAYS_EAGER environment variable so that you | Christopher Allan Webber | 2011-05-20 | 1 | -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.py | Elrond | 2011-05-19 | 1 | -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). | Elrond | 2011-05-18 | 1 | -1/+1 |
| | |||||
* | Renaming connect_database to connect_database_from_config and using in ↵ | Christopher Allan Webber | 2011-05-18 | 1 | -2/+2 |
| | | | | from_celery | ||||
* | Move "connect to database" into db/util.py | Elrond | 2011-05-18 | 1 | -6/+2 |
| | |||||
* | Move models into new db/ directory | Elrond | 2011-05-18 | 1 | -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 loader | Christopher Allan Webber | 2011-05-12 | 1 | -2/+5 |
| | | | | for a glorious future where we have gettext in template context | ||||
* | Asbool the email debug mode option | Christopher Allan Webber | 2011-05-08 | 1 | -2/+2 |
| | |||||
* | Only convert db port if it's there and use asint to do it (better errors if ↵ | Christopher Allan Webber | 2011-05-08 | 1 | -2/+4 |
| | | | | failing) | ||||
* | app.py: Need to pass in port number as 'int' | Sebastian Spaeth | 2011-05-08 | 1 | -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 enabled | Christopher Allan Webber | 2011-05-07 | 1 | -3/+6 |
| | |||||
* | Updated default sender address | Joar Wandborg | 2011-05-08 | 1 | -1/+1 |
| | | | | Signed-off-by: Joar Wandborg <git@wandborg.com> | ||||
* | Made changes according to http://bugs.foocorp.net/issues/271#note-7 | Joar Wandborg | 2011-05-08 | 1 | -0/+4 |
| | | | | Signed-off-by: Joar Wandborg <git@wandborg.com> | ||||
* | HTTPFound more accurate than HTTPMovedPermanently. | Christopher Allan Webber | 2011-04-26 | 1 | -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 Webber | 2011-04-24 | 1 | -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 anywhere | Christopher Allan Webber | 2011-04-24 | 1 | -0/+10 |
| |