Commit ce011474 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 e0a0d2ad
......@@ -16,6 +16,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.11.1 (2008/07/17)
......
......@@ -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