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

Sylvain Thenault sylvain.thenault at logilab.fr
Mon Apr 10 17:51:58 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 e394c52e195e8528ed61bdd5f08c019413643a49
# Parent  1698394f6ad80892f7c8210b2458b1117c584101
[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