[Moin-devel] CVS: MoinMoin/formatter text_html.py,1.42,1.43
J?rgen Hermann
jhermann at users.sourceforge.net
Fri May 10 16:00:03 EDT 2002
Update of /cvsroot/moin/MoinMoin/formatter
In directory usw-pr-cvs1:/tmp/cvs-serv18229/formatter
Modified Files:
text_html.py
Log Message:
Added InterWiki link to page editor that opens in a new window;
added "target" keyword parameter to link calls for that purpose
Index: text_html.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/formatter/text_html.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** text_html.py 10 May 2002 11:39:01 -0000 1.42
--- text_html.py 10 May 2002 22:59:21 -0000 1.43
***************
*** 57,60 ****
--- 57,66 ----
def url(self, url, text=None, css=None, **kw):
+ """
+ Keyword params:
+ title - title attribute
+ target - target attribute
+ ... some more (!!! TODO)
+ """
url = wikiutil.mapURL(url)
pretty = kw.get('pretty_url', 0)
***************
*** 75,80 ****
--- 81,91 ----
str = str + '<a'
if css: str = '%s class="%s"' % (str, css)
+
title = kw.get('title', None)
if title: str = '%s title="%s"' % (str, title)
+
+ target = kw.get('target', None)
+ if target: str = '%s target="%s"' % (str, target)
+
str = '%s href="%s">%s</a>' % (str, cgi.escape(url, 1), text)
More information about the Moin-devel
mailing list