Replace confusing <unauthorizedW by... nothing
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 25 Jan 2017 21:36:58 +0100
changeset 2322 9cd918201ab8
parent 2318 acfd23149a9e
child 2323 b24ba51c3c18
Replace confusing <unauthorizedW by... nothing Related to #16684053
i18n/en.po
i18n/fr.po
views/__init__.py
views/archivetransfer.py
views/archiveunit.py
views/dataobject.py
views/uicfg.py
xsd2uicfg.py
--- a/i18n/en.po	Fri Jan 20 17:40:30 2017 +0100
+++ b/i18n/en.po	Wed Jan 25 21:36:58 2017 +0100
@@ -63,9 +63,6 @@
 msgid "<no value specified>"
 msgstr ""
 
-msgid "<unauthorized>"
-msgstr ""
-
 msgid "Alternative"
 msgstr ""
 
--- a/i18n/fr.po	Fri Jan 20 17:40:30 2017 +0100
+++ b/i18n/fr.po	Wed Jan 25 21:36:58 2017 +0100
@@ -63,9 +63,6 @@
 msgid "<no value specified>"
 msgstr "<valeur libre>"
 
-msgid "<unauthorized>"
-msgstr "<non autorisé>"
-
 msgid "Alternative"
 msgstr "Choix"
 
--- a/views/__init__.py	Fri Jan 20 17:40:30 2017 +0100
+++ b/views/__init__.py	Wed Jan 25 21:36:58 2017 +0100
@@ -18,7 +18,7 @@
 
 from yams import BASE_TYPES
 
-from cubicweb import tags, neg_role, _
+from cubicweb import tags, neg_role
 from cubicweb.utils import UStringIO
 from cubicweb.web import formfields as ff
 # XXX alias to avoid side effect: uicfg will become our uicfg submodule. Not necessary with 3.23?
@@ -96,7 +96,7 @@
                 vid = 'seda.reledit.complexlink'
             rec.tag_object_of(('*', rtype, '*'),
                               {'rvid': vid,
-                               'novalue_label': _('<unauthorized>')})
+                               'novalue_label': ' '})
         rsection.tag_relation(relation, 'attributes')
         ordered.append((rtype, role))
     display_ctrl = cwuicfg.DisplayCtrlRelationTags(__module__=__name__)
--- a/views/archivetransfer.py	Fri Jan 20 17:40:30 2017 +0100
+++ b/views/archivetransfer.py	Wed Jan 25 21:36:58 2017 +0100
@@ -66,7 +66,7 @@
             simplified_section = 'hidden'
         rec.tag_object_of(('*', rtype, 'SEDAArchiveTransfer'),
                           {'rvid': 'seda.reledit.text',
-                           'novalue_label': _('<unauthorized>')})
+                           'novalue_label': ' '})
         # hide extra-fields from main form, as their appearance depends on the simplified_profile
         # switch
         afs.tag_object_of(('*', rtype, 'SEDAArchiveTransfer'), 'main', 'hidden')
--- a/views/archiveunit.py	Fri Jan 20 17:40:30 2017 +0100
+++ b/views/archiveunit.py	Wed Jan 25 21:36:58 2017 +0100
@@ -284,7 +284,7 @@
     'attributes')
 rec.tag_subject_of(('SEDAArchiveUnit', 'seda_alt_archive_unit_archive_unit_ref_id', '*'),
                    {'rvid': 'seda.reledit.simplelink',
-                    'novalue_label': _('<unauthorized>')})
+                    'novalue_label': ' '})
 
 
 class RefArchiveUnitSimpleLinkToEntityAttributeView(EntityView):
@@ -899,7 +899,7 @@
     if rtype == 'seda_description_level':
         novalue_label = _('<no value specified>')
     else:
