[Moin-user] Dump content of single instance of MoinMoin
Roger Haase
crosseyedpenguin at yahoo.com
Mon Sep 4 22:55:04 EDT 2006
--- 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.
>
> COMMAND:
> 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
>
> ERROR:
> Traceback (most recent call last):
> File "moin.py", line 22, in ?
> run()
> File "moin.py", line 15, in run
> _util.MoinScript().run(showtime=0)
> File
>
"/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/_util.py",
> line 82, in run
> self.mainloop()
> File
>
"/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/_util.py",
> line 141, in mainloop
> plugin_class(args[2:], self.options).run() # all starts again
> there
> File
>
"/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/_util.py",
> line 82, in run
> self.mainloop()
> File
>
"/usr/local/moin-1.5.3/lib/python2.3/site-packages/MoinMoin/script/export/dump.py",
> 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'
>
> \pgj
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.
Roger Haase
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Moin-user
mailing list