[Python-checkins] python/dist/src/Mac/Lib macfs.py,1.2,1.3

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2002年12月26日 12:46:56 -0800


Update of /cvsroot/python/python/dist/src/Mac/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv865
Modified Files:
	macfs.py 
Log Message:
Return the macfs variation for FSSpec and Alias, not the underlying
Carbon.File version, so the old method names work.
Index: macfs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/macfs.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** macfs.py	24 Dec 2002 13:09:28 -0000	1.2
--- macfs.py	26 Dec 2002 20:46:54 -0000	1.3
***************
*** 69,73 ****
 		
 	def Resolve(self, src=None):
! 		return self.ResolveAlias(src)[1:]
 		
 from Carbon.File import FInfo
--- 69,74 ----
 		
 	def Resolve(self, src=None):
! 		fss, changed = self.ResolveAlias(src)
! 		return FSSpec(fss), changed
 		
 from Carbon.File import FInfo
***************
*** 79,83 ****
 
 def ResolveAliasFile(fss, chain=1):
! 	return Carbon.File.ResolveAliasFile(fss, chain)
 	
 def RawFSSpec(data):
--- 80,85 ----
 
 def ResolveAliasFile(fss, chain=1):
! 	fss, isdir, isalias = Carbon.File.ResolveAliasFile(fss, chain)
! 	return FSSpec(fss), isdir, isalias
 	
 def RawFSSpec(data):
***************
*** 91,95 ****
 	
 def NewAliasMinimalFromFullPath(path):
! 	return Carbon.Files.NewAliasMinimalFromFullPath(path, '', '')
 	
 # Finally, install nav services
--- 93,97 ----
 	
 def NewAliasMinimalFromFullPath(path):
! 	return Alias(Carbon.File.NewAliasMinimalFromFullPath(path, '', ''))
 	
 # Finally, install nav services

AltStyle によって変換されたページ (->オリジナル) /