[ckan-changes] commit/ckanext-pdeu: amercader: Minor changes in the Catalan government harvester
Bitbucket
commits-noreply at bitbucket.org
Tue Jun 14 18:49:41 UTC 2011
1 new changeset in ckanext-pdeu:
http://bitbucket.org/okfn/ckanext-pdeu/changeset/c5a1254b2fd9/
changeset: c5a1254b2fd9
user: amercader
date: 2011-06-14 20:49:34
summary: Minor changes in the Catalan government harvester
affected #: 1 file (71 bytes)
--- a/ckanext/pdeu/harvesters/opendata_cat.py Tue Jun 14 15:41:10 2011 +0100
+++ b/ckanext/pdeu/harvesters/opendata_cat.py Tue Jun 14 19:49:34 2011 +0100
@@ -81,9 +81,11 @@
except Exception, e:
log.exception(e)
self._save_object_error('%r'%e,harvest_object,'Import')
+ return None
package_dict['id'] = harvest_object.guid
- package_dict['name'] = self._gen_new_name(package_dict['title'])
+ title = package_dict['title'] or package_dict['name']
+ package_dict['name'] = self._gen_new_name(title)
# Set the modification date
if 'date_modified' in package_dict['extras']:
Repository URL: https://bitbucket.org/okfn/ckanext-pdeu/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list