Description

xmlrpc.getAttachment looks like it cant be used for ascii files. For binary data it works.

   1 import xmlrpclib
   2 name = "TestUser"
   3 password = "secret"
   4 wikiurl = "http://localhost:8080"
   5 homewiki = xmlrpclib.ServerProxy(wikiurl + "?action=xmlrpc2",
   6                                  allow_none=True)
   7 auth_token = homewiki.getAuthToken(name, password)
   8 dummy = homewiki.applyAuthToken(auth_token)
   9 pagename = 'TestSeite'
  10 attachname = 'Datei.txt'
  11 data = homewiki.getAttachment(pagename, attachname)
  12 print data

Steps to reproduce

  1. do this...

Example

Component selection

Details

MoinMoin Version

1.6dev

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

I have problems to reproduce the wrong behaviour currently in 1.6/1.7.

If I get it back wrong I will reopen it and give more details.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/1.6devXmlrpc.getAttachment (last edited 2007-10-29 19:06:49 by localhost)