changeset 86:88243aba10ce

text_x_arnica: get_files by AttachFile to do the right encoding
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 19 Jun 2008 21:49:11 +0200
parents d705644861dc
children d60f41c17f42
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	Thu Jun 19 20:50:36 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Thu Jun 19 21:49:11 2008 +0200
@@ -382,7 +382,7 @@
 
         if self.only_items:
             files = quotes['image']
-            all_files = [attfile for attfile in files if os.path.exists(os.path.join(path, attfile))]
+            all_files = [attfile for attfile in files if AttachFile.exists(self.request, self.pagename, attfile)]
 
             if self.sort_by_alias:
                 alias_text = quotes['alias']
@@ -395,7 +395,7 @@
                 all_files = [image_dict[txt] for txt in keys]
 
         else:
-            all_files = os.listdir(path)
+            all_files = AttachFile._get_files(self.request, self.pagename)
 
         if self.file_regex != u'.':
             all_files = [attfile for attfile in all_files if re.match(self.file_regex, attfile)]