[Moin-user] Re: url_mappings error with navlinks
Sandip Bhattacharya
sandip at lug-delhi.org
Wed Jan 26 00:14:07 EST 2005
On Thu, 2005-01-20 at 17:46 +0100, Alexander Schremmer wrote:
> On Thu, 20 Jan 2005 14:50:14 +0530, Sandip Bhattacharya wrote:
>
> > Has anybody else seen this error?
> >
> > If i use an url_mappings value = {"/cgi-bin/moin.cgi/":"/"}
> > and if nav_links has an absolute url like u'http://www.linux-delhi.org',
> > then MoinMoin 1.3.1 barfs all over the page.
>
> Do you mean the navibar? Try to use u'[http://www.linux-delhi.org
> linux-delphi]'.
Just now upgraded to moin-1.3.3 and i am still getting the same error. I
went through the traceback carefully, and couldnt understand one section
of it. Here is the full description of the problem:
I am using the following line in wikiconfig.py. Adding this line makes
moin come up with the exception.
url_mappings = {"/cgi-bin/moin.cgi/":"/"}
I find the following part of the traceback weird:
/usr/lib/python2.3/site-packages/MoinMoin/wikiutil.py in link_tag
(request=<MoinMoin.request.RequestCGI instance>, params='FrontPage',
text=u'FrontPage', formatter=<MoinMoin.formatter.text_html.Formatter
instance>, on=None, **kw={})
861 css_class, **kw)
862 return (formatter.url(1, "%s/%s" % (request.getScriptname
(), params),
863 css_class, **kw) +
864 formatter.rawHTML(text) +
865 formatter.url(0))
css_class = None, kw = {}
/usr/lib/python2.3/site-packages/MoinMoin/formatter/text_html.py in url
(self=<MoinMoin.formatter.text_html.Formatter instance>, on=0, url=None,
css=None, **kw={})
262 ... some more (!!! TODO)
263 """
264 url = wikiutil.mapURL(self.request, url)
265 pretty = kw.get('pretty_url', 0)
266 title = kw.get('title', None)
url = None, global wikiutil = <module 'MoinMoin.wikiutil' from
'/usr/lib/python2.3/site-packages/MoinMoin/wikiutil.py'>,
wikiutil.mapURL = <function mapURL>, self =
<MoinMoin.formatter.text_html.Formatter instance>, self.request =
<MoinMoin.request.RequestCGI instance>
Somehow line 862 of wikiutil.py is sending a valid URL to formatter.url,
but the latter is not receiving any URL in its parameters.
How is this possible?
- Sandip
--
Sandip Bhattacharya * Puroga Technologies * sandip at puroga.com
Work: http://www.puroga.com * Home/Blog: http://www.sandipb.net/blog
PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3
More information about the Moin-user
mailing list