[Moin-user] getting xmlrpc-tools/HelloWorld.py to work

greg whittier gregwh at gmail.com
Sat Jun 18 11:13:09 EDT 2005

Hi all,

I'm trying to figure out how to improve the integration of MoinMoin
into the workflow.  The main problem is easily getting text and
attachments out of email and hardrives on to the wiki.  (Using html
forms for cut and pasting text and uploading files is enough to
discourage many.)  I've toyed with the idea of writing some kind of
client and wikirpc looks useful, but I haven't got past HelloWorld!

Running the script in MoinMoin/script/xmlrpc-tools works as it is with
moinmaster.wikiwikiweb.de:8000 works but changing srcwiki to
   srcwiki = xmlrpclib.ServerProxy("http:/localhost/mywiki/?action=xmlrpc2")
gives the following

  File "HelloWorld.py", line 14, in ?
    print srcwiki.HelloWorld("Hello Wiki User!\n")
  File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.3/xmlrpclib.py", line 1316, in __request
  File "/usr/lib/python2.3/xmlrpclib.py", line 1080, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.3/xmlrpclib.py", line 1219, in _parse_response
    return u.close()
  File "/usr/lib/python2.3/xmlrpclib.py", line 742, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: 'xml.parsers.expat.ExpatError: no element
found: line 1, column 0\n  File
"/usr/lib/python2.3/site-packages/MoinMoin/wikirpc.py", line 406, in
process\n    params, method = xmlrpclib.loads(data)\n\n  File
"/usr/lib/python2.3/xmlrpclib.py", line 1013, in loads\n   
p.close()\n\n  File "/usr/lib/python2.3/xmlrpclib.py", line 531, in
close\n    self._parser.Parse("", 1) # end of data\n'>

I'm running moin 1.3.4 using fastcgi on apache 1.3.27 and xandros 2.0
(debian-based linux distro).

Any ideas?


More information about the Moin-user mailing list