Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Finish flatpagesplugin; add plugin docs | Will Kahn-Greene | 2012-07-16 | 1 | -1/+1 | |
| | ||||||
* | Flatpages first pass | Will Kahn-Greene | 2012-07-16 | 1 | -1/+4 | |
| | | | | | | | | | | 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. | |||||
* | Making the register_themes() tool also return the current theme | Christopher Allan Webber | 2012-07-14 | 1 | -7/+1 | |
| | | | | | This will reduce the amount of work reproducing this behavior when pulling together the theme registry elsewhere. | |||||
* | Themes are now registered and can have their templates loaded properly | Christopher Allan Webber | 2012-07-14 | 1 | -1/+8 | |
| | ||||||
* | Early version of theme registry code | Christopher Allan Webber | 2012-07-14 | 1 | -0/+4 | |
| | ||||||
* | 401. Plugin infrastructure | Will Kahn-Greene | 2012-05-13 | 1 | -0/+6 | |
| | | | | | | | | * implements installing, loading and setup for plugins * codifies configuration * has a sample plugin * docs * tests | |||||
* | log.debug the used config file. | Elrond | 2012-04-09 | 1 | -0/+1 | |
| | | | | Might be useful at some point. | |||||
* | CELERY_ALWAYS_EAGER environment variable only recognized if 'true' now | Christopher Allan Webber | 2012-04-08 | 1 | -1/+1 | |
| | ||||||
* | Allow users to pass callables in as controllers, not just import paths | Christopher Allan Webber | 2012-04-08 | 1 | -1/+7 | |
| | ||||||
* | Cleanup sql session after request. ALWAYS! | Elrond | 2012-04-07 | 1 | -8/+11 | |
| | | | | | | | | | | | | The cleanup could be missed if the request handling code in app.py:__call__ exits early (due to exception, or due to one of those early "return"s). So to make sure the sql session is cleaned up for real, wrap the whole thing in a try: finally:. Also wrote a short tool to test if the session is actually empty. The tool is currently disabled, but ready to be used. | |||||
* | Cleanup Session after each request. | Elrond | 2012-02-28 | 1 | -0/+8 | |
| | | | | | | | | | | | It's good practice to cleanup the SQL session after each request so that the next request gets a fresh one. It's an application decision whether one wants a just-in-case ROLLBACK or COMMIT. There are two ideas behind it, really. I have decided for ROLLBACK. The idea is "if you forget to commit your changes yourself, there's something broken. Maybe you got an exception?". | |||||
* | Let Main Server emit startup notice including version | Elrond | 2012-02-26 | 1 | -1/+6 | |
| | | | | | | | There was no place in the software telling the user the version in use. So start by having the main server emit a startup notice including the version string. Uses python logging, so should be easy to reconfigure, etc. | |||||
* | It's 2012 all up in here | Christopher Allan Webber | 2012-02-02 | 1 | -1/+1 | |
| | ||||||
* | Note reported bug in workaround | Elrond | 2011-12-21 | 1 | -0/+1 | |
| | | | | | So that the workaround can eventually be removed, note the URL for the relevant bug in a comment. | |||||
* | Workaround for Routes/urlgen bug. | Elrond | 2011-12-21 | 1 | -0/+4 | |
| | | | | | | | | | | | | This is relevant for fcgi: Some servers (cherokee for example) put "HTTP":"off" in the environ. And the following code in urlgen breaks on this: if environ.get('HTTPS') or environ.get('wsgi.url_scheme') == 'https' \ or environ.get('HTTP_X_FORWARDED_PROTO') == 'https': hostinfo['protocol'] = 'https' workaround is to remove HTTPS:off from the environ. | |||||
* | We should use the variable local_templates instead of user_template_path | Christopher Allan Webber | 2011-12-02 | 1 | -1/+1 | |
| | ||||||
* | Issue 680: Dispatch meddleware request processing post-routing | Nathan Yergler | 2011-11-26 | 1 | -6/+7 | |
| | ||||||
* | Rename MediaGoblin middleware to meddleware to avoid confusion w/ wsgi ↵ | Christopher Allan Webber | 2011-11-25 | 1 | -8/+8 | |
| | | | | | | middleware hehehehehe, "meddleware" | |||||
* | Merge remote-tracking branch 'remotes/nyergler/pep8-ification' | Christopher Allan Webber | 2011-11-13 | 1 | -2/+1 | |
|\ | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py | |||||
| * | Whitespace and formatting cleanup. | Nathan Yergler | 2011-10-01 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | * Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, = | |||||
* | | [620] Allow for multiple mediagoblin configs to be set in config.ini, use first | Christopher Allan Webber | 2011-10-29 | 1 | -1/+11 | |
| | | | | | | | | | | This way we can copy paste.ini into paste_local.ini but not have to update it to find mediagoblin_local.ini. | |||||
* | | 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 | |
| |