[Checkins]
SVN: five.customerize/branches/plone-3.0-branch-with-viewlet-support/src/five/customerize/zpt.py
to have customized templates without a class rendered correctly,
`TTWViewlet` must inherit from `zope.viewlet.viewlet.ViewletBase`,
so that the `super(...)` call in
`plone.app.layout.viewlets.ViewletBase` succeeds
Andreas Zeidler
az at zitc.de
Thu Aug 16 15:53:51 EDT 2007
Log message for revision 78884:
to have customized templates without a class rendered correctly, `TTWViewlet` must inherit from `zope.viewlet.viewlet.ViewletBase`, so that the `super(...)` call in `plone.app.layout.viewlets.ViewletBase` succeeds
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 14:14:19 UTC (rev 78883)
+++ five.customerize/branches/plone-3.0-branch-with-viewlet-support/src/five/customerize/zpt.py 2007-08-16 19:53:50 UTC (rev 78884)
@@ -2,6 +2,7 @@
from AccessControl import getSecurityManager
from AccessControl import Unauthorized
+from zope.viewlet.viewlet import ViewletBase
from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
from zope.app.container.interfaces import IObjectRemovedEvent
from zope.viewlet.interfaces import IViewlet, IViewletManager
@@ -140,7 +141,7 @@
# that for TTW templates (which are trusted code) by
# creating a subclass with unrestricted access to all
# subobjects.
- class TTWViewlet(view):
+ class TTWViewlet(view, ViewletBase):
__allow_access_to_unprotected_subobjects__ = 1
view = TTWViewlet(self.context, self.request, self.viewlet, self.manager)
self.ttwviewlet = view
More information about the Checkins
mailing list