[PATCH 3 of 6 seda] [diag] Enhance readability a bit

Sylvain Thenault sylvain.thenault at logilab.fr
Mon Dec 11 16:51:34 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1512573471 -3600
#      Wed Dec 06 16:17:51 2017 +0100
# Node ID 75fa8c7922bd43c01c509fd4005c8ac4841df990
# Parent  6ffc8c296211876739ee47a7ed2b926ab3f92a2c
[diag] Enhance readability a bit

diff --git a/cubicweb_seda/entities/diag.py b/cubicweb_seda/entities/diag.py
--- a/cubicweb_seda/entities/diag.py
+++ b/cubicweb_seda/entities/diag.py
@@ -279,16 +279,18 @@ def _parent(entity):
     'seda_spatial': 'seda_coverage_tab',
     'seda_tag': 'seda_indexation_tab',
     'seda_temporal': 'seda_coverage_tab',
     'seda_writer_from': 'seda_agents_tab',
 }
+
 _AMBIGUOUS_RQL = ' UNION '.join(chain(
     ('(Any P, "{rtype}" GROUPBY P WHERE X {rtype} P, P container C, C eid %(c)s, '
      'NOT X user_cardinality "1" HAVING COUNT(X) > 1)'.format(rtype=rtype)
-     for rtype in _RTYPE_TO_TAB if rtype not in ('seda_binary_data_object',
-                                                 'seda_physical_data_object',
-                                                 'seda_related_transfer_reference')),
+     for rtype in _RTYPE_TO_TAB
+     if rtype not in ('seda_binary_data_object',
+                      'seda_physical_data_object',
+                      'seda_related_transfer_reference')),
     # we need another RQL for top level entities without container relation
     ('(Any P, "{rtype}" GROUPBY P WHERE X {rtype} P, P eid %(c)s, '
      'NOT X user_cardinality "1" HAVING COUNT(X) > 1)'.format(rtype=rtype)
      for rtype in ('seda_archive_unit',
                    'seda_binary_data_object', 'seda_physical_data_object',


More information about the saem-devel mailing list