A viewlet needs to be __of__ the view (it expects its __parent__ to be the view,

not the context).
parent cc93b9b2
......@@ -42,7 +42,7 @@ class Z2ProviderExpression(StringExpr):
raise cp_interfaces.ContentProviderLookupError(name)
if getattr(provider, '__of__', None) is not None:
provider = provider.__of__(context)
provider = provider.__of__(view)
# Insert the data gotten from the context
addTALNamespaceData(provider, econtext)
......
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