[PATCH saem_ref] [views] Customize title of SEDAArchiveTransferCloneAction

Sylvain Thénault sylvain.thenault at logilab.fr
Fri Mar 10 15:51:19 CET 2017



Le 10/03/2017 à 15:05, Denis Laxalde a écrit :
> 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?

though it is there, even a public cset.

>
>> 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.
>
will do

-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the saem-devel mailing list