Attachment 'workaround.diff'
Download 1 # HG changeset patch
2 # User anarcat@localhost
3 # Date 1180486215 14400
4 # Node ID 5d031abeff35b91ddb8f24f91e158d124bb967bf
5 # Parent 10fc3d44c45d5a26118f7123a194f7da6ca89142
6 try to handle gracefully the case where the xmlrpc code doesn't raise the proper exception when remote wiki doesn't support the right extensions
7
8 diff -r 10fc3d44c45d -r 5d031abeff35 MoinMoin/wikisync.py
9 --- a/MoinMoin/wikisync.py Tue May 29 20:49:22 2007 -0400
10 +++ b/MoinMoin/wikisync.py Tue May 29 20:50:15 2007 -0400
11 @@ -192,8 +192,16 @@ class MoinRemoteWiki(RemoteWiki):
12 else:
13 self.token = None
14
15 - self.remote_interwikiname = remote_interwikiname = iw_list[0]
16 - self.remote_iwid = remote_iwid = iw_list[1]
17 + try:
18 + self.remote_interwikiname = remote_interwikiname = iw_list[0]
19 + self.remote_iwid = remote_iwid = iw_list[1]
20 + except KeyError:
21 + # XXX: some XML-RPC errors don't raise an XML-RPC Fault and propagate through here, catch it manually
22 + if iw_list.has_key('faultCode'):
23 + raise UnsupportedWikiException(_("The remote version of MoinMoin is too old, version 1.6 is required at least."))
24 + else:
25 + pass
26 +
27 self.is_anonymous = remote_interwikiname is None
28 if not self.is_anonymous and interwikiname != remote_interwikiname:
29 raise UnsupportedWikiException(_("The remote wiki uses a different InterWiki name (%(remotename)s)"
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.