src/pyams_catalog/query.py
changeset 8 e31e81bcf6dd
parent 3 7c6f10ffdda0
child 10 a54dbd49da21
--- a/src/pyams_catalog/query.py	Wed May 20 12:21:20 2015 +0200
+++ b/src/pyams_catalog/query.py	Wed Jun 17 09:55:43 2015 +0200
@@ -32,12 +32,13 @@
 
     def __iter__(self):
         query = self.query
+        intids = self.intids
         if isinstance(query, Query):
             query = query.execute()
         if isinstance(query, tuple):
             query = query[1]
         for oid in query:
-            yield self.intids.queryObject(oid)
+            yield intids.queryObject(oid)
 
 
 def or_(source, added):