author Denis Laxalde <>
Wed, 19 Nov 2014 14:45:39 +0100
changeset 14 50e1c7ac3e59
parent 7 6e1d41bacacf
child 22 fbe86e879e7a
permissions -rw-r--r--
[hooks] Turn the error about incomplete configuration into a warning To avoid cluttering the console.

This cube enables data publishing to a CKAN opendata portal.


The cube essentially provides an adapter ``ICKANPublishable`` which relies on
a ``ckan_dataset_id`` attribute on the adapted entity. As its name suggests,
the latter is used to relate a CubicWeb entity to a CKAN dataset (the
fundamental entity type in CKAN data model). Most of the synchronization to
the CKAN instance is done in hooks so usually one would set tight security
rules for this attribute, e.g.:

    class MyEntity(EntityType):
        ckan_dataset_id = String(
            description=_('identifier of corresponding CKAN dataset'),
            __permissions__={'read': ('managers', 'users', 'guests'),
                             'add': (),
                             'update': ()},