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
- 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)
......
......@@ -92,6 +92,8 @@ class PageTemplate(ExtensionClass.Base,
sourceAnnotations = getattr(debug, 'sourceAnnotations', False)
else:
showtal = sourceAnnotations = False
if source:
showtal = True
return super(PageTemplate, self).pt_render(c, source=source, sourceAnnotations=sourceAnnotations,
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