[PATCH 1 of 2 compound] [views] Fix typo in adapter name

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Mar 8 10:09:18 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1488904213 -3600
#      Tue Mar 07 17:30:13 2017 +0100
# Node ID ed8dc2bddcbe5235f84f2831f5e9acc752cf659f
# Parent  ef9e619a665ea57476ee1ab5242bf20a15674fa3
[views] Fix typo in adapter name

preventing NoWarningCopyFormView to be selected when expected.

diff --git a/cubicweb_compound/views.py b/cubicweb_compound/views.py
--- a/cubicweb_compound/views.py
+++ b/cubicweb_compound/views.py
@@ -58,11 +58,11 @@ actions.CopyAction.__select__ &= ~adapta
 
 class NoWarningCopyFormView(editforms.CopyFormView):
     """Display primary entity creation form initialized with values from another
     entity, but avoiding cubicweb default 'this is only a shallow copy' message.
     """
-    __select__ = editforms.CopyFormView.__select__ & adaptable('ICloneable')
+    __select__ = editforms.CopyFormView.__select__ & adaptable('IClonable')
 
     def render_form(self, entity):
         """fetch and render the form"""
         # make a copy of entity to avoid altering the entity in the
         # request's cache.


More information about the saem-devel mailing list