Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
0a2798f4f38f
Commit
6fdc8ac9
authored
Oct 17, 2017
by
Sylvain Thénault
Browse files
[views] Fix overriding with cw3.25
overriden function now returns a generator, we've to turn it to a list.
parent
5f1d7de7a9cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_seda/views/simplified.py
View file @
0a2798f4
...
...
@@ -55,7 +55,7 @@ class StartDateAutomaticEntityForm(autoform.AutomaticEntityForm):
def
editable_attributes
(
self
,
strict
=
False
):
"""return a list of (relation schema, role) to edit for the entity"""
attributes
=
super
(
StartDateAutomaticEntityForm
,
self
).
editable_attributes
(
strict
)
attributes
=
list
(
super
(
StartDateAutomaticEntityForm
,
self
).
editable_attributes
(
strict
)
)
if
self
.
linked_to
.
get
((
'seda_start_date'
,
'subject'
)):
eid
=
self
.
linked_to
[(
'seda_start_date'
,
'subject'
)][
0
]
start_date_of
=
self
.
_cw
.
entity_from_eid
(
eid
).
cw_etype
...
...
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