Commit 240b8a81 authored by Andreas Jung's avatar Andreas Jung

- Launchpad #262313: respect the 'Expand macros when editing' flag

  when editing a page template through the ZMI
parent 87f18e5a
...@@ -24,6 +24,9 @@ Zope Changes ...@@ -24,6 +24,9 @@ Zope Changes
- integrated Hotfix-2008-08-12 - integrated Hotfix-2008-08-12
- Launchpad #262313: respect the 'Expand macros when editing' flag
when editing a page template through the ZMI
Zope 2.10.6 (2008/05/10) Zope 2.10.6 (2008/05/10)
......
...@@ -92,6 +92,8 @@ class PageTemplate(ExtensionClass.Base, ...@@ -92,6 +92,8 @@ class PageTemplate(ExtensionClass.Base,
sourceAnnotations = getattr(debug, 'sourceAnnotations', False) sourceAnnotations = getattr(debug, 'sourceAnnotations', False)
else: else:
showtal = sourceAnnotations = False showtal = sourceAnnotations = False
if source:
showtal = True
return super(PageTemplate, self).pt_render(c, source=source, sourceAnnotations=sourceAnnotations, return super(PageTemplate, self).pt_render(c, source=source, sourceAnnotations=sourceAnnotations,
showtal=showtal) showtal=showtal)
......
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