Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| | * | | | | | Removing type conversions from setup_celery_from_config. | Christopher Allan Webber | 2011-06-18 | 1 | -64/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These simply aren't needed any more, not now that the config validator stuff does type conversion for us. Also fixed the docstring to explain force_celery_always_eager. | |||||
| | * | | | | | Move entire app structure over to using the new config system. | Christopher Allan Webber | 2011-06-18 | 2 | -64/+87 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | |||||
| | * | | | | | Tests for mediagoblin.config functions | Christopher Allan Webber | 2011-06-18 | 5 | -0/+134 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests for: - read_mediagoblin_config() - generate_validation_report() | |||||
| | * | | | | | CONFIG_SPEC_PATH should be config_spec here, fixing. | Christopher Allan Webber | 2011-06-18 | 1 | -1/+1 | |
| | | | | | | | ||||||
| | * | | | | | Make REPORT_HEADER a unicode string also. Unicode everywhere, ideally! | Christopher Allan Webber | 2011-06-18 | 1 | -1/+1 | |
| | | | | | | | ||||||
| | * | | | | | Validation error reporting functionality. | Christopher Allan Webber | 2011-06-18 | 1 | -6/+57 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed a few things so we can report errors to users properly in the config loading system. - We now return from read_mediagoblin_config both a loaded config and the validation results - We now have a helper function generate_validation_report that can generate a proper validation report saying if there are errors in a way that's useful to users. - Moved conf->config in the read_mediagoblin_config function, which looks nicer IMO. | |||||
| | * | | | | | Let's specifically import string_list()s in the config_spec. | Christopher Allan Webber | 2011-06-18 | 1 | -2/+2 | |
| | | | | | | | ||||||
| | * | | | | | Merge branch 'master' into configobj | Christopher Allan Webber | 2011-06-18 | 5 | -5/+116 | |
| | |\ \ \ \ \ | | | | |_|_|/ | | | |/| | | | | | | | | | | | | | | | | | Conflicts: setup.py | |||||
| | * | | | | | Configuration file loading via ConfigObj. | Christopher Allan Webber | 2011-06-16 | 1 | -0/+71 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses ConfigObj to open the config file. Also does validation via the config spec, so defaults are provided, strings are interpolated, types are converted. | |||||
| | * | | | | | Basic config "requirements" file. | Christopher Allan Webber | 2011-06-15 | 1 | -0/+69 | |
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | Not used yet, but this will be used by ConfigObj to transform values, set defaults, etc. | |||||
* | | | | | | Merge remote-tracking branch 'gitorious/master' | Jef van Schendel | 2011-06-19 | 1 | -2/+0 | |
|\| | | | | | ||||||
| * | | | | | Removing unused pkg_resources import from test_celery_setup | Christopher Allan Webber | 2011-06-18 | 1 | -2/+0 | |
| | |/ / / | |/| | | | ||||||
* | | | | | Merge remote-tracking branch 'gitorious/master' | Jef van Schendel | 2011-06-17 | 5 | -5/+116 | |
|\| | | | | ||||||
| * | | | | Merge remote branch 'remotes/cmoylan/test_auth_views_364' | Christopher Allan Webber | 2011-06-17 | 1 | -5/+43 | |
| |\ \ \ \ | ||||||
| | * | | | | logins are now somewhat tested | Chris Moylan | 2011-06-17 | 1 | -5/+43 | |
| | |/ / / | ||||||
| * | | | | adds link from gallery back to user page | cfdv | 2011-06-16 | 1 | -1/+3 | |
| | | | | | ||||||
| * | | | | adds link to user gallery in mediagoblin_header_right of user page | cfdv | 2011-06-16 | 1 | -0/+2 | |
| | | | | | ||||||
| * | | | | user_gallery controller calls render_to_reponse | cfdv | 2011-06-16 | 1 | -9/+6 | |
| | | | | | ||||||
| * | | | | adds routing.py and view.py changes | cfdv | 2011-06-16 | 2 | -0/+32 | |
| | | | | | ||||||
| * | | | | issue #330 - creates a user gallery template | Caleb Forbes Davis V | 2011-06-16 | 1 | -0/+40 | |
| |/ / / | ||||||
* | | | | Merge remote-tracking branch 'gitorious/master' | Jef van Schendel | 2011-06-15 | 20 | -61/+461 | |
|\| | | | ||||||
| * | | | Merge remote branch 'remotes/elrond/dev/workbench_class' | Christopher Allan Webber | 2011-06-14 | 3 | -67/+78 | |
| |\ \ \ | ||||||
| | * | | | Move destroy_workbench to Workbench class | Elrond | 2011-06-14 | 3 | -37/+25 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | And add a lot of warnings, as the checks for "being part of the main Manager" are all gone. | |||||
| | * | | | Drop WorkbenchManager.localized_file() | Elrond | 2011-06-14 | 2 | -9/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As Workbench has the localized_file() method, use this everywhere and drop the wrapper method from WorkbenchManager. The processing code already did that. | |||||
| | * | | | Create a Workbench class and use it everywhere. | Elrond | 2011-06-13 | 3 | -45/+72 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Some references to Workbench.dir look ugly, I'm happy to hear suggestions there. | |||||
| * | | | | A super strict HTML cleaner method with mediocre tests. | Christopher Allan Webber | 2011-06-13 | 2 | -0/+46 | |
| | | | | | ||||||
| * | | | | Merge remote branch 'remotes/elrond/idea/simple_proc_media_clean' | Christopher Allan Webber | 2011-06-12 | 1 | -8/+10 | |
| |\ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | Conflicts: mediagoblin/process_media/__init__.py | |||||
| | * | | | Refactor filename generation in the public store | Elrond | 2011-06-08 | 1 | -8/+10 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Just a small refactoring of the filename setup in the public store. Very simple. | |||||
| * | | | | ensure color mode compatibility when making image thumbnails | cfdv | 2011-06-12 | 1 | -0/+3 | |
| | | | | | ||||||
| * | | | | First import of mg_globals as mgg, partly because I just wanted it to | Christopher Allan Webber | 2011-06-12 | 1 | -11/+11 | |
| | | | | | | | | | | | | | | | | | | | | be clear that it's okay to do by doing it *somewhere* :) | |||||
| * | | | | mediagoblin.globals->mediagoblin.mg_globals | Christopher Allan Webber | 2011-06-12 | 14 | -35/+32 | |
| | | | | | ||||||
| * | | | | Merge remote branch 'remotes/elrond/idea/clean_celery_setup' | Christopher Allan Webber | 2011-06-12 | 2 | -6/+5 | |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/celery_setup/from_celery.py | |||||
| | * | | | | celery_setup: drop param to setup_self and simplify OUR_MODULENAME | Elrond | 2011-06-10 | 2 | -7/+5 | |
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setup_self used to look like this: setup_self(setup_globals_func=setup_globals) The function isn't called with any param, so drop it. Rewrite function as needed. The module var OUR_MODULENAME just has the module's name in it. This is available as __name__ anyway, so use this to initialize the var. | |||||
| * | | | | Merge remote branch 'remotes/elrond/idea/tests_kill_db' | Christopher Allan Webber | 2011-06-12 | 1 | -0/+11 | |
| |\ \ \ \ | | |_|_|/ | |/| | | | ||||||
| | * | | | Tests: Kill the whole testing database after all tests | Elrond | 2011-06-10 | 1 | -0/+11 | |
| | |/ / | | | | | | | | | | | | | | | | | | | | | nose allows setup and teardown functions at the package level. So use this to drop the complete database after all tests have finished. | |||||
| * | | | possibly_localize_file->localized_file... a bit less terribly long. | Christopher Allan Webber | 2011-06-11 | 3 | -13/+13 | |
| | | | | ||||||
| * | | | Switch process_media over to using the workbench. | Christopher Allan Webber | 2011-06-11 | 1 | -2/+11 | |
| | | | | ||||||
| * | | | Don't bother returning whether or not we copied it or not, we can | Christopher Allan Webber | 2011-06-11 | 2 | -17/+11 | |
| | | | | | | | | | | | | | | | | figure that out by looking to see whether our storage is local or not. | |||||
| * | | | Moving workbench out of process_media | Christopher Allan Webber | 2011-06-11 | 4 | -5/+3 | |
| | | | | ||||||
| * | | | Merge branch 'master' into workbench | Christopher Allan Webber | 2011-06-11 | 1 | -9/+10 | |
| |\ \ \ | ||||||
| | * | | | Import mediagoblin.globals as mg_globals so we can be sure things are | Christopher Allan Webber | 2011-06-11 | 1 | -9/+10 | |
| | |/ / | | | | | | | | | | | | | set up in the right order. | |||||
| * | | | Have the application set up instances of the WorkbenchManager. | Christopher Allan Webber | 2011-06-11 | 2 | -5/+16 | |
| | | | | ||||||
| * | | | test WorkbenchManager.possibly_localize_file() | Christopher Allan Webber | 2011-06-11 | 1 | -0/+43 | |
| | | | | ||||||
| * | | | We don't need this extra '.' in making the filename | Christopher Allan Webber | 2011-06-11 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Added a FakeRemoteStorage, for testing purposes | Christopher Allan Webber | 2011-06-11 | 1 | -2/+10 | |
| | | | | ||||||
| * | | | Make sure workbench won't kill directories out of scope. | Christopher Allan Webber | 2011-06-11 | 1 | -6/+16 | |
| | | | | ||||||
| * | | | Tests for creating/destroying workbenches | Christopher Allan Webber | 2011-06-11 | 1 | -0/+44 | |
| | | | | ||||||
| * | | | Wrote functions and documentation for all the WorkbenchManager | Christopher Allan Webber | 2011-06-11 | 1 | -8/+75 | |
| | | | | | | | | | | | | | | | | functions but haven't actually tested them yet. :) | |||||
| * | | | Base structure of workbench manager | Christopher Allan Webber | 2011-06-11 | 1 | -0/+73 | |
| | | | | ||||||
| * | | | Adding a copy_locally() method to the StorageInterface and giving it a test. | Christopher Allan Webber | 2011-06-11 | 2 | -0/+37 | |
| | | | |