[Checkins]
SVN: five.customerize/branches/plone-3.0-branch-with-viewlet-support/src/five/customerize/zpt.py
with some viewlets the `viewlet` parameter passed in when
filtering renderable viewlets in the manager contains not the
viewlet instance, but its topmost parent (i.e. the plone site);
checking for `IViewlet` therefore prevented the customerized viewlet
to be rendered at all
Andreas Zeidler
az at zitc.de
Thu Aug 16 10:11:40 EDT 2007
Log message for revision 78882:
with some viewlets the `viewlet` parameter passed in when filtering renderable viewlets in the manager contains not the viewlet instance, but its topmost parent (i.e. the plone site); checking for `IViewlet` therefore prevented the customerized viewlet to be rendered at all
Changed:
U five.customerize/branches/plone-3.0-branch-with-viewlet-support/src/five/customerize/zpt.py
-=-
Modified: five.customerize/branches/plone-3.0-branch-with-viewlet-support/src/five/customerize/zpt.py
===================================================================
--- five.customerize/branches/plone-3.0-branch-with-viewlet-support/src/five/customerize/zpt.py 2007-08-16 13:17:36 UTC (rev 78881)
+++ five.customerize/branches/plone-3.0-branch-with-viewlet-support/src/five/customerize/zpt.py 2007-08-16 14:11:40 UTC (rev 78882)
@@ -37,7 +37,7 @@
raise Unauthorized('The current user does not have the '
'required "%s" permission'
% self.permission)
- if IViewlet.providedBy(viewlet) and IViewletManager.providedBy(manager):
+ if IViewletManager.providedBy(manager):
return TTWViewletRenderer(context, request, self, self.view,
viewlet, manager)
else:
More information about the Checkins
mailing list