-        novalue_label = _('<unauthorized>')
+        novalue_label = ' '
     vid = 'seda.reledit.complexlink' if 'language' in rtype else 'seda.reledit.text'
     if role == 'subject':
         rec.tag_subject_of((CONTENT_ETYPE, rtype, '*'),
--- a/views/dataobject.py	Fri Jan 20 17:40:30 2017 +0100
+++ b/views/dataobject.py	Wed Jan 25 21:36:58 2017 +0100
@@ -126,15 +126,15 @@
     pvs.tag_object_of(('*', rtype, '*'), 'attributes')
     rec.tag_object_of(('*', rtype, '*'),
                       {'rvid': 'seda.reledit.complexlink',
-                       'novalue_label': _('<unauthorized>')})
+                       'novalue_label': ' '})
 
 rec.tag_subject_of(('SEDABinaryDataObject', 'seda_alt_binary_data_object_attachment', '*'),
                    {'rvid': 'seda.reledit.alternative',
-                    'novalue_label': _('<unauthorized>')})
+                    'novalue_label': ' '})
 
 rec.tag_object_of(('*', 'seda_compressed', '*'),
                   {'rvid': 'seda.reledit.text',
-                   'novalue_label': _('<unauthorized>')})
+                   'novalue_label': ' '})
 
 
 def uri_cardinality_vocabulary(form, field):
--- a/views/uicfg.py	Fri Jan 20 17:40:30 2017 +0100
+++ b/views/uicfg.py	Wed Jan 25 21:36:58 2017 +0100
@@ -15,7 +15,6 @@
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 """THIS FILE IS GENERATED FROM SEDA 2.0 XSD FILES, DO NOT EDIT"""
 
-from cubicweb import _
 from cubicweb.web import formwidgets as fw
 from cubicweb.web.views import uicfg
 
@@ -1101,191 +1100,191 @@
 
 
 rec = uicfg.reledit_ctrl
