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

[cleanup] Add some vertical spacing

parent 06cbe60f1524
......@@ -81,6 +81,7 @@ class ContainedRelationFacetWidget(rwdg.RelationFacetWidget):
class ContainedSearchForRelatedEntitiesView(skos.SearchForRelatedConceptsView):
__select__ = skos.SearchForRelatedConceptsView.__select__ & match_form_params('container')
def constrained_rql(self):
......@@ -167,6 +168,7 @@ pvdc.set_fields_order('SEDABinaryDataObject', bdo_ordered_fields)
class BinaryDataObjectTabbedPrimaryView(tabs.TabbedPrimaryView):
__select__ = tabs.TabbedPrimaryView.__select__ & is_instance('SEDABinaryDataObject')
tabs = [
'main_tab',
......@@ -178,6 +180,7 @@ class BinaryDataObjectTabbedPrimaryView(tabs.TabbedPrimaryView):
class BinaryDataObjectFormatIdentificationTab(tabs.PrimaryTab):
"""Display format identification information of a binary data object"""
__regid__ = 'seda_bdo_format_identification'
__select__ = tabs.PrimaryTab.__select__ & is_instance('SEDABinaryDataObject')
......@@ -186,6 +189,7 @@ class BinaryDataObjectFormatIdentificationTab(tabs.PrimaryTab):
class BinaryDataObjectFileInfoTab(tabs.PrimaryTab):
"""Display file information of a binary data object"""
__regid__ = 'seda_bdo_file_information'
__select__ = tabs.PrimaryTab.__select__ & is_instance('SEDABinaryDataObject')
......@@ -193,6 +197,7 @@ class BinaryDataObjectFileInfoTab(tabs.PrimaryTab):
class PhysicalDataObjectTabbedPrimaryView(tabs.TabbedPrimaryView):
__select__ = tabs.TabbedPrimaryView.__select__ & is_instance('SEDAPhysicalDataObject')
tabs = [
'main_tab',
......@@ -203,6 +208,7 @@ class PhysicalDataObjectTabbedPrimaryView(tabs.TabbedPrimaryView):
class PhysicalDataObjectDimensionsTab(tabs.PrimaryTab):
"""Display physical dimensions of a physical data object"""
__regid__ = 'seda_pdo_dimensions'
__select__ = tabs.PrimaryTab.__select__ & is_instance('SEDAPhysicalDataObject')
......@@ -211,6 +217,7 @@ class PhysicalDataObjectDimensionsTab(tabs.PrimaryTab):
class DataObjectRelationsTab(tabs.PrimaryTab):
"""Display relations of a binary or physical data object"""
__regid__ = 'seda_do_relations'
__select__ = tabs.PrimaryTab.__select__ & is_instance('SEDABinaryDataObject',
'SEDAPhysicalDataObject')
......@@ -242,6 +249,7 @@ class DataObjectRelationsTab(tabs.PrimaryTab):
class RelationshipBusinessValueLinkEntityView(viewlib.BusinessValueLinkEntityView):
__select__ = is_instance('SEDARelationship')
def entity_value(self, entity):
......@@ -260,6 +268,7 @@ class RelationshipBusinessValueLinkEntityView(viewlib.BusinessValueLinkEntityVie
class RelationshipReverseEntityView(view.EntityView):
__regid__ = 'seda.relationship.reverse'
__select__ = is_instance('SEDARelationship')
......@@ -275,6 +284,7 @@ class RelationshipReverseEntityView(view.EntityView):
class ObjectReferencepArchiveUnitEntityView(view.EntityView):
__regid__ = 'seda.object-ref.archive-unit'
__select__ = is_instance('SEDADataObjectReference')
......@@ -286,6 +296,7 @@ class ObjectReferencepArchiveUnitEntityView(view.EntityView):
class UnitBusinessValueEntityView(viewlib.BusinessValueEntityView):
__select__ = is_instance('SEDAWidth', 'SEDAHeight', 'SEDADepth', 'SEDAShape',
'SEDADiameter', 'SEDALength', 'SEDAThickness', 'SEDAWeight')
......
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