[PATCH saem_ref] [views] Customize title of SEDAArchiveTransferCloneAction

Sylvain Thenault sylvain.thenault at logilab.fr
Fri Mar 10 09:59:29 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1489136022 -3600
#      Fri Mar 10 09:53:42 2017 +0100
# Node ID 97381038a06aa8dc68109979a95a291a3bcdf740
# Parent  9c7b21a9424a8272ea54203bb658b66717329da1
[views] Customize title of SEDAArchiveTransferCloneAction

accidentaly dropped by 57c663b9798a

diff --git a/cubicweb_saem_ref/views/clone.py b/cubicweb_saem_ref/views/clone.py
--- a/cubicweb_saem_ref/views/clone.py
+++ b/cubicweb_saem_ref/views/clone.py
@@ -37,10 +37,11 @@ simplified_pvs.tag_object_of(('*', 'new_
 
 # Only show clone action for SEDA profiles if no clone has been created yet
 
 SEDAArchiveTransferCloneAction.__select__ &= (~has_related_entities('new_version_of', 'object')
                                               & is_in_state('published'))
+SEDAArchiveTransferCloneAction.title = _('new version')
 
 
 def workflow_state(entity):
     """Return the state of the given entity."""
     return entity.cw_adapt_to('IWorkflowable').state


More information about the saem-devel mailing list