]> granicus.if.org Git - python/commitdiff
Return the macfs variation for FSSpec and Alias, not the underlying
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 26 Dec 2002 20:46:54 +0000 (20:46 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 26 Dec 2002 20:46:54 +0000 (20:46 +0000)
Carbon.File version, so the old method names work.

Mac/Lib/macfs.py

index 93f40e6a061014b1f02e727bd754a6bcd1d1d1f1..a0aa0322513390d94746ee385502ed0279e12240 100644 (file)
@@ -68,7 +68,8 @@ class Alias(Carbon.File.Alias):
                print "Alias.Update not yet implemented"
                
        def Resolve(self, src=None):
-               return self.ResolveAlias(src)[1:]
+               fss, changed = self.ResolveAlias(src)
+               return FSSpec(fss), changed
                
 from Carbon.File import FInfo
        
@@ -78,7 +79,8 @@ AliasType = Alias
 FInfoType = FInfo
 
 def ResolveAliasFile(fss, chain=1):
-       return Carbon.File.ResolveAliasFile(fss, chain)
+       fss, isdir, isalias = Carbon.File.ResolveAliasFile(fss, chain)
+       return FSSpec(fss), isdir, isalias
        
 def RawFSSpec(data):
        return FSSpec(rawdata=data)
@@ -90,7 +92,7 @@ def FindApplication(*args):
        raise NotImplementedError, "FindApplication no longer implemented"
        
 def NewAliasMinimalFromFullPath(path):
-       return Carbon.Files.NewAliasMinimalFromFullPath(path, '', '')
+       return Alias(Carbon.File.NewAliasMinimalFromFullPath(path, '', ''))
        
 # Finally, install nav services
 import macfsn
\ No newline at end of file