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
saem_ref
Commits
0ae30adf3ae9
Commit
46c2e8b9
authored
Nov 15, 2019
by
Arthur Lutz
Browse files
[gitlab-ci] autogenerated from tox
parent
15b69532c99a
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
0ae30adf
image
:
python:3.7
before_script
:
-
pip install tox
check-manifest
:
script
:
tox -e check-manifest
flake8
:
script
:
tox -e flake8
py3
:
image
:
r.ext.logilab.fr/jenkins/jnlp:buster
script
:
tox -e py3
MANIFEST.in
View file @
0ae30adf
...
...
@@ -12,3 +12,4 @@ include dev-requirements.txt tox.ini
prune debian
prune cubicweb-saem-ref.spec
include README.rst
exclude .gitlab-ci.yml
cubicweb_saem_ref/ccplugin.py
View file @
0ae30adf
...
...
@@ -129,7 +129,7 @@ _orig_run = skos.ImportSkosData.run
@
monkeypatch
(
skos
.
ImportSkosData
)
# noqa: F811
def
run
(
self
,
args
):
def
run
(
self
,
args
):
# noqa: F811
if
self
.
get
(
'format'
)
==
'lcsv'
:
scheme_ark
=
self
.
get
(
'scheme'
)
if
not
scheme_ark
:
...
...
cubicweb_saem_ref/views/__init__.py
View file @
0ae30adf
...
...
@@ -96,7 +96,7 @@ def add_relations_button(req, entity, msg, *relations_info, **extraurlparams):
"""Return an HTML dropdown button to add relations with `entity` as object"""
links
=
[
relation_link
(
req
,
entity
,
relation_info
,
**
extraurlparams
)
for
relation_info
in
relations_info
]
links
=
[
l
for
l
in
links
if
l
]
links
=
[
l
ink
for
l
ink
in
links
if
l
ink
]
if
links
:
# No links if user cannot add any relation.
return
dropdown_button
(
req
.
_
(
msg
),
links
)
...
...
test/test_views.py
View file @
0ae30adf
...
...
@@ -187,7 +187,7 @@ class FuncViewsTC(CubicWebTC):
agent
=
testutils
.
authority_record
(
cnx
,
u
'jim'
)
for
ark
,
expected_filename
in
(
(
u
""
,
"EAC_{0}.xml"
.
format
(
agent
.
eid
)),
(
u
"ZZZ/4242"
,
"EAC_ZZZ-4242.xml"
.
format
(
agent
.
eid
)
),
(
u
"ZZZ/4242"
,
"EAC_ZZZ-4242.xml"
),
):
agent
.
cw_set
(
ark
=
ark
)
view
=
self
.
vreg
[
'views'
].
select
(
'eac.export'
,
req
,
agent
.
as_rset
())
...
...
Write
Preview
Markdown
is supported
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