web/views/baseforms.py
branchtls-sprint
changeset 781 323656dd85a9
parent 772 97b2b582e7f7
child 824 a5e6acffde30
--- a/web/views/baseforms.py	Wed Feb 18 13:42:46 2009 +0100
+++ b/web/views/baseforms.py	Wed Feb 18 13:43:56 2009 +0100
@@ -15,9 +15,9 @@
 from logilab.common.decorators import cached
 
 from cubicweb.interfaces import IWorkflowable
-from cubicweb.selectors import (specified_etype_implements,
-                                match_kwargs, match_form_params, 
-                                one_line_rset, implements)
+from cubicweb.selectors import (specified_etype_implements, implements,
+                                match_kwargs, match_form_params, one_line_rset,
+                                non_final_entity)
 from cubicweb.utils import make_uid
 from cubicweb.view import EntityView
 from cubicweb.common.uilib import cut
@@ -217,7 +217,7 @@
     being connected
     """    
     id = 'edition'
-    __select__ = one_line_rset() & implements('Any')
+    __select__ = one_line_rset() & non_final_entity()
 
     title = _('edition')
     controller = 'edit'
@@ -676,8 +676,7 @@
 
 class InlineEntityEditionForm(InlineFormMixIn, EditionForm):
     id = 'inline-edition'
-    __select__ = (implements('Any')
-                  & match_kwargs('ptype', 'peid', 'rtype'))
+    __select__ = non_final_entity() & match_kwargs('ptype', 'peid', 'rtype')
     
     EDITION_BODY = u'''\
 <div onclick="restoreInlinedEntity('%(parenteid)s', '%(rtype)s', '%(eid)s')" id="div-%(parenteid)s-%(rtype)s-%(eid)s" class="inlinedform">