Commit be790b50 authored by Andreas Jung's avatar Andreas Jung

forgotten to remove cDocumentTemplate import

parent 154817ed
......@@ -22,7 +22,6 @@ 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
......@@ -419,7 +418,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 cDocumentTemplate.safe_callable(attr)): attr=attr()
if(attr is not MV and 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