[SEDA 2.1] Drop restriction* XSD attributes
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 03 Mar 2017 10:39:59 +0100
changeset 2414 b7177cc7358a
parent 2413 139d2b9c221d
child 2415 b9f3c646fcc6
[SEDA 2.1] Drop restriction* XSD attributes
cubicweb_seda/entities/generated.py
cubicweb_seda/i18n/en.po
cubicweb_seda/i18n/fr.po
cubicweb_seda/migration/0.8.0_Any.py
cubicweb_seda/schema/seda2.py
cubicweb_seda/views/archiveunit.py
cubicweb_seda/views/uicfg.py
cubicweb_seda/xsd/seda-2.0-descriptive.xsd
test/test_html_generation.py
test/test_profile_generation.py
--- a/cubicweb_seda/entities/generated.py	Fri Mar 03 10:39:18 2017 +0100
+++ b/cubicweb_seda/entities/generated.py	Fri Mar 03 10:39:59 2017 +0100
@@ -418,21 +418,6 @@
     fetch_attrs, cw_fetch_order = fetch_config(['user_cardinality'])
     value_attr = None
 
-class SEDArestrictionRuleIdRef(SEDAAnyEntity):
-    __regid__ = 'SEDArestrictionRuleIdRef'
-    fetch_attrs, cw_fetch_order = fetch_config(['user_cardinality', 'restriction_rule_id_ref', 'user_annotation'])
-    value_attr = 'restriction_rule_id_ref'
-
-class SEDArestrictionValue(SEDAAnyEntity):
-    __regid__ = 'SEDArestrictionValue'
-    fetch_attrs, cw_fetch_order = fetch_config(['user_cardinality', 'restriction_value', 'user_annotation'])
-    value_attr = 'restriction_value'
-
-class SEDArestrictionEndDate(SEDAAnyEntity):
-    __regid__ = 'SEDArestrictionEndDate'
-    fetch_attrs, cw_fetch_order = fetch_config(['user_cardinality'])
-    value_attr = None
-
 class SEDATitle(SEDAAnyEntity):
     __regid__ = 'SEDATitle'
     fetch_attrs, cw_fetch_order = fetch_config(['user_cardinality', 'title', 'user_annotation'])
--- a/cubicweb_seda/i18n/en.po	Fri Mar 03 10:39:18 2017 +0100
+++ b/cubicweb_seda/i18n/en.po	Fri Mar 03 10:39:59 2017 +0100
@@ -542,15 +542,6 @@
 msgid "New SEDAWriter"
 msgstr ""
 
-msgid "New SEDArestrictionEndDate"
-msgstr ""
-
-msgid "New SEDArestrictionRuleIdRef"
-msgstr ""
-
-msgid "New SEDArestrictionValue"
-msgstr ""
-
 msgid "New SEDAwhen"
 msgstr ""
 
@@ -1988,24 +1979,6 @@
 msgid "SEDAWriter_plural"
 msgstr ""
 
-msgid "SEDArestrictionEndDate"
-msgstr ""
-
-msgid "SEDArestrictionEndDate_plural"
-msgstr ""
-
-msgid "SEDArestrictionRuleIdRef"
-msgstr ""
-
-msgid "SEDArestrictionRuleIdRef_plural"
-msgstr ""
-
-msgid "SEDArestrictionValue"
-msgstr ""
-
-msgid "SEDArestrictionValue_plural"
-msgstr ""
-
 msgid "SEDAwhen"
 msgstr ""
 
@@ -2900,24 +2873,6 @@
 msgid "This SEDAWriter:"
 msgstr ""
 
-msgid "This SEDArestrictionEndDate"
-msgstr ""
-
-msgid "This SEDArestrictionEndDate:"
-msgstr ""
-
-msgid "This SEDArestrictionRuleIdRef"
-msgstr ""
-
-msgid "This SEDArestrictionRuleIdRef:"
-msgstr ""
-
-msgid "This SEDArestrictionValue"
-msgstr ""
-
-msgid "This SEDArestrictionValue:"
-msgstr ""
-
 msgid "This SEDAwhen"
 msgstr ""
 
@@ -3920,15 +3875,6 @@
 msgid "add a SEDAWriter"
 msgstr ""
 
