ckan/ckan — pull request #2083 by wardi (2014-11-24 19:19:49+00:00)
Title: fallback IDatasetForm plugins should force type, no fallback should force type='dataset'

## Problem 1

IDatasetForm plugins may have an `is_fallback()` method that returns True. Such a plugin may also have a `package_types()` method that returns something *other* than `['dataset']`.

In this case `package_create` with no `type` value will use the one plugin to validate dataset fields, but the dataset will be saved with `type='dataset'` possibly causing a different plugin to be used for `package_update`.

## Problem 2

IDatasetForm plugins may have an `is_fallback()` method that returns False. Such a plugin may also have a `package_types()` method that returns `['dataset']`.

In this case `package_create` with no `type` will use the DefaultDatasetForm validate dataset fields, but the dataset will be saved with `type='dataset'` causing the plugin to be used for `package_update`.