[PATCH seda] [views] BDO of simplified profile should propose edition of format_id

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Oct 11 14:48:22 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1507714483 -7200
#      Wed Oct 11 11:34:43 2017 +0200
# Node ID 79239b803783a39288238e7239522f784f4155da
# Parent  80c39123d0299d4f0e1d2718ea08c479a204f082
# Available At https://hg.logilab.org/review/cubes/seda
#              hg pull https://hg.logilab.org/review/cubes/seda -r 79239b803783
[views] BDO of simplified profile should propose edition of format_id

not  format_litteral

diff --git a/cubicweb_seda/views/dataobject.py b/cubicweb_seda/views/dataobject.py
--- a/cubicweb_seda/views/dataobject.py
+++ b/cubicweb_seda/views/dataobject.py
@@ -194,11 +194,11 @@ class BinaryDataObjectFormatIdentificati
 class SimplifiedBinaryDataObjectFormatIdentificationTab(BinaryDataObjectFormatIdentificationTab):
 
     __select__ = BinaryDataObjectFormatIdentificationTab.__select__ & simplified_profile()
 
     rsection, display_ctrl = rtags_from_xsd_element('SEDABinaryDataObject', 'FormatIdentification')
-    rsection.tag_object_of(('*', 'seda_format_id_from', 'SEDABinaryDataObject'), 'hidden')
+    rsection.tag_object_of(('*', 'seda_format_litteral', 'SEDABinaryDataObject'), 'hidden')
 
 
 class BinaryDataObjectFileInfoTab(viewlib.PrimaryTabWithoutBoxes):
     """Display file information of a binary data object"""
 


More information about the saem-devel mailing list