-msgid "add a SEDArestrictionEndDate"
-msgstr ""
-
-msgid "add a SEDArestrictionRuleIdRef"
-msgstr ""
-
-msgid "add a SEDArestrictionValue"
-msgstr ""
-
 msgid "add a SEDAwhen"
 msgstr ""
 
@@ -4570,18 +4516,6 @@
 msgid "container"
 msgstr ""
 
-msgctxt "SEDArestrictionEndDate"
-msgid "container"
-msgstr ""
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "container"
-msgstr ""
-
-msgctxt "SEDArestrictionValue"
-msgid "container"
-msgstr ""
-
 msgctxt "SEDAwhen"
 msgid "container"
 msgstr ""
@@ -4932,20 +4866,6 @@
 msgid "referenced by:"
 msgstr ""
 
-msgid "restriction_rule_id_ref"
-msgstr ""
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "restriction_rule_id_ref"
-msgstr ""
-
-msgid "restriction_value"
-msgstr ""
-
-msgctxt "SEDArestrictionValue"
-msgid "restriction_value"
-msgstr ""
-
 #, python-brace-format
 msgid "rule: {0}"
 msgstr ""
@@ -7186,51 +7106,9 @@
 msgid "seda_requires_object"
 msgstr ""
 
-msgid "seda_restriction_end_date"
-msgstr ""
-
-msgctxt "SEDArestrictionEndDate"
-msgid "seda_restriction_end_date"
-msgstr ""
-
-msgid "seda_restriction_end_date_object"
-msgstr ""
-
-msgctxt "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement"
-msgid "seda_restriction_end_date_object"
-msgstr ""
-
-msgid "seda_restriction_rule_id_ref"
-msgstr ""
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "seda_restriction_rule_id_ref"
-msgstr ""
-
-msgid "seda_restriction_rule_id_ref_object"
-msgstr ""
-
-msgctxt "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement"
-msgid "seda_restriction_rule_id_ref_object"
-msgstr ""
-
 msgid "seda_restriction_tab"
 msgstr ""
 
-msgid "seda_restriction_value"
-msgstr ""
-
-msgctxt "SEDArestrictionValue"
-msgid "seda_restriction_value"
-msgstr ""
-
-msgid "seda_restriction_value_object"
-msgstr ""
-
-msgctxt "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement"
-msgid "seda_restriction_value_object"
-msgstr ""
-
 msgid "seda_reuse_rule"
 msgstr ""
 
@@ -8568,18 +8446,6 @@
 msgid "user_annotation"
 msgstr ""
 
-msgctxt "SEDArestrictionEndDate"
-msgid "user_annotation"
-msgstr ""
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "user_annotation"
-msgstr ""
-
-msgctxt "SEDArestrictionValue"
-msgid "user_annotation"
-msgstr ""
-
 msgctxt "SEDAwhen"
 msgid "user_annotation"
 msgstr ""
@@ -9095,18 +8961,6 @@
 msgid "user_cardinality"
 msgstr ""
 
-msgctxt "SEDArestrictionEndDate"
-msgid "user_cardinality"
-msgstr ""
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "user_cardinality"
-msgstr ""
-
-msgctxt "SEDArestrictionValue"
-msgid "user_cardinality"
-msgstr ""
-
 msgctxt "SEDAwhen"
 msgid "user_cardinality"
 msgstr ""
--- a/cubicweb_seda/i18n/fr.po	Fri Mar 03 10:39:18 2017 +0100
+++ b/cubicweb_seda/i18n/fr.po	Fri Mar 03 10:39:59 2017 +0100
@@ -549,15 +549,6 @@
 msgid "New SEDAWriter"
 msgstr "Nouveau rédacteur"
 
-msgid "New SEDArestrictionEndDate"
-msgstr ""
-
-msgid "New SEDArestrictionRuleIdRef"
-msgstr ""
-
-msgid "New SEDArestrictionValue"
-msgstr ""
-
 msgid "New SEDAwhen"
 msgstr ""
 
@@ -1998,24 +1989,6 @@
 msgid "SEDAWriter_plural"
 msgstr "Rédacteurs"
 
-msgid "SEDArestrictionEndDate"
-msgstr ""
-
-msgid "SEDArestrictionEndDate_plural"
-msgstr ""
-
-msgid "SEDArestrictionRuleIdRef"
-msgstr ""
-
-msgid "SEDArestrictionRuleIdRef_plural"
-msgstr ""
-
-msgid "SEDArestrictionValue"
-msgstr ""
-
-msgid "SEDArestrictionValue_plural"
-msgstr ""
-
 msgid "SEDAwhen"
 msgstr "date"
 
