Commit 91668035 authored by Evan Simpson's avatar Evan Simpson

Fix up ZopePageTemplate inheritance

parent 2f697995
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
Zope object encapsulating a Page Template. Zope object encapsulating a Page Template.
""" """
__version__='$Revision: 1.5 $'[11:-2] __version__='$Revision: 1.6 $'[11:-2]
import os, AccessControl, Acquisition, sys import os, AccessControl, Acquisition, sys
from Globals import DTMLFile, MessageDialog, package_home from Globals import DTMLFile, MessageDialog, package_home
...@@ -110,7 +110,7 @@ try: ...@@ -110,7 +110,7 @@ try:
except ImportError: except ImportError:
SUPPORTS_WEBDAV_LOCKS = 0 SUPPORTS_WEBDAV_LOCKS = 0
class ZopePageTemplate(PageTemplate, Script, Historical, Cacheable, class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
Traversable): Traversable):
"Zope wrapper for Page Template using TAL, TALES, and METAL" "Zope wrapper for Page Template using TAL, TALES, and METAL"
...@@ -230,6 +230,8 @@ class ZopePageTemplate(PageTemplate, Script, Historical, Cacheable, ...@@ -230,6 +230,8 @@ class ZopePageTemplate(PageTemplate, Script, Historical, Cacheable,
def _exec(self, bound_names, args, kw): def _exec(self, bound_names, args, kw):
"""Call a Page Template""" """Call a Page Template"""
if not kw.has_key('args'):
kw['args'] = args
bound_names['options'] = kw bound_names['options'] = kw
try: try:
......
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