changeset 522:0d5369896835

macro.DictColumns: also for extensions macro Image use the page_name of the image similar to the attachment:
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 23 Apr 2010 22:29:49 +0200
parents 31e327c450ca
children fe7e720bd778
files data/plugin/macro/DictColumns.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/DictColumns.py	Mon Mar 22 00:38:06 2010 +0100
+++ b/data/plugin/macro/DictColumns.py	Fri Apr 23 22:29:49 2010 +0200
@@ -189,7 +189,9 @@
             for name in names:
                 if name in page_dict.keys():
                     value = page_dict.get(name, '')
-                    value = value.replace('attachment:', 'attachment:%s/' % name)
+                    value = value.replace('attachment:', 'attachment:%s/' % page_name)
+                    value = value.replace('<<Image(', '<<Image(%s/' % page_name)
+
                     if self.wiki_parser:
                         row.append((wikiutil.renderText(request, self.wiki_parser, value),
                                     wikiutil.escape(value, 1)))