Re: [Pgu-devel] FileDialog bug
Status: Beta
Brought to you by:
philhassey
|
From: Phil H. <phi...@ya...> - 2006-04-27 04:49:29
|
Jason, thanks for the patch. I've applied it to svn svn://www.imitationpickles.org/pgu/trunk/ -- for the latest Phil Jason Liu <tel...@gm...> wrote: Hi I find a minor bug about FileDialog. If current path includes a directory named such as !XXXX ( ! is the first letter), the parent directory sign ".." will not be the top item of the list. This bug seems to be fixed by changing some code of FileDialog._list_dir() in dialog.py 119 if '..' not in dirs: dirs.append('..') # since python documentation says dirs = os.listdir() would not include '..' and '.', this line can be commented safely. 120 dirs.sort() to # if '..' not in dirs: dirs.append('..') dirs.sort() dirs = ['..'] + dirs --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. |