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

Simplify uicfg rules building for physical/binary data objects

There should be no need for etype specific rules, default rules will be
overriden.
parent 2d1ed86e4725
......@@ -100,26 +100,19 @@ pvdc.tag_object_of(('*', 'seda_data_object_reference_id', '*'),
'subvid': 'seda.object-ref.archive-unit',
'label': _('referenced by:')})
# hide some relation from autoform because of limitation of _container_eid
afs.tag_object_of(('*', 'seda_compressed', 'SEDABinaryDataObject'), 'main', 'hidden')
pvs.tag_object_of(('*', 'seda_compressed', 'SEDABinaryDataObject'), 'attributes')
rec.tag_object_of(('*', 'seda_compressed', 'SEDABinaryDataObject'),
{'rvid': 'seda.reledit.complexlink',
'novalue_label': _('<unauthorized>')})
pvs.tag_object_of(('*', 'seda_target', '*'), 'hidden') # in the relationship tab
for rtype in ('seda_compressed', 'seda_data_object_version_from'):
# hide relation from autoform because of limitation of _container_eid
afs.tag_object_of(('*', rtype, '*'), 'main', 'hidden')
pvs.tag_object_of(('*', rtype, '*'), 'attributes')
rec.tag_object_of(('*', rtype, '*'),
{'rvid': 'seda.reledit.complexlink',
'novalue_label': _('<unauthorized>')})
rec.tag_subject_of(('SEDABinaryDataObject', 'seda_alt_binary_data_object_attachment', '*'),
{'rvid': 'seda.reledit.alternative',
'novalue_label': _('<unauthorized>')})
for etype in ('SEDABinaryDataObject', 'SEDAPhysicalDataObject'):
afs.tag_object_of(('*', 'seda_data_object_version_from', etype), 'main', 'hidden')
pvs.tag_object_of(('*', 'seda_data_object_version_from', etype), 'attributes')
rec.tag_object_of(('*', 'seda_data_object_version_from', etype),
{'rvid': 'seda.reledit.complexlink',
'novalue_label': _('<unauthorized>')})
pvs.tag_object_of(('*', 'seda_target', etype), 'hidden') # in the relationship tab
def uri_cardinality_vocabulary(form, field):
req = form._cw
......
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