okfn/ckan — pull request #432 by seanh (2013-02-20 17:04:49+00:00)
Title: 431 use db to form package schema by default

@tobes I think you might want to review this one, it's related to the idatasetform-fixes branch that you merged recently.

Part of the reason why so many bugs that are only triggered when an IDatasetForm plugin is in use have slipped into CKAN in the 1.8 and 2.0 development branches, is that db_to_form_package_schema() is not used unless there's an active IDatasetForm plugin that uses it, and by default there isn't. So bugs with db_to_form_package_schema() don't get caught when we run the tests.

So this pr changes the DefaultDatasetForm plugin so that this validation will happen by default whenever we run ckan or the tests.

The other part of this is to add an example IDatasetForm plugin with tests, so we don't break the plugin interface itself without realising. But that's for another pull request.