[PATCH saem_ref] [views] Customize title of SEDAArchiveTransferCloneAction

Denis Laxalde denis.laxalde at logilab.fr
Fri Mar 10 15:05:16 CET 2017


Sylvain Thenault a écrit :
> # 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

Can't find this in the repository?

> 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')
>
>

At some point, having a dedicated class and unregister the original one 
wouldn't hurt IMO.



More information about the saem-devel mailing list