Commit daff3414 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[ui] <not specified> become <no value specified> or <unauthorized>

for seda relationship that may appears in the 'attributes' section (ie
cardinality '1' or '?').
parent fa1e8cca7454
......@@ -18,6 +18,8 @@
from cubicweb.web import formwidgets as fw
from cubicweb.web.views import uicfg
_ = unicode
ives = uicfg.indexview_etype_section
ives['SEDAOriginatingAgency'] = 'subobject'
ives['SEDADataObjectVersion'] = 'subobject'
......@@ -1077,6 +1079,193 @@ pvs.tag_subject_of(('*', 'seda_classification_rule_code_list_version_from', '*')
pvs.tag_object_of(('*', 'seda_classification_rule_code_list_version_from', '*'), 'hidden')
pvs.tag_subject_of(('*', 'seda_relationship_code_list_version_from', '*'), 'hidden')
pvs.tag_object_of(('*', 'seda_relationship_code_list_version_from', '*'), 'hidden')
rec = uicfg.reledit_ctrl
rec.tag_subject_of(('*', 'comment', '*'), {'novalue_label': _('<no value specified>')})
rec.tag_object_of(('*', 'seda_signature', '*'), {'novalue_label': _('<unauthorized>')})
rec.tag_object_of(('*', 'seda_archival_agreement_from', '*'), {'novalue_label': _('<unauthorized>')})
rec.tag_subject_of(('*', 'seda_archival_agreement_to', '*'), {'novalue_label': _('<no value specified>')})
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(('*', 'id', '*'), {'novalue_label': _('<no value specified>')})
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_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(('*', '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(('*', 'seda_rule', '*'), {'novalue_label': _('<no value specified>')})
rec.tag_object_of(('*', 'seda_start_date', '*'), {'novalue_label': _('<unauthorized>')})
rec.tag_subject_of(('*', 'seda_alt_reuse_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_access_rule_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
rec.tag_subject_of(('*', 'seda_alt_appraisal_rule_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
rec.tag_subject_of(('*', 'seda_final_action', '*'), {'novalue_label': _('<no value specified>')})
rec.tag_subject_of(('*', 'seda_alt_storage_rule_prevent_inheritance', '*'), {'novalue_label': _('<unauthorized>')})
rec.tag_subject_of(('*', 'seda_alt_archive_unit_archive_unit_ref_id', '*'), {'novalue_label': _('<no value specified>')})
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_data_object_reference_id', '*'), {'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_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_subject_of(('*', 'type', '*'), {'novalue_label': _('<no value specified>')})
rec.tag_object_of(('*', 'seda_type', '*'), {'novalue_label': _('<unauthorized>')})
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_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_end_date', '*'), {'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_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_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(('*', 'seda_alt_is_part_of_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_replaces_archive_unit_ref_id', '*'), {'novalue_label': _('<no value specified>')})
rec.tag_subject_of(('*', 'seda_alt_is_version_of_archive_unit_ref_id', '*'), {'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_subject_of(('*', 'keyword_content', '*'), {'novalue_label': _('<no value specified>')})
rec.tag_subject_of(('*', 'seda_keyword_content', '*'), {'novalue_label': _('<no value specified>')})
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(('*', 'custodial_history_item', '*'), {'novalue_label': _('<no value specified>')})
rec.tag_object_of(('*', 'seda_custodial_history_file', '*'), {'novalue_label': _('<unauthorized>')})
rec.tag_object_of(('*', 'seda_when', '*'), {'novalue_label': _('<unauthorized>')})
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_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_subject_of(('*', 'seda_unit', '*'), {'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_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(('*', '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_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(('*', 'seda_algorithm', '*'), {'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_object_of(('*', 'seda_filename', '*'), {'novalue_label': _('<unauthorized>')})
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>')})
pvds = uicfg.primaryview_display_ctrl
affk.set_fields_order('SEDAArchiveTransfer', ['title', 'user_annotation'])
pvds.set_fields_order('SEDAArchiveTransfer', ['title', 'user_annotation'])
......
......@@ -74,12 +74,20 @@ class UICFGGenerator(CodeGenerator):
'subject': "pvs.tag_subject_of(('*', '{rtype}', '*'), '{value}')",
'object': "pvs.tag_object_of(('*', '{rtype}', '*'), '{value}')",
},
'reledit_ctrl': {
'shortname': 'rec',
'subject': "rec.tag_subject_of(('*', '{rtype}', '*'), "
"{{'novalue_label': _('<{value}>')}})",
'object': "rec.tag_object_of(('*', '{rtype}', '*'), "
"{{'novalue_label': _('<{value}>')}})",
},
}
def _generate(self, mapping, stream):
self._processed = set()
stream.write('from cubicweb.web import formwidgets as fw\n')
stream.write('from cubicweb.web.views import uicfg\n\n')
stream.write('_ = unicode\n\n')
# indexview_etype_section configuration
stream.write('ives = uicfg.indexview_etype_section\n')
all_etypes = set()
......@@ -143,6 +151,25 @@ class UICFGGenerator(CodeGenerator):
yield mapping.rtype, neg_role(role), section
yield mapping.rtype, role, section
def reledit_ctrl_for_e_type_mapping(self, mapping):
for rtype, target_etype in sorted(mapping.attributes.items()):
if ('rec', rtype) not in self._processed:
self._processed.add(('rec', rtype))
yield rtype, 'subject', 'no value specified'
def reledit_ctrl_for_rdef_mapping(self, mapping):
if ('rec', mapping.rtype) in self._processed:
return
self._processed.add(('rec', mapping.rtype))
if mapping.composite is None:
yield mapping.rtype, 'subject', 'no value specified'
else:
card = mapping.card[mapping.composite == 'object']
if card == '1':
yield mapping.rtype, mapping.composite, 'no value specified'
elif card == '?':
yield mapping.rtype, mapping.composite, 'unauthorized'
def actionbox_appearsin_addmenu_for_rdef_mapping(self, mapping):
if ('abaa', mapping.rtype) in self._processed:
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment