diff MoinMoin/action/SyncPages.py @ 1096:33927b0256ce

Changed marshalling format of the full IWID, load full IWID into the RemoteWiki object.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sun, 30 Jul 2006 00:02:39 +0200
parents e2cc6b5bed96
children e22024151c2c
line wrap: on
line diff
--- a/MoinMoin/action/SyncPages.py	Sat Jul 29 23:55:31 2006 +0200
+++ b/MoinMoin/action/SyncPages.py	Sun Jul 30 00:02:39 2006 +0200
@@ -22,7 +22,7 @@
 
 
 from MoinMoin import wikiutil, config, user
-from MoinMoin.packages import unpackLine
+from MoinMoin.packages import unpackLine, packLine
 from MoinMoin.PageEditor import PageEditor
 from MoinMoin.Page import Page
 from MoinMoin.wikidicts import Dict, Group
@@ -89,10 +89,14 @@
         remote_interwikiname = self.getInterwikiName()
         remote_iwid = self.connection.interwikiName()[1]
         self.is_anonymous = remote_interwikiname is None
-        
         if not self.is_anonymous and interwikiname != remote_interwikiname:
             raise UnsupportedWikiException(_("The remote wiki uses a different InterWiki name internally than you specified."))
 
+        if self.is_anonymous:
+            self.iwid_full = remote_iwid
+        else:
+            self.iwid_full = packLine([remote_iwid, interwikiname])
+
     def createConnection(self):
         return xmlrpclib.ServerProxy(self.xmlrpc_url, allow_none=True, verbose=True)