@@ -2912,24 +2885,6 @@
 msgid "This SEDAWriter:"
 msgstr "Ce rédacteur :"
 
-msgid "This SEDArestrictionEndDate"
-msgstr ""
-
-msgid "This SEDArestrictionEndDate:"
-msgstr ""
-
-msgid "This SEDArestrictionRuleIdRef"
-msgstr ""
-
-msgid "This SEDArestrictionRuleIdRef:"
-msgstr ""
-
-msgid "This SEDArestrictionValue"
-msgstr ""
-
-msgid "This SEDArestrictionValue:"
-msgstr ""
-
 msgid "This SEDAwhen"
 msgstr ""
 
@@ -3934,15 +3889,6 @@
 msgid "add a SEDAWriter"
 msgstr ""
 
-msgid "add a SEDArestrictionEndDate"
-msgstr ""
-
-msgid "add a SEDArestrictionRuleIdRef"
-msgstr ""
-
-msgid "add a SEDArestrictionValue"
-msgstr ""
-
 msgid "add a SEDAwhen"
 msgstr "ajouter un horodatage"
 
@@ -4584,18 +4530,6 @@
 msgid "container"
 msgstr ""
 
-msgctxt "SEDArestrictionEndDate"
-msgid "container"
-msgstr ""
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "container"
-msgstr ""
-
-msgctxt "SEDArestrictionValue"
-msgid "container"
-msgstr ""
-
 msgctxt "SEDAwhen"
 msgid "container"
 msgstr ""
@@ -4953,20 +4887,6 @@
 msgid "referenced by:"
 msgstr "référencé par :"
 
-msgid "restriction_rule_id_ref"
-msgstr "valeur"
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "restriction_rule_id_ref"
-msgstr ""
-
-msgid "restriction_value"
-msgstr "valeur"
-
-msgctxt "SEDArestrictionValue"
-msgid "restriction_value"
-msgstr ""
-
 #, python-brace-format
 msgid "rule: {0}"
 msgstr "règle : {0}"
@@ -7207,51 +7127,9 @@
 msgid "seda_requires_object"
 msgstr ""
 
-msgid "seda_restriction_end_date"
-msgstr ""
-
-msgctxt "SEDArestrictionEndDate"
-msgid "seda_restriction_end_date"
-msgstr ""
-
-msgid "seda_restriction_end_date_object"
-msgstr "date de fin de la restriction"
-
-msgctxt "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement"
-msgid "seda_restriction_end_date_object"
-msgstr ""
-
-msgid "seda_restriction_rule_id_ref"
-msgstr "valeur"
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "seda_restriction_rule_id_ref"
-msgstr ""
-
-msgid "seda_restriction_rule_id_ref_object"
-msgstr "identifiant de la règle"
-
-msgctxt "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement"
-msgid "seda_restriction_rule_id_ref_object"
-msgstr ""
-
 msgid "seda_restriction_tab"
 msgstr "restriction"
 
-msgid "seda_restriction_value"
-msgstr ""
-
-msgctxt "SEDArestrictionValue"
-msgid "seda_restriction_value"
-msgstr ""
-
-msgid "seda_restriction_value_object"
-msgstr "valeur de la restriction"
-
-msgctxt "SEDASeqAltArchiveUnitArchiveUnitRefIdManagement"
-msgid "seda_restriction_value_object"
-msgstr ""
-
 msgid "seda_reuse_rule"
 msgstr ""
 
@@ -8595,18 +8473,6 @@
 msgid "user_annotation"
 msgstr ""
 
-msgctxt "SEDArestrictionEndDate"
-msgid "user_annotation"
-msgstr ""
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "user_annotation"
-msgstr ""
-
-msgctxt "SEDArestrictionValue"
-msgid "user_annotation"
-msgstr ""
-
 msgctxt "SEDAwhen"
 msgid "user_annotation"
 msgstr ""
@@ -9122,18 +8988,6 @@
 msgid "user_cardinality"
 msgstr ""
 
