[saem-devel] [PATCH 03 of 10] [rdf] Fix selector of AgentRDFListAdapter

Sylvain Thenault sylvain.thenault at logilab.fr
Tue Jan 31 09:49:08 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1485776227 -3600
#      Mon Jan 30 12:37:07 2017 +0100
# Node ID 8c6849c2dd54cdc69dee7b31eb54de685efc91fc
# Parent  003f5d00dc408155814b1c809c1bfbb3eee07b88
[rdf] Fix selector of AgentRDFListAdapter

OrganizationUnit have another adapter.

diff --git a/cubicweb_saem_ref/entities/rdf.py b/cubicweb_saem_ref/entities/rdf.py
--- a/cubicweb_saem_ref/entities/rdf.py
+++ b/cubicweb_saem_ref/entities/rdf.py
@@ -69,11 +69,11 @@ def _complete_authority_record_rdf_mappi
     reg.register_attribute_equivalence('PostalAddress', 'state', 'vcard:region')
 
 
 class AgentRDFListAdapter(AbstractRDFAdapter):
     __regid__ = 'RDFList'
-    __select__ = is_instance('Agent', 'OrganizationUnit')
+    __select__ = is_instance('Agent')
 
     def register_rdf_mapping(self, reg):
         _base_rdf_mapping(reg, self.entity.cw_etype, 'foaf:Person')
         reg.register_attribute_equivalence(
             self.entity.cw_etype, 'name', 'foaf:name')


More information about the saem-devel mailing list