diff MoinMoin/theme/__init__.py @ 1341:f4558797325a

new page.link_to_raw function, use more page.link_to(_raw) instead of lowlevel wikiutil.link_tag, use more query dicts instead of strs
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 20 Aug 2006 15:51:08 +0200
parents 544b931cd965
children b65614f8a393
line wrap: on
line diff
--- a/MoinMoin/theme/__init__.py	Sun Aug 20 13:51:01 2006 +0200
+++ b/MoinMoin/theme/__init__.py	Sun Aug 20 15:51:08 2006 +0200
@@ -1158,10 +1158,10 @@
         _ = self.request.getText
         return """\
 <script type="text/javascript">
-var gui_editor_link_href = "%(url)s?action=edit&editor=gui";
+var gui_editor_link_href = "%(url)s";
 var gui_editor_link_text = "%(text)s";
 </script>        
-""" % {'url': page.url(self.request),
+""" % {'url': page.url(self.request, querystr={'action': 'edit', 'editor': 'gui', }, escape=0),
        'text': _('Edit (GUI)', formatted=False),
       }