mytardis/mytardis — pull request #233 by crawley (2013-04-11 05:15:53+00:00)
Title: Added a 'runfilters' django command

The command is pretty simple minded. You can:
* use the --list option to list available filters (in POST_SAVE_SETTINGS)
* list one or more filters by 'id'
* use --all to run all available filters
* use --dryRun which doesn't commit database changes made by the filter or filters

Currently, we just run the filter, and rely on it to do "the appropriate thing" if it is run a second time. The filters I've looked at handle this by setting a 'flag' parameter in the parameters set to determine if they have run before (successfully). Ideally we'd like to
be able to force filters to replace parameters ... but that would require support in each filter ... or a filter base-class.

Anyway. This command is useful in its current form.