[Moin-user] IncludeURL
Michael Montagne
montagne at boora.com
Wed Apr 23 16:50:04 EDT 2003
I'm using moinmoin1.1. Trying to use the IncludeUrl macro
The only text in the page is
[[IncludeUrl(http://www.themontagnes.com)]]
Type Error: __init__() takes exactly 2 arguments (1 given) Python 2.2.2
/usr/bin/python
A problem occurred while running a Python script. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call first. The exception attributes are:
__doc__ = 'Inappropriate argument type.'
__getitem__ = <bound method TypeError.__getitem__ of <exceptions.TypeError instance at 0x826000c>>
__init__ = <bound method TypeError.__init__ of <exceptions.TypeError instance at 0x826000c>>
__module__ = 'exceptions'
__str__ = <bound method TypeError.__str__ of <exceptions.TypeError instance at 0x826000c>>
args = ('__init__() takes exactly 2 arguments (1 given)',)
/usr/lib/python2.2/site-packages/MoinMoin/macro/IncludeUrl.py in execute(macro=<MoinMoin.wikimacro.Macro instance>, text='http://www.themontagnes.com', args_re=<_sre.SRE_Pattern object>)
76 if this_page._macroInclude_pagelist.has_key(inc_name):
77 ret = ret + '<p><strong class="error">Recursive include of "%s" forbidden</strong></p>' % (inc_name,)
78 inc_page = PageUrl(inc_name, formatter=macro.formatter.__class__())
inc_page = undefined, global PageUrl = <class MoinMoin.macro.IncludeUrl.PageUrl>, inc_name = 'http://www.themontagnes.com', global formatter = undefined, macro = <MoinMoin.wikimacro.Macro instance>, global __class__ = undefined
79 inc_page._macroInclude_pagelist = this_page._macroInclude_pagelist
80
More information about the Moin-user
mailing list