Re: Dump content of single instance of MoinMoin
Roger Haase <crosseyedpenguin <at> yahoo.com>
2006-09-05 02:55:04 GMT
--- Peter Gylling Jørgensen <Peg <at> frv.dk> wrote:
> Thank you for the quick answer.
> Can you be a little more specific as I have to translate the
> commandline into something usefull on a linux box.
> Below you will find the responce I got from the moin.py script. As I
> have no prior experience with python, please point out, what it
> exactly is complaining about.
> peg <at> server.frv.dk> python
> /usr/lib/python2.3/site-packages/MoinMoin/script/moin.py \
> --config-dir=/usr/local/moin-1.5.3/share/moin/SeatrackProject \
> --wiki-url=server.frv.dk/SeatrackProject/ export dump
> Traceback (most recent call last):
> File "moin.py", line 22, in ?
> File "moin.py", line 15, in run
> line 82, in run
> line 141, in mainloop
> plugin_class(args[2:], self.options).run() # all starts again
> line 82, in run
> line 91, in mainloop
> outputdir = os.path.abspath(self.options.target_dir)
> File "/usr/lib/python2.3/posixpath.py", line 395, in abspath
> if not isabs(path):
> File "/usr/lib/python2.3/posixpath.py", line 49, in isabs
> return s.startswith('/')
> AttributeError: 'NoneType' object has no attribute 'startswith'
I was able to reproduce your problem on Fedora Core 4 with Python 2.4.
The problem seems to be in dump.py on line 93:
outputdir = os.path.abspath(self.options.target_dir)
On Windows, self.options.target_dir has the value None when the
statement is executed and outputdir is set to the current directory --
all the HTML files are then written to the current directory.
On Linux, the results are as posted above.
I was able to work around the problem by commenting out line 93 in
dump.py and adding the following new line:
# outputdir = os.path.abspath(self.options.target_dir)
outputdir = '/home/myname/myoutputdir'
Unless someone else can offer an explanation of what we are doing
wrong, I will add this to the buglist tomorrow.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo