comparison MoinMoin/converter/text_html_text_moin_wiki.py @ 1318:760002b5ffa3

use url_prefix_static = '/moin_static160' instead of url_prefix = '/wiki' to avoid user confusion and stale caches
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 18 Aug 2006 23:23:27 +0200
parents e1e1885deec1
children b3a47164c22a
comparison
equal deleted inserted replaced
1317:76a76def8687 1318:760002b5ffa3
1190 elif title and title.startswith("drawing:"): 1190 elif title and title.startswith("drawing:"):
1191 self.text.extend([self.white_space, 1191 self.text.extend([self.white_space,
1192 wikiutil.url_unquote(title), 1192 wikiutil.url_unquote(title),
1193 self.white_space]) 1193 self.white_space])
1194 # Smiley 1194 # Smiley
1195 elif src and (self.request.cfg.url_prefix in src or '../' in src) and "img/" in src: # XXX this is dirty! 1195 elif src and (self.request.cfg.url_prefix_static in src or '../' in src) and "img/" in src: # XXX this is dirty!
1196 filename = src.split("/")[-1] 1196 filename = src.split("/")[-1]
1197 for markup, data in self.request.theme.icons.iteritems(): 1197 for markup, data in self.request.theme.icons.iteritems():
1198 if data[1] == filename: 1198 if data[1] == filename:
1199 self.text.extend([self.white_space, markup, self.white_space]) 1199 self.text.extend([self.white_space, markup, self.white_space])
1200 return 1200 return