[Python-checkins] python/dist/src/Lib/plat-mac EasyDialogs.py,1.2,1.3
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Fri, 17 Jan 2003 15:13:05 -0800
Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv4402/Lib/plat-mac
Modified Files:
EasyDialogs.py
Log Message:
Fixed the first two bugs in the new file dialogs (found by Just):
- AskFileForSave didn't work for string return values
- filterProc didn't work.
Index: EasyDialogs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/EasyDialogs.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** EasyDialogs.py 17 Jan 2003 16:04:39 -0000 1.2
--- EasyDialogs.py 17 Jan 2003 23:13:02 -0000 1.3
***************
*** 31,34 ****
--- 31,35 ----
import macfs
import macresource
+ import os
_initialized = 0
***************
*** 661,665 ****
vrefnum, dirid, name = rr.selection[0].as_tuple()
pardir_fss = Carbon.File.FSSpec((vrefnum, dirid, ''))
! pardir_fsr = Carbon.File.FSRef(fss)
pardir_path = pardir_fsr.FSRefMakePath() # This is utf-8
name_utf8 = unicode(name, 'macroman').encode('utf8')
--- 662,666 ----
vrefnum, dirid, name = rr.selection[0].as_tuple()
pardir_fss = Carbon.File.FSSpec((vrefnum, dirid, ''))
! pardir_fsr = Carbon.File.FSRef(pardir_fss)
pardir_path = pardir_fsr.FSRefMakePath() # This is utf-8
name_utf8 = unicode(name, 'macroman').encode('utf8')