Skip to content

Commit

Permalink
cast index.uniqueValues to a tuple for more public `uniqueValuesFor…
Browse files Browse the repository at this point in the history
…` method
  • Loading branch information
hannosch committed Oct 17, 2013
1 parent 9bbd92b commit 8ec4807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Products/ZCatalog/Catalog.py
Expand Up @@ -399,7 +399,7 @@ def uncatalogObject(self, uid):

def uniqueValuesFor(self, name):
""" return unique values for FieldIndex name """
return self.getIndex(name).uniqueValues()
return tuple(self.getIndex(name).uniqueValues())

def hasuid(self, uid):
""" return the rid if catalog contains an object with uid """
Expand Down

0 comments on commit 8ec4807

Please sign in to comment.