-msgctxt "SEDArestrictionEndDate"
-msgid "user_cardinality"
-msgstr ""
-
-msgctxt "SEDArestrictionRuleIdRef"
-msgid "user_cardinality"
-msgstr ""
-
-msgctxt "SEDArestrictionValue"
-msgid "user_cardinality"
-msgstr ""
-
 msgctxt "SEDAwhen"
 msgid "user_cardinality"
 msgstr ""
--- a/cubicweb_seda/migration/0.8.0_Any.py	Fri Mar 03 10:39:18 2017 +0100
+++ b/cubicweb_seda/migration/0.8.0_Any.py	Fri Mar 03 10:39:59 2017 +0100
@@ -16,6 +16,11 @@
 sync_schema_props_perms('seda_algorithm')
 sync_schema_props_perms('seda_format_id_to')
 
+for etype in ('SEDArestrictionRuleIdRef',
+              'SEDArestrictionValue',
+              'SEDArestrictionEndDate'):
+    drop_entity_type(etype)
+
 lcsv_files = [file_def for file_def in LCSV_FILES
               if file_def[-1] == 'legal_status.csv']
 import_seda_schemes(cnx, lcsv_files=lcsv_files)
--- a/cubicweb_seda/schema/seda2.py	Fri Mar 03 10:39:18 2017 +0100
+++ b/cubicweb_seda/schema/seda2.py	Fri Mar 03 10:39:59 2017 +0100
@@ -1607,53 +1607,6 @@
     inlined = True
     constraints = []
 
-@seda_profile_element(cardinalities=['0..1', '1'], default_cardinality='0..1',
-                      annotable=True)
-class SEDArestrictionRuleIdRef(EntityType):
-    u""""""
-    restriction_rule_id_ref = String(fulltextindexed=True)
-
-
-class seq_alt_archive_unit_archive_unit_ref_id_management_restriction_rule_id_ref(RelationDefinition):
-    name = 'seda_restriction_rule_id_ref'
-    subject = 'SEDArestrictionRuleIdRef'
-    object = 'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement'
-    cardinality = '1?'
-    composite = fulltext_container = 'object'
-    inlined = True
-    constraints = []
-
-@seda_profile_element(cardinalities=['0..1', '1'], default_cardinality='0..1',
-                      annotable=True)
-class SEDArestrictionValue(EntityType):
-    u""""""
-    restriction_value = String(fulltextindexed=True)
-
-
-class seq_alt_archive_unit_archive_unit_ref_id_management_restriction_value(RelationDefinition):
-    name = 'seda_restriction_value'
-    subject = 'SEDArestrictionValue'
-    object = 'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement'
-    cardinality = '1?'
-    composite = fulltext_container = 'object'
-    inlined = True
-    constraints = []
-
-@seda_profile_element(cardinalities=['0..1', '1'], default_cardinality='0..1',
-                      annotable=True)
-class SEDArestrictionEndDate(EntityType):
-    u""""""
-
-
-class seq_alt_archive_unit_archive_unit_ref_id_management_restriction_end_date(RelationDefinition):
-    name = 'seda_restriction_end_date'
-    subject = 'SEDArestrictionEndDate'
-    object = 'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement'
-    cardinality = '1?'
-    composite = fulltext_container = 'object'
-    inlined = True
-    constraints = []
-
 class seq_alt_archive_unit_archive_unit_ref_id_management_description_level(RelationDefinition):
     name = 'seda_description_level'
     subject = 'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement'
--- a/cubicweb_seda/views/archiveunit.py	Fri Mar 03 10:39:18 2017 +0100
+++ b/cubicweb_seda/views/archiveunit.py	Fri Mar 03 10:39:59 2017 +0100
@@ -264,7 +264,6 @@
         _('seda_au_data_objects_refs_tab'),
         # Content tabs
         _('seda_identification_tab'),
-        _('seda_restriction_tab'),
         _('seda_dates_tab'),
         _('seda_gps_tab'),
         _('seda_services_tab'),
@@ -370,30 +369,6 @@
     rsection, display_ctrl = rtags_from_rtype_role_targets(CONTENT_ETYPE, rtype_role_targets)
 
 
