changeset 15 | 551c55958cf3 |
parent 13 | 2b20d7a5e7ee |
child 21 | 464671eede98 |
--- a/src/pyams_catalog/query.py Thu Oct 08 09:48:45 2015 +0200 +++ b/src/pyams_catalog/query.py Thu Oct 08 09:50:48 2015 +0200 @@ -31,10 +31,10 @@ self.intids = query_utility(IIntIds) def __iter__(self): - query = self.query intids = self.intids if intids is None: raise StopIteration + query = self.query if isinstance(query, Query): query = query.execute() if isinstance(query, tuple):