harvester-d4science/ckanext/harvest
Sean Hammond 85a013f2c9 [#42] Remove non-string extras from packages
Remove extras whose values are not strings (e.g. dicts, lists..) from
packages before attempting to create or update the packages on the
target site.

In CKAN 1 it was possible for the values of extras to be other types,
but in CKAN 2 they must be strings, so when harvesting from a CKAN 1 site
into a CKAN 2 site SQLAlchemy would crash when trying to create packages
with non-string extras.

The fix in this commit is to simply remove any non-string extras from
the harvested package. (Alternatively, we could try to convert them to a
string using JSON.)

Fixes #42.
2013-05-31 15:43:42 +02:00
..
commands Allow defining segments of harvest objects to import 2012-08-02 18:41:59 +01:00
controllers Fix the harvest object show call 2012-08-09 13:38:17 +01:00
harvesters [#42] Remove non-string extras from packages 2013-05-31 15:43:42 +02:00
logic Strip spaces from url when creating or updating a source 2012-08-17 12:24:41 +01:00
model Do not use repo.are_tables_created 2012-08-09 11:06:05 +01:00
public/ckanext/harvest [ui] Fix style for CKAN 1.7 2012-05-09 16:03:03 +01:00
templates Status can have links in it now. 2012-07-23 16:15:11 +01:00
tests [tests,auth] Add tests for the auth profiles 2012-03-08 16:14:44 +00:00
__init__.py Moving the extension points code to package as a .deb file 2011-03-28 15:52:43 +01:00
interfaces.py Add a new info method to the harvester interface so implementations can provide details. Use this to build the WUI form 2011-05-13 18:39:36 +01:00
plugin.py Add copious logging to record what happens in harvesting. 2012-06-08 17:09:22 +01:00
queue.py Add copious logging to record what happens in harvesting. 2012-06-08 17:09:22 +01:00