[PATCH 4 of 6 sherpa] [tbord] Fix RQL to only display component archive unit

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Mar 29 16:07:36 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490790970 -7200
#      Wed Mar 29 14:36:10 2017 +0200
# Node ID de9c41dd57d0b5099107a4959a1849402a5f67fa
# Parent  b0972ba544771943a89d3753b528c439dd6a0fa5
[tbord] Fix RQL to only display component archive unit

i.e. those that are not linked to a parent through the seda_archive_unit
relation.

Related to #17066578

diff --git a/cubicweb_sherpa/views/management.py b/cubicweb_sherpa/views/management.py
--- a/cubicweb_sherpa/views/management.py
+++ b/cubicweb_sherpa/views/management.py
@@ -41,10 +41,11 @@ class AuthenticatedIndexView(IndexView):
         for rql, key in [
                 ('Any X,XMD,XU,XT ORDERBY XMD DESC WHERE X is SEDAArchiveTransfer, '
                  'X modification_date XMD, X created_by XU?, X title XT, '
                  'X owned_by U, U eid %(u)s', 'profiles'),
                 ('Any X,XMD,XU,XUA ORDERBY XMD DESC WHERE X is SEDAArchiveUnit, '
+                 'NOT X seda_archive_unit P, '
                  'X modification_date XMD, X created_by XU?, X user_annotation XUA, '
                  'X owned_by U, U eid %(u)s', 'profiles'),
                 ('Any X,XMD,XU ORDERBY XMD DESC WHERE X is AuthorityRecord, '
                  'X modification_date XMD, X created_by XU?,'
                  'X owned_by U, U eid %(u)s', 'records'),


More information about the saem-devel mailing list