[PATCH 1 of 3 saem] [views] Don't hide the AddRelated action

Sylvain Thenault sylvain.thenault at logilab.fr
Thu Apr 13 15:27:07 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1492089831 -7200
#      Thu Apr 13 15:23:51 2017 +0200
# Node ID fdc29267c3ef16277026994cf087e8b34f1cf0db
# Parent  55db28377169afbfb6155eea138dcab1a1bf4468
[views] Don't hide the AddRelated action

This one is used to fill the 'add' submenu which is still necessary for e.g.
user edition.

diff --git a/cubicweb_saem_ref/views/__init__.py b/cubicweb_saem_ref/views/__init__.py
--- a/cubicweb_saem_ref/views/__init__.py
+++ b/cubicweb_saem_ref/views/__init__.py
@@ -451,11 +451,10 @@ def registration_callback(vreg):
     vreg.unregister(actions.CancelSelectAction)
     vreg.unregister(actions.ViewAction)
     vreg.unregister(actions.MultipleEditAction)
     vreg.unregister(actions.CopyAction)
     vreg.unregister(actions.AddNewAction)
-    vreg.unregister(actions.AddRelatedActions)
     vreg.unregister(actions.ViewSameCWEType)
     vreg.unregister(actions.UserPreferencesAction)
     vreg.unregister(actions.ManageAction)
     vreg.unregister(actions.PoweredByAction)
     vreg.unregister(cwuser.UserPreferencesEntityAction)


More information about the saem-devel mailing list