Skip to content

Commit

Permalink
- Index constructors were called without acquisition context of the
Browse files Browse the repository at this point in the history
       calling object. This caused caller.getPhysicalPath() to fail for
       indexes depending on this information.
  • Loading branch information
zopyx committed Feb 25, 2003
1 parent 6a22f8f commit 90aaf38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ZCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from OFS.FindSupport import FindSupport
from OFS.ObjectManager import ObjectManager
from DateTime import DateTime
from Acquisition import Implicit, aq_base
from Acquisition import Implicit
from Persistence import Persistent
from DocumentTemplate.DT_Util import InstanceDict, TemplateDict
from DocumentTemplate.DT_Util import Eval
Expand Down Expand Up @@ -913,9 +913,9 @@ def addIndex(self, name, type,extra=None):
# for new index types is to use an "extra" record.

if 'extra' in base.__init__.func_code.co_varnames:
index = base(name, extra=extra, caller=aq_base(self))
index = base(name, extra=extra, caller=self)
else:
index = base(name, aq_base(self))
index = base(name, self)

self._catalog.addIndex(name,index)

Expand Down

0 comments on commit 90aaf38

Please sign in to comment.