# HG changeset patch # User Goffi # Date 1410183745 -7200 # Node ID 900014ae36b815b795a2eb3eeef7a1a8ebcb9327 # Parent fdd0543677d419b6fd329e7ff8095dcf5f99143b fixed unicode issue invalid method call in files_management diff -r fdd0543677d4 -r 900014ae36b8 urwid_satext/files_management.py --- a/urwid_satext/files_management.py Mon Sep 08 15:42:25 2014 +0200 +++ b/urwid_satext/files_management.py Mon Sep 08 15:42:25 2014 +0200 @@ -91,6 +91,7 @@ return self._w.keypress(size, key) def showDirectory(self, path): + path = path.encode('utf-8') self.path = path del self.files_list[:] directories = [] @@ -233,13 +234,13 @@ def onPreviousDir(self, wid): path = os.path.abspath(self.path_wid.get_edit_text()) if not os.path.isdir(path): - path = dirname(path) + path = os.path.dirname(path) self.path_wid.set_edit_text(os.path.split(path)[0]) def onDirClick(self, wid): path = os.path.abspath(self.path_wid.get_edit_text()) if not os.path.isdir(path): - path = dirname(path) + path = os.path.dirname(path) self.path_wid.set_edit_text(os.path.join(path,wid.get_text())) def onFileClick(self, wid):