changeset 139:639dc94d4c52

fixed MoinMoinBugs/GUIEditorInsertsQuestionmark imported from: moin--main--1.5--patch-141
author Florian Festi <Florian.Festi@trick.informatik.uni-stuttgart.de>
date Wed, 26 Oct 2005 21:07:19 +0000
parents 81654a482b3a
children 6a19d2b98493
files MoinMoin/formatter/text_gedit.py
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_gedit.py	Tue Oct 25 16:31:32 2005 +0000
+++ b/MoinMoin/formatter/text_gedit.py	Wed Oct 26 21:07:19 2005 +0000
@@ -35,6 +35,19 @@
 
     # Links ##############################################################
 
+    def pagelink(self, on, pagename='', page=None, **kw):
+        """ Link to a page.
+
+            formatter.text_python will use an optimized call with a page!=None
+            parameter. DO NOT USE THIS YOURSELF OR IT WILL BREAK.
+
+            See wikiutil.link_tag() for possible keyword parameters.
+        """
+        apply(FormatterBase.pagelink, (self, on, pagename, page), kw)
+        if page is None:
+            page = Page(self.request, pagename, formatter=self);
+        return page.link_to(self.request, on=on, **kw)
+
     def interwikilink(self, on, interwiki='', pagename='', **kw):
         """
         @keyword title: override using the interwiki wikiname as title