[Pythonmac-SIG] now IDLE works, but PythonIDE doesn't

Carsten Albinger carsten.albinger@web.de
Thu, 26 Dec 2002 21:29:34 +0100


Hi,

Am Donnerstag, 26.12.02 um 08:12 Uhr schrieb Jan de Leeuw:

> build fine, but does not launch. Console says
>
> Traceback (most recent call last):
>   File  
> "/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/IDE/ 
> PythonIDE.py",
[skip]
>   File  
> "/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/IDE/ 
> Wapplication.py", line 302, in scriptswalk
>     creator, type = fss.GetCreatorType()
> AttributeError: 'Carbon.File.FSSpec' object has no attribute  
> 'GetCreatorType'

macfs.ResolveAliasFile simply returns the result tuple of
Carbon.File.ResolveAliasFile which has just a Carbon.File.FSSpec
as its first element.

This element should be wrapped with a macfs.FSSpec:

(File Mac/Lib/macfs.py):
def ResolveAliasFile(fss, chain=1):
         fsspec, isfolder, isalias = Carbon.File.ResolveAliasFile(fss,  
chain)
         return (FSSpec(itself=fsspec), isfolder, isalias)

I submitted a patch to the patch manager at SF (patch 658781).

Carsten