summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-26 20:46:54 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-26 20:46:54 (GMT)
commit315e9bebcd990fd93dcba056851bc806d1f2af47 (patch)
tree41fcade3efceb36f2b73ea7c9c4ce926011ecb7c /Mac/Lib
parent248f6f1f73ffff0e3a4445c59009ecc3e64bca1e (diff)
downloadcpython-315e9bebcd990fd93dcba056851bc806d1f2af47.zip
cpython-315e9bebcd990fd93dcba056851bc806d1f2af47.tar.gz
cpython-315e9bebcd990fd93dcba056851bc806d1f2af47.tar.bz2
Return the macfs variation for FSSpec and Alias, not the underlying
Carbon.File version, so the old method names work.
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/macfs.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Mac/Lib/macfs.py b/Mac/Lib/macfs.py
index 93f40e6..a0aa032 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