Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
ckanpublish
Commits
0becfca6d171
Commit
62b1bc43
authored
Nov 24, 2014
by
Denis Laxalde
Browse files
[entities] Make ICKANPublishable adapter abstract
Better rely on explicit instanciation and selection in client code.
parent
7c8af9dda7d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
entities.py
View file @
0becfca6
...
...
@@ -42,6 +42,7 @@ def slugify(value):
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'
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment