Commit 32fc555b authored by Andreas Jung's avatar Andreas Jung

Collector #771: ZCatalog failed to index DTML Document if the name

of a catalog metadata was identical with the name of an acquired
object.
~
parent ee0ccbb8
......@@ -24,6 +24,10 @@ Zope Changes
Bugs Fixed
- Collector #771: ZCatalog failed to index DTML Document if the name
of a catalog metadata was identical with the name of an acquired
object.
- Collector #686: intSets no longer lose their values.
- Collector #685: Improved documentation explaining how, where and
......
......@@ -22,7 +22,7 @@ from zLOG import LOG, ERROR
from Lazy import LazyMap, LazyFilter, LazyCat, LazyValues
from CatalogBrains import AbstractCatalogBrain, NoBrainer
from DocumentTemplate import cDocumentTemplate
from BTrees.IIBTree import intersection, weightedIntersection, IISet
from BTrees.OIBTree import OIBTree
from BTrees.IOBTree import IOBTree
......@@ -401,7 +401,7 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
# the unique id is allways the first element
for x in self.names:
attr=getattr(object, x, MV)
if(attr is not MV and callable(attr)): attr=attr()
if(attr is not MV and cDocumentTemplate.safe_callable(attr)): attr=attr()
record.append(attr)
return tuple(record)
......
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