[views] Fix overriding with cw3.25
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 17 Oct 2017 18:10:40 +0200
changeset 2783 0a2798f4f38f
parent 2782 5f1d7de7a9cb
child 2784 56ecfa566925
[views] Fix overriding with cw3.25 overriden function now returns a generator, we've to turn it to a list.
cubicweb_seda/views/simplified.py
--- a/cubicweb_seda/views/simplified.py	Tue Oct 17 18:09:30 2017 +0200
+++ b/cubicweb_seda/views/simplified.py	Tue Oct 17 18:10:40 2017 +0200
@@ -55,7 +55,7 @@
 
     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