[saem-devel] [PATCH 1 of 3] [org] Configure ORM to prefetch Organization's ark attribute

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Feb 8 10:55:46 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1486453985 -3600
#      Tue Feb 07 08:53:05 2017 +0100
# Node ID 73ce348dd159dff07ec8f2c5870768e1aac25ee4
# Parent  e3bf7f922862dea370e930c283a04dcb8e0e6d1e
[org] Configure ORM to prefetch Organization's ark attribute

diff --git a/cubicweb_saem_ref/entities/org.py b/cubicweb_saem_ref/entities/org.py
--- a/cubicweb_saem_ref/entities/org.py
+++ b/cubicweb_saem_ref/entities/org.py
@@ -25,11 +25,11 @@ from cubes.oaipmh.entities import ETypeO
 from . import oai
 
 
 class Organization(AnyEntity):
     __regid__ = 'Organization'
-    fetch_attrs, cw_fetch_order = fetch_config(('name', ))
+    fetch_attrs, cw_fetch_order = fetch_config(('name', 'ark'))
 
 
 class Agent(AnyEntity):
     __regid__ = 'Agent'
     fetch_attrs, cw_fetch_order = fetch_config(('name', 'ark'))


More information about the saem-devel mailing list