Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
eea6033bc0cf
Commit
0cc697a4
authored
Aug 26, 2016
by
Sylvain Thénault
Browse files
Hide FormatId from format tab of data object in simplified profiles
parent
575a462dd815
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/dataobject.py
View file @
eea6033b
...
...
@@ -187,6 +187,14 @@ class BinaryDataObjectFormatIdentificationTab(tabs.PrimaryTab):
rsection
,
display_ctrl
=
rtags_from_xsd_element
(
'SEDABinaryDataObject'
,
'FormatIdentification'
)
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'
)
class
BinaryDataObjectFileInfoTab
(
tabs
.
PrimaryTab
):
"""Display file information of a binary data object"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment