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
seda
Commits
e6b29b3e372b
Commit
3825f08a
authored
Aug 07, 2020
by
Laurent Peuch
Browse files
chore: please flake8
parent
41fd77fd768a
Pipeline
#11312
passed with stage
in 17 minutes and 30 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_seda/schema/__init__.py
View file @
e6b29b3e
...
...
@@ -210,7 +210,7 @@ def post_build_callback(schema):
rrql_exprs
=
[]
if
target_etype
==
'SEDAArchiveUnit'
:
rrql_exprs
.
append
(
'U has_update_permission {0}, NOT EXISTS({0} container C)'
.
format
(
var
,
var
))
.
format
(
var
))
rrql_exprs
.
append
(
'U has_update_permission C, {0} container C'
.
format
(
var
))
else
:
...
...
cubicweb_seda/views/viewlib.py
View file @
e6b29b3e
...
...
@@ -33,7 +33,7 @@ def add_links_from_rtype_roles(entity, rtype_roles, extraurlparams):
"""
links
=
[
add_subobject_link
(
entity
,
rtype
,
role
,
extraurlparams
,
klass
=
''
)
for
rtype
,
role
in
rtype_roles
]
return
[
l
for
l
in
links
if
l
]
return
[
l
ink
for
l
ink
in
links
if
l
ink
]
def
display_add_button
(
w
,
links
,
label
):
...
...
test/test_views.py
View file @
e6b29b3e
...
...
@@ -359,7 +359,7 @@ class SimplifiedFormsTC(CubicWebTC):
'InlineAddNewLinkView'
),
])
form
=
self
.
create_and_link_form
(
req
,
'SEDAClassificationRule'
.
format
(
rule_type
.
capitalize
())
,
req
,
'SEDAClassificationRule'
,
linkto
=
self
.
transfer_eid
)
self
.
assertInlinedFields
(
form
,
[
(
'seda_seq_classification_rule_rule'
,
'InlineAddNewLinkView'
),
...
...
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