Mercurial > public > src > moin > extensions
diff data/plugin/parser/text_x_arnica.py @ 152:7438cd3fdfba
text_x_arnica: removed internal duplicate of _get_files
author | Reimar Bauer <rb.proj AT googlemail DOT com> |
---|---|
date | Fri, 11 Jul 2008 17:23:27 +0200 |
parents | 62a6c964e63b |
children | 3abe0bd083b2 |
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py Fri Jul 11 12:56:16 2008 +0200 +++ b/data/plugin/parser/text_x_arnica.py Fri Jul 11 17:23:27 2008 +0200 @@ -192,12 +192,11 @@ return date def _get_files(request, pagename): - # ToDo AttachFile._get_files and filter result - attach_dir = AttachFile.getAttachDir(request, pagename) - files = [] - if os.path.isdir(attach_dir): - files = [fn.decode(config.charset) for fn in os.listdir(attach_dir) - if wikiutil.isPicture(fn) and not fn.startswith('tmp.')] + # get files dependent on isPicture and ignores tmp. files + # ToDo remove tmp. files check later + + files = AttachFile._get_files(request, pagename) + files = [fn for fn in files if wikiutil.isPicture(fn) and not fn.startswith('tmp.')] return files def getCacheUrl(base_url, pagename, filename):