comparison MoinMoin/PageGraphicalEditor.py @ 4579:87d97510de79

getScriptname() -> script_root, getBaseURL() -> url_root (for werkzeug API)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 15 Feb 2009 01:37:51 +0100
parents 331686d6b068
children 268004c7b206
comparison
equal deleted inserted replaced
4578:ace3bbadf66d 4579:87d97510de79
311 uilanguage = request.lang 311 uilanguage = request.lang
312 url_prefix_static = request.cfg.url_prefix_static 312 url_prefix_static = request.cfg.url_prefix_static
313 url_prefix_local = request.cfg.url_prefix_local 313 url_prefix_local = request.cfg.url_prefix_local
314 wikipage = wikiutil.quoteWikinameURL(self.page_name) 314 wikipage = wikiutil.quoteWikinameURL(self.page_name)
315 fckbasepath = url_prefix_local + '/applets/FCKeditor' 315 fckbasepath = url_prefix_local + '/applets/FCKeditor'
316 wikiurl = request.script_root 316 wikiurl = request.script_root + '/'
317 if not wikiurl or wikiurl[-1] != '/':
318 wikiurl += '/'
319 themepath = '%s/%s' % (url_prefix_static, request.theme.name) 317 themepath = '%s/%s' % (url_prefix_static, request.theme.name)
320 smileypath = themepath + '/img' 318 smileypath = themepath + '/img'
321 # auto-generating a list for SmileyImages does NOT work from here! 319 # auto-generating a list for SmileyImages does NOT work from here!
322 editor_size = int(request.user.edit_rows) * 22 # 22 height_pixels/line 320 editor_size = int(request.user.edit_rows) * 22 # 22 height_pixels/line
323 word_rule = self.word_rule() 321 word_rule = self.word_rule()