Mercurial > public > src > moin > extensions
diff data/plugin/parser/text_x_arnica.py @ 222:873b2bb15da8
text_x_arnica: renamed text var into html
author | Reimar Bauer <rb.proj AT googlemail DOT com> |
---|---|
date | Mon, 01 Sep 2008 17:58:33 +0200 |
parents | 64d438ab8272 |
children | b70f83d3aa46 |
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py Mon Sep 01 17:51:46 2008 +0200 +++ b/data/plugin/parser/text_x_arnica.py Mon Sep 01 17:58:33 2008 +0200 @@ -209,9 +209,9 @@ @param idx: index postion of corresponding data """ - # ToDo s/text/html/ + this_image = self.high_resolution_image[idx] - text = """ + html = """ <form action="%(url)s" method="POST" enctype="multipart/form-data"> <div class="get-image"> <input type="hidden" name="action" value="AttachFile"> @@ -253,44 +253,44 @@ "thumbnail": "%s%s" % (AttachFile.getAttachUrl(self.pagename, '', self.request), self.thumb_key[idx]), "html_tools_restricted": self.html_tools_restricted(this_image), } - return text + return html def html_show_tools(self, idx): """ shows toolbox """ - # ToDo s/text/html/ - text = '' + + html = '' if self.show_tools: - text = '<div class="html-show-tools">%(tools)s</div>' % { + html = '<div class="html-show-tools">%(tools)s</div>' % { "style": self.td_style, "tools": self.html_tools(idx)} - return text + return html def html_show_date(self, idx): """ shows date """ - # ToDo s/text/html/ - text = '' + + html = '' if self.show_date: - text = '<div class="html-show-date">%(this_exif_date)s</div>' % { + html = '<div class="html-show-date">%(this_exif_date)s</div>' % { "this_exif_date": self.formatter.text(self.exif_date[idx])} - return text + return html def html_show_alias(self, idx): """ view mode 1 alias text below image """ - # ToDo s/text/html/ - text = '' + + html = '' if self.show_text: - text = '<div class="html-show-alias"> %(this_alias)s</div>' % { + html = '<div class="html-show-alias"> %(this_alias)s</div>' % { "this_alias": self.to_wikitext(self.description[idx])} - return text + return html def html_arrange_thumbnails(self, idx): """ defines arrangement of thumbnail, text, date and tools """ - # ToDo s/text/html/ + title = "" if self.album: title = '<div class="title">%(n)d images (%(album_title)s)</div>' % {"n": len(self.high_resolution_image), "album_title": self.album_title or self.pagename} - text = """ + html = """ <div class="arrange-thumbnails"> <form action="%(url)s" method="POST" enctype="multipart/form-data"> <div class="image"> %(title)s @@ -328,7 +328,7 @@ "date_html": self.html_show_date(idx), "alias_html": self.html_show_alias(idx), } - return text + return html def define_thumb_webnails(self, path, files, quotes): """ creates lists for thumbnails and webnails