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 <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
c2fc81dd3d
commit
4f1cd05fdc
@ -108,10 +108,10 @@ class MachineUI(UIBase):
|
|||||||
(s.getnicename(sr), sf.getname(), s.getnicename(dr),
|
(s.getnicename(sr), sf.getname(), s.getnicename(dr),
|
||||||
df.getname()))
|
df.getname()))
|
||||||
|
|
||||||
def copyingmessage(s, uid, src, destfolder):
|
def copyingmessage(self, uid, srcfolder, destfolder):
|
||||||
s._printData('copyingmessage', "%d\n%s\n%s\n%s[%s]" % \
|
self._printData('copyingmessage', "%d\n%s\n%s\n%s[%s]" % \
|
||||||
(uid, s.getnicename(src), src.getname(),
|
(uid, self.getnicename(srcfolder), srcfolder.getname(),
|
||||||
destfolder.getnicename(), destfolder))
|
self.getnicename(destfolder), destfolder))
|
||||||
|
|
||||||
def folderlist(s, list):
|
def folderlist(s, list):
|
||||||
return ("\f".join(["%s\t%s" % (s.getnicename(x), x.getname()) for x in list]))
|
return ("\f".join(["%s\t%s" % (s.getnicename(x), x.getname()) for x in list]))
|
||||||
|
Loading…
Reference in New Issue
Block a user