From 315e9bebcd990fd93dcba056851bc806d1f2af47 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 26 Dec 2002 20:46:54 +0000 Subject: [PATCH] Return the macfs variation for FSSpec and Alias, not the underlying Carbon.File version, so the old method names work. --- Mac/Lib/macfs.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Mac/Lib/macfs.py b/Mac/Lib/macfs.py index 93f40e6a06..a0aa032251 100644 --- a/Mac/Lib/macfs.py +++ b/Mac/Lib/macfs.py @@ -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 -- 2.40.0