[Moin-user] Re: Re: getting started with page layout tweaking - need pointers
Skip Montanaro
skip at pobox.com
Tue Aug 5 19:36:03 EDT 2003
Mike> You can use standard wiki syntax for referencies, for ex.
Mike> [http://www.python.org PySite]
>> Doesn't work for me....
Mike> FWIW using [url name] syntax in user preference works, so you may
Mike> want to take a look at the processing code.
Thanks. The change to the #redirect processor was pretty trivial. Instead
of assuming it's a WikiName, I check the first and last characters to see if
they are '[' and ']', respectively:
if pi_redirect[:1] =='[' and pi_redirect[-1:] == ']':
webapi.http_redirect(request, string.strip(pi_redirect[1:-1]))
else:
webapi.http_redirect(request, '%s/%s?action=show&redirect=%s' % (
webapi.getScriptname(),
wikiutil.quoteWikiname(pi_redirect),
urllib.quote_plus(self.page_name, ''),))
(The above is in MoinMoin/Page.py, at least in 1.0.)
Since this is the argument to a #redirect and isn't rendered in the common
case, there's no real need for the full [url text] functionality.
Skip
More information about the Moin-user
mailing list