[PATCH 5 of 6 sherpa] [tbord] Fix key used to insert view content in the jinja template

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


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490791038 -7200
#      Wed Mar 29 14:37:18 2017 +0200
# Node ID 08c7c889fd439d3648fba74f2a0b3288d4b6405e
# Parent  de9c41dd57d0b5099107a4959a1849402a5f67fa
[tbord] Fix key used to insert view content in the jinja template

previous value resulted from a bad copy / paste.

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
@@ -43,11 +43,11 @@ class AuthenticatedIndexView(IndexView):
                  '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'),
+                 'X owned_by U, U eid %(u)s', 'units'),
                 ('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'),
         ]:
             rset = self._cw.execute(rql, {'u': self._cw.user.eid})


More information about the saem-devel mailing list