-# restriction tab ##############################################################
-
-class ArchiveUnitRestrictionTab(ArchiveUnitContentTab):
-    """Display restrictions on a full seda2 archive unit."""
-
-    __regid__ = 'seda_restriction_tab'
-    __select__ = ArchiveUnitContentTab.__select__ & full_seda2_profile()
-    content_vid = 'seda_content_restriction'
-
-
-class ContentRestrictionView(viewlib.PrimaryTabWithoutBoxes):
-    """Display restrictions on an archive unit content."""
-
-    __regid__ = 'seda_content_restriction'
-    __select__ = is_instance(CONTENT_ETYPE)
-
-    rtype_role_targets = [
-        ('seda_restriction_rule_id_ref', 'object', None),
-        ('seda_restriction_value', 'object', None),
-        ('seda_restriction_end_date', 'object', None),
-    ]
-    rsection, display_ctrl = rtags_from_rtype_role_targets(CONTENT_ETYPE, rtype_role_targets)
-
-
 # dates tab ####################################################################
 
 class ArchiveUnitDatesTab(ArchiveUnitContentTab):
--- a/cubicweb_seda/views/uicfg.py	Fri Mar 03 10:39:18 2017 +0100
+++ b/cubicweb_seda/views/uicfg.py	Fri Mar 03 10:39:59 2017 +0100
@@ -48,7 +48,6 @@
 ives['SEDAStatus'] = 'subobject'
 ives['SEDASeqStorageRuleRule'] = 'subobject'
 ives['SEDAAltReplacesArchiveUnitRefId'] = 'subobject'
-ives['SEDArestrictionValue'] = 'subobject'
 ives['SEDASystemId'] = 'subobject'
 ives['SEDAEventType'] = 'subobject'
 ives['SEDAIsPartOf'] = 'subobject'
@@ -59,7 +58,6 @@
 ives['SEDAGpsAltitude'] = 'subobject'
 ives['SEDAIsVersionOf'] = 'subobject'
 ives['SEDAArchivalAgreement'] = 'subobject'
-ives['SEDArestrictionEndDate'] = 'subobject'
 ives['SEDAFileFormatCodeListVersion'] = 'subobject'
 ives['SEDASeqAltArchiveUnitArchiveUnitRefIdManagement'] = 'subobject'
 ives['SEDATitle'] = 'subobject'
@@ -105,7 +103,6 @@
 ives['SEDAWeight'] = 'subobject'
 ives['SEDAType'] = 'subobject'
 ives['SEDADocumentType'] = 'subobject'
-ives['SEDArestrictionRuleIdRef'] = 'subobject'
 ives['SEDAGpsLatitudeRef'] = 'subobject'
 ives['SEDAComment'] = 'subobject'
 ives['SEDADescriptionLanguage'] = 'subobject'
@@ -379,12 +376,6 @@
 abaa.tag_object_of(('*', 'seda_data_object_reference', '*'), False)
 abaa.tag_object_of(('*', 'seda_unit', '*'), False)
 abaa.tag_subject_of(('*', 'seda_unit', '*'), False)
-abaa.tag_subject_of(('*', 'seda_restriction_rule_id_ref', '*'), False)
-abaa.tag_object_of(('*', 'seda_restriction_rule_id_ref', '*'), False)
-abaa.tag_subject_of(('*', 'seda_restriction_value', '*'), False)
-abaa.tag_object_of(('*', 'seda_restriction_value', '*'), False)
-abaa.tag_subject_of(('*', 'seda_restriction_end_date', '*'), False)
-abaa.tag_object_of(('*', 'seda_restriction_end_date', '*'), False)
 abaa.tag_object_of(('*', 'seda_description_level', '*'), False)
 abaa.tag_subject_of(('*', 'seda_description_level', '*'), False)
 abaa.tag_subject_of(('*', 'seda_title', '*'), False)
@@ -579,8 +570,6 @@
 affk.tag_subject_of(('*', 'creating_os', '*'), {'widget': fw.TextInput({'size': 80})})
 affk.tag_subject_of(('*', 'creating_os_version', '*'), {'widget': fw.TextInput({'size': 80})})
 affk.tag_subject_of(('*', 'need_reassessing_authorization', '*'), {'allow_none': True})
-affk.tag_subject_of(('*', 'restriction_rule_id_ref', '*'), {'widget': fw.TextInput({'size': 80})})
-affk.tag_subject_of(('*', 'restriction_value', '*'), {'widget': fw.TextInput({'size': 80})})
 affk.tag_subject_of(('*', 'title', '*'), {'widget': fw.TextInput({'size': 80})})
 affk.tag_subject_of(('*', 'file_plan_position', '*'), {'widget': fw.TextInput({'size': 80})})
 affk.tag_subject_of(('*', 'archival_agency_archive_unit_identifier', '*'), {'widget': fw.TextInput({'size': 80})})
