changeset 289:a83fb8e78dc7

text_x_arnica: bug fix don't ignore target_page
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 22 Sep 2008 11:27:57 +0200
parents 5f91eff1ae2b
children 739bce5ce3e7
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Sat Sep 20 15:43:16 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Mon Sep 22 11:27:57 2008 +0200
@@ -267,7 +267,7 @@
             if image_alias.get(attfile):
                 # use alias
                 description = image_alias.get(attfile)[0]
-            itemname = self.request.formatter.page.page_name + '/' + attfile
+            itemname = self.pagename + '/' + attfile
             img = self.Image(self.request, itemname)
             webnail = img.url(size=(self.webnail_width, self.webnail_width))
             thumbnail = img.url(size=(self.thumbnail_width, self.thumbnail_width))
@@ -298,7 +298,7 @@
         image_alias = {}
         counter = 0
         for attfile in _get_files(self.request, self.pagename):
-            itemname = formatter.page.page_name + '/' + attfile
+            itemname = self.pagename + '/' + attfile
             img = self.Image(self.request, itemname, raw=self.raw)
             if img.description != attfile:
                 image_alias[attfile] = (formatter.text(img.description), counter)