[entities] Make ICKANPublishable adapter abstract
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 24 Nov 2014 15:48:12 +0100
changeset 18 0becfca6d171
parent 17 7c8af9dda7d9
child 19 d88cc9dbf6d6
[entities] Make ICKANPublishable adapter abstract Better rely on explicit instanciation and selection in client code.
entities.py
--- a/entities.py	Mon Nov 24 10:37:53 2014 +0100
+++ b/entities.py	Mon Nov 24 15:48:12 2014 +0100
@@ -42,6 +42,7 @@
 class CKANPublishableAdapter(EntityAdapter):
     """Adapter for entity that can be mapped to a CKAN dataset"""
     __regid__ = 'ICKANPublishable'
+    __abstract__ = True
     __select__ = (EntityAdapter.__select__ &
                   relation_possible('ckan_dataset_id', role='subject'))