[PATCH 4 of 4 saem_ref V2] [seda] Don't show simplified profile switch on cloning a SEDAArchiveTransfer

Sylvain Thenault sylvain.thenault at logilab.fr
Tue Apr 11 10:22:03 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1491836087 -7200
#      Mon Apr 10 16:54:47 2017 +0200
# Node ID 6e91d9274612f05287a7e38ae5b3c60394b48fec
# Parent  3cedf1f93c03be738dcd3d7c91f6b7833b83b866
[seda] Don't show simplified profile switch on cloning a SEDAArchiveTransfer

it shouldn't ever appear in saem ref. This should become unnecessary once seda
will use 3.25 'derived' rtags.

diff --git a/cubicweb_saem_ref/views/seda.py b/cubicweb_saem_ref/views/seda.py
--- a/cubicweb_saem_ref/views/seda.py
+++ b/cubicweb_saem_ref/views/seda.py
@@ -17,16 +17,18 @@
 
 from cubicweb.web.views import uicfg
 
 from cubicweb_seda.views import archivetransfer
 from cubicweb_seda.views.simplified import simplified_afs, simplified_pvs
+from cubicweb_seda.views.archiveunit import copy_afs
 
 
 # primary view configuration #######################################################################
 
 afs = uicfg.autoform_section
 afs.tag_attribute(('SEDAArchiveTransfer', 'simplified_profile'), 'main', 'hidden')
+copy_afs.tag_attribute(('SEDAArchiveTransfer', 'simplified_profile'), 'main', 'hidden')
 
 simplified_pvs.tag_attribute(('SEDAArchiveTransfer', 'ark'), 'attributes')
 # we want only simplified_profile, so its default is set to true and it only has to be hidden
 simplified_afs.tag_attribute(('SEDAArchiveTransfer', 'simplified_profile'), 'main', 'hidden')
 # also hide transferring and archival agency


More information about the saem-devel mailing list