-rec.tag_subject_of(('*', 'comment', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_comment', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_signature', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'archival_agreement', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_archival_agreement', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_transfer_request_reply_identifier', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_archival_agency', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_transferring_agency', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_reply_code_list_version', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_message_digest_algorithm_code_list_version', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_mime_type_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_mime_type_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_encoding_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_encoding_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_file_format_code_list_version', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_compression_algorithm_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_compression_algorithm_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_data_object_version_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_data_object_version_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_storage_rule_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_storage_rule_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_appraisal_rule_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_appraisal_rule_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_access_rule_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_access_rule_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_dissemination_rule_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_dissemination_rule_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_reuse_rule_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_reuse_rule_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_classification_rule_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_classification_rule_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_relationship_code_list_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_relationship_code_list_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'filename', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_data_object_version_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_data_object_version_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_alt_binary_data_object_attachment', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'compressed', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_compressed', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'service_level', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_service_level', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_storage_rule', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_appraisal_rule', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_access_rule', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_dissemination_rule', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_reuse_rule', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'classification_owner', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_classification_rule', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'need_authorization', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_need_authorization', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_alt_archive_unit_archive_unit_ref_id', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_type_relationship', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_target', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_attachment', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_uri', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_algorithm', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'format_litteral', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_format_litteral', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_mime_type_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_mime_type_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_format_id_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_format_id_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_encoding_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_encoding_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'creating_application_name', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_creating_application_name', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'creating_application_version', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_creating_application_version', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_date_created_by_application', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'creating_os', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_creating_os', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'creating_os_version', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_creating_os_version', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_last_modified', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_width', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_height', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_depth', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_shape', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_diameter', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_length', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_thickness', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_weight', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_number_of_page', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_archive_unit_ref_id_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_archive_unit_ref_id_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_seq_alt_archive_unit_archive_unit_ref_id_management', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_alt_storage_rule_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_final_action', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_alt_appraisal_rule_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_alt_access_rule_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_alt_dissemination_rule_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_alt_reuse_rule_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_alt_classification_rule_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_classification_level', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_classification_reassessing_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'need_reassessing_authorization', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_need_reassessing_authorization', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_unit', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'restriction_rule_id_ref', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_restriction_rule_id_ref', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'restriction_value', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_restriction_value', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_restriction_end_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_description_level', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'title', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_title', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'file_plan_position', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_file_plan_position', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_system_id', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_originating_system_id', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'archival_agency_archive_unit_identifier', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_archival_agency_archive_unit_identifier', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'originating_agency_archive_unit_identifier', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_originating_agency_archive_unit_identifier', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'transferring_agency_archive_unit_identifier', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_transferring_agency_archive_unit_identifier', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'description', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_description', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_type_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_type_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'document_type', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_document_type', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_language_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_language_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_description_language_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_description_language_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'status', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_status', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'version', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_version', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'tag', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'keyword_content', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_originating_agency_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_originating_agency_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_submission_agency_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_submission_agency_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_authorized_agent_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_authorized_agent_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_writer_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_addressee_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_recipient_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'source', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_source', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_created_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_transacted_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_acquired_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_sent_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_received_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_registered_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_start_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_end_date', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_data_object_reference_id', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_rule', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'prevent_inheritance', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_ref_non_rule_id_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'custodial_history_item', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_custodial_history_file', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_keyword_reference_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_keyword_reference_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_keyword_type_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_keyword_type_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'spatial', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'temporal', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'juridictional', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_event_identifier', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_event_type_from', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_event_type_to', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_event_detail', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_gps_version_id', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_gps_altitude', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_gps_altitude_ref', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_gps_latitude', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_gps_latitude_ref', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_gps_longitude', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_gps_longitude_ref', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_gps_date_stamp', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_when', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_subject_of(('*', 'seda_alt_is_version_of_archive_unit_ref_id', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_alt_replaces_archive_unit_ref_id', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_alt_requires_archive_unit_ref_id', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_alt_is_part_of_archive_unit_ref_id', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_subject_of(('*', 'seda_alt_references_archive_unit_ref_id', '*'), {'novalue_label': _('<no value specified>')})
-rec.tag_object_of(('*', 'seda_repository_archive_unit_pid', '*'), {'novalue_label': _('<unauthorized>')})
-rec.tag_object_of(('*', 'seda_repository_object_pid', '*'), {'novalue_label': _('<unauthorized>')})
+rec.tag_subject_of(('*', 'comment', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_comment', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_signature', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'archival_agreement', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_archival_agreement', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_transfer_request_reply_identifier', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_archival_agency', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_transferring_agency', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_reply_code_list_version', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_message_digest_algorithm_code_list_version', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_mime_type_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_mime_type_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_encoding_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_encoding_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_file_format_code_list_version', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_compression_algorithm_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_compression_algorithm_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_data_object_version_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_data_object_version_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_storage_rule_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_storage_rule_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_appraisal_rule_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_appraisal_rule_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_access_rule_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_access_rule_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_dissemination_rule_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_dissemination_rule_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_reuse_rule_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_reuse_rule_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_classification_rule_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_classification_rule_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_relationship_code_list_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_relationship_code_list_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'filename', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_data_object_version_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_data_object_version_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_alt_binary_data_object_attachment', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'compressed', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_compressed', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'service_level', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_service_level', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_storage_rule', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_appraisal_rule', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_access_rule', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_dissemination_rule', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_reuse_rule', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'classification_owner', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_classification_rule', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'need_authorization', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_need_authorization', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_alt_archive_unit_archive_unit_ref_id', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'seda_type_relationship', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_target', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_attachment', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_uri', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_algorithm', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'format_litteral', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_format_litteral', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_mime_type_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_mime_type_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_format_id_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_format_id_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_encoding_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_encoding_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'creating_application_name', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_creating_application_name', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'creating_application_version', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_creating_application_version', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_date_created_by_application', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'creating_os', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_creating_os', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'creating_os_version', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_creating_os_version', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_last_modified', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_width', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_height', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_depth', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_shape', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_diameter', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_length', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_thickness', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_weight', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_number_of_page', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_archive_unit_ref_id_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_archive_unit_ref_id_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_seq_alt_archive_unit_archive_unit_ref_id_management', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_alt_storage_rule_prevent_inheritance', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_final_action', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_alt_appraisal_rule_prevent_inheritance', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_alt_access_rule_prevent_inheritance', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_alt_dissemination_rule_prevent_inheritance', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_alt_reuse_rule_prevent_inheritance', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_alt_classification_rule_prevent_inheritance', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_classification_level', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_classification_reassessing_date', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'need_reassessing_authorization', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_need_reassessing_authorization', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_unit', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'restriction_rule_id_ref', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_restriction_rule_id_ref', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'restriction_value', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_restriction_value', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_restriction_end_date', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_description_level', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'title', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_title', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'file_plan_position', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_file_plan_position', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_system_id', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_originating_system_id', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'archival_agency_archive_unit_identifier', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_archival_agency_archive_unit_identifier', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'originating_agency_archive_unit_identifier', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_originating_agency_archive_unit_identifier', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'transferring_agency_archive_unit_identifier', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_transferring_agency_archive_unit_identifier', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'description', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_description', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_type_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_type_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'document_type', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_document_type', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_language_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_language_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_description_language_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_description_language_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'status', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_status', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'version', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_version', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'tag', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'keyword_content', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_originating_agency_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_originating_agency_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_submission_agency_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_submission_agency_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_authorized_agent_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_authorized_agent_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_writer_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_addressee_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_recipient_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'source', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_source', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_created_date', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_transacted_date', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_acquired_date', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_sent_date', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_received_date', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_registered_date', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_start_date', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_end_date', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_data_object_reference_id', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'seda_rule', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'prevent_inheritance', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_prevent_inheritance', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_ref_non_rule_id_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'custodial_history_item', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_custodial_history_file', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_keyword_reference_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_keyword_reference_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_keyword_type_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_keyword_type_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_subject_of(('*', 'spatial', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'temporal', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'juridictional', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_event_identifier', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_event_type_from', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_event_type_to', '*'), {'novalue_label': 'no value specified'})
+rec.tag_object_of(('*', 'seda_event_detail', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_gps_version_id', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_gps_altitude', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_gps_altitude_ref', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_gps_latitude', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_gps_latitude_ref', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_gps_longitude', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_gps_longitude_ref', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_gps_date_stamp', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_when', '*'), {'novalue_label': ' '})
+rec.tag_subject_of(('*', 'seda_alt_is_version_of_archive_unit_ref_id', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'seda_alt_replaces_archive_unit_ref_id', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'seda_alt_requires_archive_unit_ref_id', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'seda_alt_is_part_of_archive_unit_ref_id', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_subject_of(('*', 'seda_alt_references_archive_unit_ref_id', '*'), {'novalue_label': '<no value specified>'})
+rec.tag_object_of(('*', 'seda_repository_archive_unit_pid', '*'), {'novalue_label': ' '})
+rec.tag_object_of(('*', 'seda_repository_object_pid', '*'), {'novalue_label': ' '})
 pvds = uicfg.primaryview_display_ctrl
 affk.set_fields_order('SEDAArchiveTransfer', ['title', 'user_annotation'])
 pvds.set_fields_order('SEDAArchiveTransfer', ['title', 'user_annotation'])
--- a/xsd2uicfg.py	Fri Jan 20 17:40:30 2017 +0100
+++ b/xsd2uicfg.py	Wed Jan 25 21:36:58 2017 +0100
@@ -21,7 +21,7 @@
 
 from six import text_type
 
-from cubicweb import neg_role
+from cubicweb import neg_role, _
 
 from xsd import XSDM_MAPPING
 from xsd2yams import CodeGenerator
@@ -81,15 +81,14 @@
         'reledit_ctrl': {
             'shortname': 'rec',
             'subject': "rec.tag_subject_of(('*', '{rtype}', '*'), "
-            "{{'novalue_label': _('<{value}>')}})",
+            "{{'novalue_label': '{value}'}})",
             'object': "rec.tag_object_of(('*', '{rtype}', '*'), "
-            "{{'novalue_label': _('<{value}>')}})",
+            "{{'novalue_label': '{value}'}})",
         },
     }
 
     def _generate(self, mapping, stream):
         self._processed = set()
-        stream.write('from cubicweb import _\n')
         stream.write('from cubicweb.web import formwidgets as fw\n')
         stream.write('from cubicweb.web.views import uicfg\n\n')
         # indexview_etype_section configuration
@@ -168,7 +167,7 @@
                 continue
             if ('rec', rtype) not in self._processed:
                 self._processed.add(('rec', rtype))
-                yield rtype, 'subject', 'no value specified'
+                yield rtype, 'subject', _('<no value specified>')
 
     def reledit_ctrl_for_rdef_mapping(self, mapping):
         if ('rec', mapping.rtype) in self._processed:
@@ -179,9 +178,9 @@
         else:
             card = mapping.card[mapping.composite == 'object']
             if card == '1':
-                yield mapping.rtype, mapping.composite, 'no value specified'
+                yield mapping.rtype, mapping.composite, _('<no value specified>')
             elif card == '?':
-                yield mapping.rtype, mapping.composite, 'unauthorized'
+                yield mapping.rtype, mapping.composite, ' '
 
     def actionbox_appearsin_addmenu_for_rdef_mapping(self, mapping):
         if ('abaa', mapping.rtype) in self._processed: