[ckan-dev] Modify Metadata with 2 different values

SUPPORT OPENCITIES, Bústia Compartida support.opencities at upf.edu
Tue Jul 9 16:38:32 UTC 2013


Hi, I am improving the plugin that i was doing the last month, but i can't
modify the plugin taking 2 different "fields" of the metadata.

For example:

    def _changeurl(self,schema):
nombre = schema['title']

schema['resources']['url'].append(nombre)
return schema

    def create_package_schema(self):
        schema = super(ExampleIDatasetFormPlugin,
self).create_package_schema()
        schema = self._modify_package_schema(schema)
schema = self._changeurl(schema)
        return schema

With this i can only modify the resources url at the same time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130709/67558b36/attachment.html>


More information about the ckan-dev mailing list