[cleanup] Add some vertical spacing
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 25 Aug 2016 17:53:34 +0200
changeset 1550 01b8fdd3e2b0
parent 1549 0129ebd034a0
child 1551 16d80699b01f
[cleanup] Add some vertical spacing
entities/itree.py
views/archiveunit.py
views/content.py
views/widgets.py
--- a/entities/itree.py	Thu Aug 25 15:49:15 2016 +0200
+++ b/entities/itree.py	Thu Aug 25 17:53:34 2016 +0200
@@ -32,6 +32,7 @@
 
     ITreeBase is a simplified version of cubicweb's ITree.
     """
+
     __regid__ = 'ITreeBase'
     __abstract__ = True
 
@@ -100,6 +101,7 @@
 
 class ITreeBaseContentAdapter(IContainedToITreeBase):
     """Adapt Content entities to ITreeBase."""
+
     __select__ = is_instance('SEDAContent')
 
     def parent(self):
@@ -108,11 +110,13 @@
 
 class ITreeBaseDataObjectAdapter(IContainedToITreeBase):
     """Adapt BinaryDataObject and PhysicalDataObject entities to ITreeBase."""
+
     __select__ = is_instance('SEDABinaryDataObject', 'SEDAPhysicalDataObject')
 
 
 class ITreeBaseArchiveTransferAdapter(IContainedToITreeBase):
     """Adapt ArchiveTransfer entities to ITreeBase."""
+
     __select__ = is_instance('SEDAArchiveTransfer')
 
     @property
--- a/views/archiveunit.py	Thu Aug 25 15:49:15 2016 +0200
+++ b/views/archiveunit.py	Thu Aug 25 17:53:34 2016 +0200
@@ -219,6 +219,7 @@
 
 class ArchiveUnitArchiveUnitsTab(tabs.TabsMixin, EntityView):
     """Tab for sub-archive units of an archive unit"""
+
     __regid__ = 'seda_au_archive_units_tab'
     __select__ = is_instance('SEDAArchiveUnit') & ~is_archive_unit_ref()
 
@@ -253,6 +254,7 @@
 
 class ArchiveUnitDataObjectReferencesTab(ArchiveUnitSubObjectsTab):
     """Tab for data object references of an archive unit"""
+
     __regid__ = 'seda_au_data_objects_refs_tab'
 
     rtype_role_targets = [('seda_data_object_reference', 'object', None)]
@@ -305,6 +307,7 @@
     """Force display of AltArchiveUnitArchiveUnitRefId's sub-ArchiveUnitRefId or
     SeqAltArchiveUnitArchiveUnitRefIdManagement (uicfg will control which of them is displayed).
     """
+
     __select__ = (widgets.SimplifiedAutomaticEntityForm.__select__
                   & is_instance('SEDAAltArchiveUnitArchiveUnitRefId'))
 
@@ -314,6 +317,7 @@
     SeqAltArchiveUnitArchiveUnitRefIdManagement or ArchiveUnitRefId in the context of an archive
     unit reference.
     """
+
     __select__ = (widgets.NoTitleEntityInlinedFormRenderer.__select__
                   & (is_instance('SEDAAltArchiveUnitArchiveUnitRefId',
                                  'SEDASeqAltArchiveUnitArchiveUnitRefIdManagement')
@@ -347,6 +351,7 @@
     profile, add a field to handle the creation of the relation to the archive unit specified in
     `req.form`.
     """
+
     # don't add match_form_params('referenced_by') since it's only specified for creation, not
     # edition
     __select__ = (widgets.SimplifiedAutomaticEntityForm.__select__
@@ -367,6 +372,7 @@
     """Don't display any title nor remove link for DataObjectReference in the context of a
     simplified profile.
     """
+
     __select__ = (widgets.NoTitleEntityInlinedFormRenderer.__select__
                   & is_instance('SEDADataObjectReference')
                   & simplified_profile())
@@ -377,6 +383,7 @@
     referenced data object as if they were children of the archive unit referencing them (only one
     reference is allowed in such case, so this is fine).
     """
+
     __regid__ = 'seda_au_data_objects_refs_tab'
     __select__ = ArchiveUnitDataObjectReferencesTab.__select__ & simplified_profile()
 
--- a/views/content.py	Thu Aug 25 15:49:15 2016 +0200
+++ b/views/content.py	Thu Aug 25 17:53:34 2016 +0200
@@ -107,6 +107,7 @@
 
 
 class ContentTabbedPrimaryView(tabs.TabbedPrimaryView):
+
     __select__ = tabs.TabbedPrimaryView.__select__ & is_instance('SEDAContent')
 
     tabs = [
@@ -309,6 +310,7 @@
 
 
 class KeywordBusinessValueEntityView(viewlib.LinkMetaEntityView):
+
     __select__ = viewlib.BusinessValueEntityView.__select__ & is_instance('SEDAKeyword')
 
     def entity_call(self, entity):
@@ -347,6 +349,7 @@
 
 
 class BusinessValueLinkedEntityView(viewlib.BusinessValueEntityView):
+
     __select__ = is_instance(*TYPED_REFERENCE_ENTITY_TYPES)
 
     def entity_value(self, entity):
@@ -383,6 +386,7 @@
 
 
 class EventLinkMetaEntityView(viewlib.LinkMetaEntityView):
+
     __select__ = viewlib.LinkMetaEntityView.__select__ & is_instance('SEDAEvent')
 
     def entity_call(self, entity):
@@ -419,6 +423,7 @@
 
 
 class CustodialHistoryItemLinkMetaEntityView(viewlib.LinkMetaEntityView):
+
     __select__ = viewlib.LinkMetaEntityView.__select__ & is_instance('SEDACustodialHistoryItem')
 
     def entity_call(self, entity):
--- a/views/widgets.py	Thu Aug 25 15:49:15 2016 +0200
+++ b/views/widgets.py	Thu Aug 25 17:53:34 2016 +0200
@@ -109,7 +109,6 @@
                             widget=ConceptAutoCompleteWidget(slave_name='keyword_value',
                                                              master_name='keyword_scheme',
                                                              optional=True))
-
     """
 
     def __init__(self, slave_name, master_name,
@@ -237,6 +236,7 @@
 class SimplifiedAutomaticEntityForm(autoform.AutomaticEntityForm):
     """Custom autoform, forcing display of creation form instead of add new link.
     """
+
     __abstract__ = True
 
     def should_display_inline_creation_form(self, rschema, existing, card):
@@ -249,6 +249,7 @@
 class NoTitleEntityInlinedFormRenderer(formrenderers.EntityInlinedFormRenderer):
     """Custom inlined form renderer that doesn't display any title nor remove link.
     """
+
     __abstract__ = True
 
     def render_title(self, w, form, values):