@@ -813,12 +802,6 @@
 afs.tag_object_of(('*', 'seda_data_object_reference', '*'), 'main', 'inlined')
 afs.tag_object_of(('*', 'seda_unit', '*'), 'main', 'hidden')
 afs.tag_subject_of(('*', 'seda_unit', '*'), 'main', 'attributes')
-afs.tag_subject_of(('*', 'seda_restriction_rule_id_ref', '*'), 'main', 'hidden')
-afs.tag_object_of(('*', 'seda_restriction_rule_id_ref', '*'), 'main', 'hidden')
-afs.tag_subject_of(('*', 'seda_restriction_value', '*'), 'main', 'hidden')
-afs.tag_object_of(('*', 'seda_restriction_value', '*'), 'main', 'hidden')
-afs.tag_subject_of(('*', 'seda_restriction_end_date', '*'), 'main', 'hidden')
-afs.tag_object_of(('*', 'seda_restriction_end_date', '*'), 'main', 'hidden')
 afs.tag_object_of(('*', 'seda_description_level', '*'), 'main', 'hidden')
 afs.tag_subject_of(('*', 'seda_description_level', '*'), 'main', 'attributes')
 afs.tag_subject_of(('*', 'seda_title', '*'), 'main', 'hidden')
@@ -1101,12 +1084,6 @@
 pvs.tag_object_of(('*', 'seda_final_action', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_classification_level', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_unit', '*'), 'hidden')
-pvs.tag_subject_of(('*', 'seda_restriction_rule_id_ref', '*'), 'hidden')
-pvs.tag_object_of(('*', 'seda_restriction_rule_id_ref', '*'), 'hidden')
-pvs.tag_subject_of(('*', 'seda_restriction_value', '*'), 'hidden')
-pvs.tag_object_of(('*', 'seda_restriction_value', '*'), 'hidden')
-pvs.tag_subject_of(('*', 'seda_restriction_end_date', '*'), 'hidden')
-pvs.tag_object_of(('*', 'seda_restriction_end_date', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_description_level', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_type_to', '*'), 'hidden')
 pvs.tag_object_of(('*', 'seda_language_to', '*'), 'hidden')
@@ -1270,11 +1247,6 @@
 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>'})
@@ -1394,10 +1366,6 @@
 pvds.set_fields_order('SEDACreatingOsVersion', ['user_cardinality', 'creating_os_version', 'user_annotation'])
 affk.set_fields_order('SEDANeedReassessingAuthorization', ['user_cardinality', 'need_reassessing_authorization', 'user_annotation'])
 pvds.set_fields_order('SEDANeedReassessingAuthorization', ['user_cardinality', 'need_reassessing_authorization', 'user_annotation'])
-affk.set_fields_order('SEDArestrictionRuleIdRef', ['user_cardinality', 'restriction_rule_id_ref', 'user_annotation'])
-pvds.set_fields_order('SEDArestrictionRuleIdRef', ['user_cardinality', 'restriction_rule_id_ref', 'user_annotation'])
-affk.set_fields_order('SEDArestrictionValue', ['user_cardinality', 'restriction_value', 'user_annotation'])
-pvds.set_fields_order('SEDArestrictionValue', ['user_cardinality', 'restriction_value', 'user_annotation'])
 affk.set_fields_order('SEDATitle', ['user_cardinality', 'title', 'user_annotation'])
 pvds.set_fields_order('SEDATitle', ['user_cardinality', 'title', 'user_annotation'])
 affk.set_fields_order('SEDAFilePlanPosition', ['user_cardinality', 'file_plan_position', 'user_annotation'])
--- a/cubicweb_seda/xsd/seda-2.0-descriptive.xsd	Fri Mar 03 10:39:18 2017 +0100
+++ b/cubicweb_seda/xsd/seda-2.0-descriptive.xsd	Fri Mar 03 10:39:59 2017 +0100
@@ -73,22 +73,6 @@
         <xsd:sequence>
             <xsd:group ref="ObjectGroup"/>
         </xsd:sequence>
