Commit 9563f2bc authored by Christopher Petrilli's avatar Christopher Petrilli

Fixed bug reported by Tres, where getEntryForObject had reversed logic

in it.
parent 9288fea7
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"""Simple column indices""" """Simple column indices"""
__version__='$Revision: 1.24 $'[11:-2] __version__='$Revision: 1.25 $'[11:-2]
...@@ -173,10 +173,10 @@ class UnIndex(Persistent, Implicit): ...@@ -173,10 +173,10 @@ class UnIndex(Persistent, Implicit):
return self._unindex.keys() return self._unindex.keys()
def getEntryForObject(self, documentId, default=None): def getEntryForObject(self, documentId, default=MV):
"""Takes a document ID and returns all the information we have """Takes a document ID and returns all the information we have
on that specific object.""" on that specific object."""
if default is None: if default is not MV:
return self._unindex.get(documentId, default) return self._unindex.get(documentId, default)
else: else:
return self._unindex.get(documentId) return self._unindex.get(documentId)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment