From 4f1cd05fdc8f9abccacbdd5c6a911fb574a8bcce Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Thu, 18 Aug 2011 09:05:45 +0200 Subject: [PATCH] Fix copyingmessage() in Machine UI I changed the API to pass in a folder rather than a list of folders, but used getnicename() on the wrong object. It is not used on the folder but on the ui object. Fix this and give the variable somewhat better names. Signed-off-by: Sebastian Spaeth Signed-off-by: Nicolas Sebrecht --- offlineimap/ui/Machine.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/offlineimap/ui/Machine.py b/offlineimap/ui/Machine.py index bb8c7fa..7a480ae 100644 --- a/offlineimap/ui/Machine.py +++ b/offlineimap/ui/Machine.py @@ -108,10 +108,10 @@ class MachineUI(UIBase): (s.getnicename(sr), sf.getname(), s.getnicename(dr), df.getname())) - def copyingmessage(s, uid, src, destfolder): - s._printData('copyingmessage', "%d\n%s\n%s\n%s[%s]" % \ - (uid, s.getnicename(src), src.getname(), - destfolder.getnicename(), destfolder)) + def copyingmessage(self, uid, srcfolder, destfolder): + self._printData('copyingmessage', "%d\n%s\n%s\n%s[%s]" % \ + (uid, self.getnicename(srcfolder), srcfolder.getname(), + self.getnicename(destfolder), destfolder)) def folderlist(s, list): return ("\f".join(["%s\t%s" % (s.getnicename(x), x.getname()) for x in list]))