[ckan-dev] Conditional validation on custom Datasets
Ian Ward
ian at excess.org
Wed Mar 5 17:18:43 UTC 2014
On Wed, Mar 5, 2014 at 11:52 AM, Richard Claydon <richard at icdw.co.uk> wrote:
>
> def feeder_resource_create(context, data_dict):
> import ckan.logic as logic
> context['schema'] = FeederForm().create_package_schema()
> return logic.action.create.resource_create(context, data_dict)
Hi Richard,
Try "from ckan.logic.action.create import resource_create as
original_resource_create" at the module level, then use
original_resource_create in your function.
Ian
More information about the ckan-dev
mailing list