Skip to content

Commit

Permalink
Fix regression in acquisition (#38), but breaks a test
Browse files Browse the repository at this point in the history
  • Loading branch information
viktordick authored and Viktor Dick committed Feb 17, 2019
1 parent 3da9dee commit 01bf917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DocumentTemplate/_DocumentTemplate.py
Expand Up @@ -274,6 +274,7 @@ class InstanceDict(Base):

def __init__(self, inst, namespace, guarded_getattr=None):
self.inst = inst
self.self = inst
self.namespace = namespace
self.cache = {}
if guarded_getattr is None:
Expand Down Expand Up @@ -306,7 +307,7 @@ def __getitem__(self, key):
get = getattr

try:
result = get(aq_inner(self.inst), key)
result = get(self.inst, key)
except AttributeError:
raise KeyError(key)

Expand Down

0 comments on commit 01bf917

Please sign in to comment.