-        <xsd:attribute name="restrictionRuleIdRef" type="xsd:IDREF" use="optional">
-            <xsd:annotation>
-                <xsd:documentation>Permet d'indiquer les restrictions à appliquer sur le noeud. Si rien n'est spécifié, aucune restriction ne s'applique.</xsd:documentation>
-            </xsd:annotation>
-        </xsd:attribute>
-        <xsd:attribute name="restrictionValue" type="NonEmptyTokenType" use="optional">
-            <xsd:annotation>
-                <xsd:documentation>Valeur de la restriction.</xsd:documentation>
-            </xsd:annotation>
-        </xsd:attribute>
-        <xsd:attribute name="restrictionEndDate" type="xsd:date" use="optional">
-            <xsd:annotation>
-                <xsd:documentation>Date de la fin de la restriction.</xsd:documentation>
-            </xsd:annotation>
-        </xsd:attribute>
-        <xsd:attributeGroup ref="OpenTypeAttributeGroup"/>
     </xsd:complexType>
     
 </xsd:schema>
--- a/test/test_html_generation.py	Fri Mar 03 10:39:18 2017 +0100
+++ b/test/test_html_generation.py	Fri Mar 03 10:39:59 2017 +0100
@@ -91,7 +91,6 @@
             self.assertEqual(attr_defs, set([
                 AttrDef(label='algorithm', card='mandatory', value=None),
                 AttrDef(label='filename', card='optional', value=None),
-                AttrDef(label='href', card='optional', value=None),
                 AttrDef(label='id', card='mandatory', value='id{}'.format(self.au_eid)),
                 AttrDef(label='id', card='mandatory', value='id{}'.format(self.bdo_eid)),
                 AttrDef(label='id', card='optional', value=None),
--- a/test/test_profile_generation.py	Fri Mar 03 10:39:18 2017 +0100
+++ b/test/test_profile_generation.py	Fri Mar 03 10:39:59 2017 +0100
@@ -281,52 +281,6 @@
             self.assertEqual(target_value[0], None)
             self.assertEqual(target_value[1], None)
 
-    def test_restriction_path(self):
-        element_defs = iter(XSDMMapping('Content'))
-        with self.admin_access.client_cnx() as cnx:
-            create = cnx.create_entity
-            content = create('SEDASeqAltArchiveUnitArchiveUnitRefIdManagement')
-            restr_value = create('SEDArestrictionValue', seda_restriction_value=content)
-            restr_end_date = create('SEDArestrictionEndDate', seda_restriction_end_date=content)
-
-            edef = next(element_defs)
-            # readable_edef(edef)
-            # ('Content',
-            #  'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement',
-            #  [('id', [('seda_id', 'object', 'SEDAid'), ('id', 'subject', 'String')]),
-            #   ('href',
-            #    [('seda_href', 'object', 'SEDAhref'), ('href', 'subject', 'String')]),
-            #   ('restrictionRuleIdRef',
-            #    [('seda_restriction_rule_id_ref', 'object', 'SEDArestrictionRuleIdRef'),
-            #     ('restriction_rule_id_ref', 'subject', 'String')]),
-            #   ('restrictionValue',
-            #    [('seda_restriction_value', 'object', 'SEDArestrictionValue'),
-            #     ('restriction_value', 'subject', 'String')]),
-            #   ('restrictionEndDate',
-            #    [('seda_restriction_end_date', 'object', 'SEDArestrictionEndDate'),
-            #     ('restriction_end_date', 'subject', 'Date')]),
-            #   ...
-
-            def path_for(schema_name, paths):
-                for path_schema, path in paths:
-                    if path_schema.target.local_name == schema_name:
-                        return path
-                raise Exception('%s not found in %s' % (schema_name, paths))
-
-            path = path_for('restrictionValue', edef[-1])
-            target_values = _path_target_values(content, path)
-            self.assertEqual(len(target_values), 1)
-            target_value = target_values[0]
-            self.assertEqual(target_value[0].eid, restr_value.eid)
-            self.assertEqual(target_value[1], None)
-
-            path = path_for('restrictionEndDate', edef[-1])
-            target_values = _path_target_values(content, path)
-            self.assertEqual(len(target_values), 1)
-            target_value = target_values[0]
-            self.assertEqual(target_value[0].eid, restr_end_date.eid)
-            self.assertEqual(target_value[1], None)
-
     def test_internal_reference(self):
         element_defs = iter(XSDMMapping('DataObjectReference'))
         with self.admin_access.client_cnx() as cnx: