[views/deleteconf] remove action ppty (useless & clashes with form attr, replace buggy non_final_entity selector with implements workaround stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 19 Feb 2010 15:12:46 +0100
branchstable
changeset 4649 9a6db1eb12ff
parent 4648 cf3b35545602
child 4650 965395d821bc
child 4654 717310b3d576
[views/deleteconf] remove action ppty (useless & clashes with form attr, replace buggy non_final_entity selector with implements workaround
web/views/editforms.py
--- a/web/views/editforms.py	Fri Feb 19 12:53:35 2010 +0100
+++ b/web/views/editforms.py	Fri Feb 19 15:12:46 2010 +0100
@@ -17,7 +17,7 @@
 from logilab.common.decorators import cached
 
 from cubicweb.selectors import (match_kwargs, one_line_rset, non_final_entity,
-                                specified_etype_implements, yes)
+                                specified_etype_implements, implements, yes)
 from cubicweb.view import EntityView
 from cubicweb import tags
 from cubicweb.web import uicfg, stdmsgs, eid_param, \
@@ -30,15 +30,13 @@
 
 class DeleteConfForm(forms.CompositeForm):
     __regid__ = 'deleteconf'
-    __select__ = non_final_entity()
+    # XXX non_final_entity does not implement eclass_selector
+    __select__ = implements('Any')
 
     domid = 'deleteconf'
     copy_nav_params = True
     form_buttons = [fw.Button(stdmsgs.BUTTON_DELETE, cwaction='delete'),
                     fw.Button(stdmsgs.BUTTON_CANCEL, cwaction='cancel')]
-    @property
-    def action(self):
-        return self._cw.build_url('edit')
 
     def __init__(self, *args, **kwargs):
         super(DeleteConfForm, self).__init__(*args, **kwargs)