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
cb011e37fd3c
Commit
812cc016
authored
Dec 18, 2014
by
Denis Laxalde
Browse files
[views] Do not select goto-ckan-dataset if there is no CKAN id
parent
5e3ef3b319cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
views.py
View file @
cb011e37
...
...
@@ -35,7 +35,7 @@ class GotoCKANDatasetComponent(component.EntityCtxComponent):
"""
__regid__
=
'ckanpublish.goto-ckan-dataset'
__select__
=
(
component
.
EntityCtxComponent
.
__select__
&
score_entity
(
lambda
x
:
has
attr
(
x
,
'ckan_dataset_id'
)))
score_entity
(
lambda
x
:
get
attr
(
x
,
'ckan_dataset_id'
,
False
)))
title
=
_
(
'CKAN dataset'
)
context
=
'incontext'
...
...
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