Commit 95df3fd1 authored by Jack Jansen's avatar Jack Jansen

Second part of fix for #493826: regenerated suite modules so errn exists but...

Second part of fix for #493826: regenerated suite modules so errn exists but == 0 doesn't signal an error.

Bugfix candidate.
parent 18983536
...@@ -37,7 +37,7 @@ class CodeWarrior_suite_Events: ...@@ -37,7 +37,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -61,7 +61,7 @@ class CodeWarrior_suite_Events: ...@@ -61,7 +61,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -80,7 +80,7 @@ class CodeWarrior_suite_Events: ...@@ -80,7 +80,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -100,7 +100,7 @@ class CodeWarrior_suite_Events: ...@@ -100,7 +100,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -120,7 +120,7 @@ class CodeWarrior_suite_Events: ...@@ -120,7 +120,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -140,7 +140,7 @@ class CodeWarrior_suite_Events: ...@@ -140,7 +140,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -159,7 +159,7 @@ class CodeWarrior_suite_Events: ...@@ -159,7 +159,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -179,7 +179,7 @@ class CodeWarrior_suite_Events: ...@@ -179,7 +179,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -198,7 +198,7 @@ class CodeWarrior_suite_Events: ...@@ -198,7 +198,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -217,7 +217,7 @@ class CodeWarrior_suite_Events: ...@@ -217,7 +217,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -237,7 +237,7 @@ class CodeWarrior_suite_Events: ...@@ -237,7 +237,7 @@ class CodeWarrior_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
...@@ -33,7 +33,7 @@ class Required_Events(Required_Suite_Events): ...@@ -33,7 +33,7 @@ class Required_Events(Required_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
...@@ -35,7 +35,7 @@ class Standard_Suite_Events(Standard_Suite_Events): ...@@ -35,7 +35,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -61,7 +61,7 @@ class Standard_Suite_Events(Standard_Suite_Events): ...@@ -61,7 +61,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -87,7 +87,7 @@ class Standard_Suite_Events(Standard_Suite_Events): ...@@ -87,7 +87,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -120,7 +120,7 @@ class Standard_Suite_Events(Standard_Suite_Events): ...@@ -120,7 +120,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -140,7 +140,7 @@ class Standard_Suite_Events(Standard_Suite_Events): ...@@ -140,7 +140,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -165,7 +165,7 @@ class Standard_Suite_Events(Standard_Suite_Events): ...@@ -165,7 +165,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
"""Suite Microsoft Internet Explorer Suite: Events defined by Internet Explorer """Suite Microsoft Internet Explorer Suite: Events defined by Internet Explorer
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -13,8 +13,8 @@ _code = 'MSIE' ...@@ -13,8 +13,8 @@ _code = 'MSIE'
class Microsoft_Internet_Explorer_Events: class Microsoft_Internet_Explorer_Events:
def GetSource(self, _object=None, _attributes={}, **_arguments): def GetSource(self, _object=None, _attributes={}, **_arguments):
"""GetSource: Get the html source of a browser window """GetSource: Get the HTML source of a browser window
Required argument: The index of the window to get the source from. No value means get the source from the frontmost browser window. Required argument: Window Identifier of window from which to get the source. No value means get the source from the frontmost window.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: undocumented, typecode 'TEXT' Returns: undocumented, typecode 'TEXT'
""" """
...@@ -27,7 +27,7 @@ class Microsoft_Internet_Explorer_Events: ...@@ -27,7 +27,7 @@ class Microsoft_Internet_Explorer_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -40,7 +40,7 @@ class Microsoft_Internet_Explorer_Events: ...@@ -40,7 +40,7 @@ class Microsoft_Internet_Explorer_Events:
def do_script(self, _object, _attributes={}, **_arguments): def do_script(self, _object, _attributes={}, **_arguments):
"""do script: Execute script commands """do script: Execute script commands
Required argument: JavaScript text to execute Required argument: JavaScript text to execute
Keyword argument window: optional ID of window (as specified by the ListWindows event) to execute the script in Keyword argument window: optional Window Identifier (as supplied by the ListWindows event) specifying context in which to execute the script
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Return value Returns: Return value
""" """
...@@ -53,7 +53,27 @@ class Microsoft_Internet_Explorer_Events: ...@@ -53,7 +53,27 @@ class Microsoft_Internet_Explorer_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result
if _arguments.has_key('----'):
return _arguments['----']
def PrintBrowserWindow(self, _object=None, _attributes={}, **_arguments):
"""PrintBrowserWindow: Print contents of browser window (HTML)
Required argument: Window Identifier of the window to print. No value means print the frontmost browser window.
Keyword argument _attributes: AppleEvent attribute dictionary
"""
_code = 'misc'
_subcode = 'pWND'
if _arguments: raise TypeError, 'No optional args expected'
_arguments['----'] = _object
_reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes)
if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
"""Suite Netscape Suite: Events defined by Netscape. """Suite Netscape Suite: Events defined by Netscape
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -13,7 +13,7 @@ _code = 'MOSS' ...@@ -13,7 +13,7 @@ _code = 'MOSS'
class Netscape_Suite_Events: class Netscape_Suite_Events:
def Open_bookmark(self, _object=None, _attributes={}, **_arguments): def Open_bookmark(self, _object=None, _attributes={}, **_arguments):
"""Open bookmark: Reads in a bookmark file """Open bookmark: Opens a bookmark file
Required argument: If not available, reloads the current bookmark file Required argument: If not available, reloads the current bookmark file
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
...@@ -26,7 +26,7 @@ class Netscape_Suite_Events: ...@@ -26,7 +26,7 @@ class Netscape_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
"""Suite Required Suite: Events that every application should support """Suite Required Suite: Events that every application should support
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -26,7 +26,7 @@ class Required_Suite_Events(Required_Suite_Events): ...@@ -26,7 +26,7 @@ class Required_Suite_Events(Required_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -46,7 +46,7 @@ class Required_Suite_Events(Required_Suite_Events): ...@@ -46,7 +46,7 @@ class Required_Suite_Events(Required_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -66,7 +66,7 @@ class Required_Suite_Events(Required_Suite_Events): ...@@ -66,7 +66,7 @@ class Required_Suite_Events(Required_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -85,7 +85,7 @@ class Required_Suite_Events(Required_Suite_Events): ...@@ -85,7 +85,7 @@ class Required_Suite_Events(Required_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
"""Suite URL Suite: Standard suite for Uniform Resource Locators """Suite URL Suite: Standard suite for Uniform Resource Locators
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -18,8 +18,8 @@ class URL_Suite_Events: ...@@ -18,8 +18,8 @@ class URL_Suite_Events:
def GetURL(self, _object, _attributes={}, **_arguments): def GetURL(self, _object, _attributes={}, **_arguments):
"""GetURL: Open the URL (and optionally save it to disk) """GetURL: Open the URL (and optionally save it to disk)
Required argument: The URL Required argument: URL to open
Keyword argument to: Save the resolved URL contents to this file. Keyword argument to: File into which to save resource located at URL.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'GURL' _code = 'GURL'
...@@ -31,7 +31,7 @@ class URL_Suite_Events: ...@@ -31,7 +31,7 @@ class URL_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
""" """
Package generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 Package generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer
Resource aete resid 0 Resource aete resid 0
""" """
import aetools import aetools
Error = aetools.Error
import Required_Suite
import Standard_Suite
import Web_Browser_Suite import Web_Browser_Suite
import URL_Suite import URL_Suite
import Microsoft_Internet_Explorer import Microsoft_Internet_Explorer
import Netscape_Suite import Netscape_Suite
import Required_Suite
_code_to_module = { _code_to_module = {
'reqd' : Required_Suite,
'****' : Standard_Suite,
'WWW!' : Web_Browser_Suite, 'WWW!' : Web_Browser_Suite,
'GURL' : URL_Suite, 'GURL' : URL_Suite,
'MSIE' : Microsoft_Internet_Explorer, 'MSIE' : Microsoft_Internet_Explorer,
'MOSS' : Netscape_Suite, 'MOSS' : Netscape_Suite,
'reqd' : Required_Suite,
} }
_code_to_fullname = { _code_to_fullname = {
'reqd' : ('Explorer.Required_Suite', 'Required_Suite'),
'****' : ('Explorer.Standard_Suite', 'Standard_Suite'),
'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'), 'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'),
'GURL' : ('Explorer.URL_Suite', 'URL_Suite'), 'GURL' : ('Explorer.URL_Suite', 'URL_Suite'),
'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'), 'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'),
'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'), 'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'),
'reqd' : ('Explorer.Required_Suite', 'Required_Suite'),
} }
from Required_Suite import *
from Standard_Suite import *
from Web_Browser_Suite import * from Web_Browser_Suite import *
from URL_Suite import * from URL_Suite import *
from Microsoft_Internet_Explorer import * from Microsoft_Internet_Explorer import *
from Netscape_Suite import * from Netscape_Suite import *
from Required_Suite import *
class Explorer(Web_Browser_Suite_Events, class Explorer(Required_Suite_Events,
Standard_Suite_Events,
Web_Browser_Suite_Events,
URL_Suite_Events, URL_Suite_Events,
Microsoft_Internet_Explorer_Events, Microsoft_Internet_Explorer_Events,
Netscape_Suite_Events, Netscape_Suite_Events,
Required_Suite_Events,
aetools.TalkTo): aetools.TalkTo):
_signature = 'MSIE' _signature = 'MSIE'
"""Suite Containers and folders: Classes that can contain other file system items """Suite Containers and folders: Classes that can contain other file system items
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -46,6 +46,10 @@ class icon_size(aetools.NProperty): ...@@ -46,6 +46,10 @@ class icon_size(aetools.NProperty):
"""icon size - the size of icons displayed in the window. Can be specified as a number, or ... """ """icon size - the size of icons displayed in the window. Can be specified as a number, or ... """
which = 'lvis' which = 'lvis'
want = 'long' want = 'long'
class view_options_window(aetools.NProperty):
"""view options window - the view options window for the container (can only be opened when the container window is open) """
which = 'vwnd'
want = 'vwnd'
# element 'cobj' as ['indx', 'name'] # element 'cobj' as ['indx', 'name']
# element 'ctnr' as ['indx', 'name'] # element 'ctnr' as ['indx', 'name']
# element 'sctr' as ['indx', 'name'] # element 'sctr' as ['indx', 'name']
...@@ -276,6 +280,7 @@ container._propdict = { ...@@ -276,6 +280,7 @@ container._propdict = {
'completely_expanded' : completely_expanded, 'completely_expanded' : completely_expanded,
'icon_size' : icon_size, 'icon_size' : icon_size,
'icon_size' : icon_size, 'icon_size' : icon_size,
'view_options_window' : view_options_window,
} }
container._elemdict = { container._elemdict = {
'item' : Earlier_terms.item, 'item' : Earlier_terms.item,
...@@ -437,44 +442,45 @@ trash_2d_object._elemdict = { ...@@ -437,44 +442,45 @@ trash_2d_object._elemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'ctrs' : trash_2d_object,
'cdsk' : desktop_2d_object,
'sctr' : sharable_container,
'priv' : sharing_privileges, 'priv' : sharing_privileges,
'cfol' : folder,
'cdis' : disk, 'cdis' : disk,
'sctr' : sharable_container, 'cfol' : folder,
'ctnr' : container, 'ctnr' : container,
'cdsk' : desktop_2d_object,
'ctrs' : trash_2d_object,
} }
_propdeclarations = { _propdeclarations = {
'ownr' : owner_privileges, 'pexp' : expanded,
'spro' : protected, 'gppr' : group_privileges,
'prvr' : see_files,
'ects' : entire_contents,
'lvis' : icon_size,
'iprv' : privileges_inherited,
'isrv' : local_volume,
'frsp' : free_space, 'frsp' : free_space,
'sgrp' : group,
'pexc' : completely_expanded,
'sele' : selection,
'smou' : mounted,
'pexa' : expandable, 'pexa' : expandable,
'istd' : startup, 'pexc' : completely_expanded,
'sdsk' : startup_disk, 'vwnd' : view_options_window,
'gppr' : group_privileges,
'shar' : shared,
'capa' : capacity,
'isej' : ejectable,
'gstp' : guest_privileges,
'warn' : warns_before_emptying, 'warn' : warns_before_emptying,
'sown' : owner, 'sown' : owner,
'c@#^' : _3c_Inheritance_3e_, 'prvw' : make_changes,
'isej' : ejectable,
'capa' : capacity,
'shar' : shared,
'sexp' : exported, 'sexp' : exported,
'isrv' : local_volume, 'sdsk' : startup_disk,
'iprv' : privileges_inherited, 'istd' : startup,
'lvis' : icon_size, 'gstp' : guest_privileges,
'trsh' : trash, 'trsh' : trash,
'smou' : mounted,
'sele' : selection,
'prvs' : see_folders, 'prvs' : see_folders,
'prvr' : see_files, 'sgrp' : group,
'prvw' : make_changes, 'c@#^' : _3c_Inheritance_3e_,
'pexp' : expanded, 'spro' : protected,
'ects' : entire_contents, 'ownr' : owner_privileges,
} }
_compdeclarations = { _compdeclarations = {
......
"""Suite Earlier terms: Terms that have been renamed """Suite Earlier terms: Terms that have been renamed
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -401,8 +401,10 @@ class modal(aetools.NProperty): ...@@ -401,8 +401,10 @@ class modal(aetools.NProperty):
"""modal - Is the window modal? """ """modal - Is the window modal? """
which = 'pmod' which = 'pmod'
want = 'bool' want = 'bool'
class resizable(aetools.NProperty):
resizable = titled """resizable - Is the window resizable? """
which = 'prsz'
want = 'bool'
class zoomable(aetools.NProperty): class zoomable(aetools.NProperty):
"""zoomable - Is the window zoomable? """ """zoomable - Is the window zoomable? """
which = 'iszm' which = 'iszm'
...@@ -615,110 +617,111 @@ window._elemdict = { ...@@ -615,110 +617,111 @@ window._elemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'dsut' : accessory_suitcase,
'cprf' : preferences,
'sctr' : sharable_container,
'capp' : application,
'ctrs' : trash_2d_object,
'pcda' : accessory_process,
'cwin' : window,
'iwnd' : information_window, 'iwnd' : information_window,
'cwnd' : container_window,
'inlf' : internet_location,
'appf' : application_file,
'prcs' : process, 'prcs' : process,
'appf' : application_file,
'inlf' : internet_location,
'cwnd' : container_window,
'cobj' : item, 'cobj' : item,
'cwin' : window,
'pcda' : accessory_process,
'ctrs' : trash_2d_object,
'capp' : application,
'cprf' : preferences,
'sctr' : sharable_container,
'dsut' : accessory_suitcase,
} }
_propdeclarations = { _propdeclarations = {
'ver2' : product_version,
'pbnd' : bounds,
'asdr' : folder,
'gppr' : group_privileges,
'pidx' : index, 'pidx' : index,
'scda' : show_creation_date, 'isfl' : floating,
'qpro' : properties, 'sown' : owner,
'fshr' : file_sharing, 'fsup' : sharing_starting_up,
'pvew' : view, 'urdt' : use_relative_dates,
'pusd' : partition_space_used, 'scom' : show_comments,
'aslk' : locked, 'appt' : partition_size,
'sdat' : show_modification_date, 'iimg' : icon,
'issl' : selected, 'asty' : file_type,
'pvis' : visible, 'uswg' : use_wide_grid,
'slbl' : show_label, 'ptit' : titled,
'wshd' : collapsed, 'dela' : delay_before_springing,
'cdis' : disk, 'cuss' : has_custom_view_settings,
'usme' : use_simple_menus, 'gstp' : guest_privileges,
'isab' : scriptable,
'iszm' : zoomable,
'sord' : sort_direction, 'sord' : sort_direction,
'sexp' : exported, 'pins' : insertion_location,
'comt' : comment, 'pspd' : stationery,
'dscr' : description, 'desk' : desktop,
'svew' : previous_list_view, 'ascd' : creation_date,
'svrs' : show_version, 'ctnr' : container,
'sknd' : show_kind, 'abbx' : about_this_computer,
'phys' : physical_size, 'pull' : pulled_open,
'iarr' : spatial_view_arrangement, 'kind' : kind,
'smou' : mounted, 'ptsz' : size,
'posn' : position, 'hclb' : closeable,
'cobj' : item, 'sgrp' : group,
'mfre' : largest_free_block,
'revt' : remote_events, 'revt' : remote_events,
'asmo' : modification_date, 'drwr' : popup,
'ssiz' : show_size, 'iwnd' : information_window,
'pnam' : name, 'ownr' : owner_privileges,
'mprt' : minimum_partition_size, 'pzum' : zoomed,
'cwin' : window, 'prsz' : resizable,
'pcli' : clipboard, 'barr' : button_view_arrangement,
'spro' : protected, 'pfrp' : Finder_preferences,
'sprt' : suggested_partition_size,
'pisf' : frontmost,
'sele' : selection,
'pmod' : modal,
'fcrt' : creator_type,
'shar' : shared,
'dwnd' : content_space,
'zumf' : zoomed_full_size, 'zumf' : zoomed_full_size,
'sfsz' : calculate_folder_sizes,
'ID ' : id,
'c@#^' : _3c_Inheritance_3e_,
'pspd' : stationery,
'iprv' : inherited_privileges, 'iprv' : inherited_privileges,
'pfrp' : Finder_preferences,
'barr' : button_view_arrangement,
'ownr' : owner_privileges,
'drwr' : popup,
'sgrp' : group,
'ptsz' : size,
'kind' : kind,
'pull' : pulled_open,
'abbx' : about_this_computer,
'ctnr' : container,
'ascd' : creation_date,
'desk' : desktop,
'warn' : warn_before_emptying,
'iszm' : zoomable,
'isab' : scriptable,
'gstp' : guest_privileges,
'vers' : version, 'vers' : version,
'dela' : delay_before_springing, 'c@#^' : _3c_Inheritance_3e_,
'ptit' : titled, 'ID ' : id,
'uswg' : use_wide_grid, 'sfsz' : calculate_folder_sizes,
'cuss' : has_custom_view_settings,
'labi' : label_index,
'iwnd' : information_window,
'file' : file, 'file' : file,
'asty' : file_type, 'dwnd' : content_space,
'appt' : partition_size, 'shar' : shared,
'scom' : show_comments, 'pmod' : modal,
'pins' : insertion_location, 'sele' : selection,
'pbnd' : bounds, 'pisf' : frontmost,
'urdt' : use_relative_dates, 'sprt' : suggested_partition_size,
'fsup' : sharing_starting_up, 'spro' : protected,
'sown' : owner, 'pcli' : clipboard,
'isfl' : floating, 'cwin' : window,
'hclb' : closeable, 'mprt' : minimum_partition_size,
'iimg' : icon,
'gppr' : group_privileges,
'asdr' : folder,
'sprg' : spring_open_folders, 'sprg' : spring_open_folders,
'pzum' : zoomed, 'ssiz' : show_size,
'ver2' : product_version, 'asmo' : modification_date,
'mfre' : largest_free_block, 'svrs' : show_version,
'cobj' : item,
'posn' : position,
'iarr' : spatial_view_arrangement,
'phys' : physical_size,
'sknd' : show_kind,
'labi' : label_index,
'svew' : previous_list_view,
'dscr' : description,
'comt' : comment,
'sexp' : exported,
'usme' : use_simple_menus,
'cdis' : disk,
'wshd' : collapsed,
'slbl' : show_label,
'warn' : warn_before_emptying,
'scda' : show_creation_date,
'pvis' : visible,
'issl' : selected,
'smou' : mounted,
'sdat' : show_modification_date,
'fcrt' : creator_type,
'pusd' : partition_space_used,
'pvew' : view,
'fshr' : file_sharing,
'qpro' : properties,
'aslk' : locked,
'pnam' : name,
} }
_compdeclarations = { _compdeclarations = {
......
"""Suite Enumerations: Enumerations for the Finder """Suite Enumerations: Enumerations for the Finder
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -16,30 +16,30 @@ class Enumerations_Events(Type_Names_Suite_Events): ...@@ -16,30 +16,30 @@ class Enumerations_Events(Type_Names_Suite_Events):
pass pass
_Enum_ipnl = { _Enum_ipnl = {
'General Information panel' : 'gpnl', # 'General_Information_panel' : 'gpnl', #
'Sharing panel' : 'spnl', # 'Sharing_panel' : 'spnl', #
'Memory panel' : 'mpnl', # 'Memory_panel' : 'mpnl', #
'Status and Configuration panel' : 'scnl', # 'Status_and_Configuration_panel' : 'scnl', #
'Fonts panel' : 'fpnl', # 'Fonts_panel' : 'fpnl', #
} }
_Enum_pple = { _Enum_pple = {
'General Preferences panel' : 'pgnp', # 'General_Preferences_panel' : 'pgnp', #
'Label Preferences panel' : 'plbp', # 'Label_Preferences_panel' : 'plbp', #
'Icon View Preferences panel' : 'pivp', # 'Icon_View_Preferences_panel' : 'pivp', #
'Button View Preferences panel' : 'pbvp', # 'Button_View_Preferences_panel' : 'pbvp', #
'List View Preferences panel' : 'plvp', # 'List_View_Preferences_panel' : 'plvp', #
} }
_Enum_earr = { _Enum_earr = {
'not arranged' : 'narr', # 'not_arranged' : 'narr', #
'snap to grid' : 'grda', # 'snap_to_grid' : 'grda', #
'arranged by name' : 'nama', # 'arranged_by_name' : 'nama', #
'arranged by modification date' : 'mdta', # 'arranged_by_modification_date' : 'mdta', #
'arranged by creation date' : 'cdta', # 'arranged_by_creation_date' : 'cdta', #
'arranged by size' : 'siza', # 'arranged_by_size' : 'siza', #
'arranged by kind' : 'kina', # 'arranged_by_kind' : 'kina', #
'arranged by label' : 'laba', # 'arranged_by_label' : 'laba', #
} }
_Enum_sodr = { _Enum_sodr = {
...@@ -55,19 +55,19 @@ _Enum_isiz = { ...@@ -55,19 +55,19 @@ _Enum_isiz = {
_Enum_vwby = { _Enum_vwby = {
'conflicts' : 'cflc', # 'conflicts' : 'cflc', #
'existing items' : 'exsi', # 'existing_items' : 'exsi', #
'small icon' : 'smic', # 'small_icon' : 'smic', #
'icon' : 'iimg', # 'icon' : 'iimg', #
'name' : 'pnam', # 'name' : 'pnam', #
'modification date' : 'asmo', # 'modification_date' : 'asmo', #
'size' : 'ptsz', # 'size' : 'ptsz', #
'kind' : 'kind', # 'kind' : 'kind', #
'comment' : 'comt', # 'comment' : 'comt', #
'label' : 'labi', # 'label' : 'labi', #
'version' : 'vers', # 'version' : 'vers', #
'creation date' : 'ascd', # 'creation_date' : 'ascd', #
'small button' : 'smbu', # 'small_button' : 'smbu', #
'large button' : 'lgbu', # 'large_button' : 'lgbu', #
'grid' : 'grid', # 'grid' : 'grid', #
'all' : 'kyal', # 'all' : 'kyal', #
} }
...@@ -77,10 +77,19 @@ _Enum_gsen = { ...@@ -77,10 +77,19 @@ _Enum_gsen = {
'FPU' : 'fpu ', # 'FPU' : 'fpu ', #
'MMU' : 'mmu ', # 'MMU' : 'mmu ', #
'hardware' : 'hdwr', # 'hardware' : 'hdwr', #
'operating system' : 'os ', # 'operating_system' : 'os ', #
'sound system' : 'snd ', # 'sound_system' : 'snd ', #
'memory available' : 'lram', # 'memory_available' : 'lram', #
'memory installed' : 'ram ', # 'memory_installed' : 'ram ', #
}
_Enum_ese0 = {
'starting_up' : 'ese2', #
'running' : 'ese3', #
'rebuilding_desktop' : 'ese5', #
'copying' : 'ese4', #
'restarting' : 'ese6', #
'quitting' : 'ese7', #
} }
...@@ -97,11 +106,12 @@ _compdeclarations = { ...@@ -97,11 +106,12 @@ _compdeclarations = {
} }
_enumdeclarations = { _enumdeclarations = {
'sodr' : _Enum_sodr,
'ipnl' : _Enum_ipnl,
'ese0' : _Enum_ese0,
'vwby' : _Enum_vwby,
'gsen' : _Enum_gsen, 'gsen' : _Enum_gsen,
'earr' : _Enum_earr,
'isiz' : _Enum_isiz, 'isiz' : _Enum_isiz,
'vwby' : _Enum_vwby, 'earr' : _Enum_earr,
'pple' : _Enum_pple, 'pple' : _Enum_pple,
'ipnl' : _Enum_ipnl,
'sodr' : _Enum_sodr,
} }
"""Suite Files and suitcases: Classes representing files and suitcases """Suite Files and suitcases: Classes representing files and suitcases
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -243,37 +243,37 @@ desk_accessory_suitcase._elemdict = { ...@@ -243,37 +243,37 @@ desk_accessory_suitcase._elemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'sndf' : sound_file,
'fntf' : font_file,
'inlf' : internet_location_file,
'clpf' : clipping, 'clpf' : clipping,
'docf' : document_file,
'stcs' : suitcase,
'appf' : application_file,
'file' : file,
'fsut' : font_suitcase,
'pack' : package,
'dafi' : desk_accessory_file,
'alia' : alias_file, 'alia' : alias_file,
'dafi' : desk_accessory_file,
'dsut' : desk_accessory_suitcase, 'dsut' : desk_accessory_suitcase,
'inlf' : internet_location_file, 'fsut' : font_suitcase,
'fntf' : font_file, 'file' : file,
'sndf' : sound_file, 'appf' : application_file,
'stcs' : suitcase,
'docf' : document_file,
'pack' : package,
} }
_propdeclarations = { _propdeclarations = {
'orig' : original_item, 'vers' : version,
'pspd' : stationery, 'ver2' : product_version,
'aslk' : locked, 'snd ' : sound,
'iloc' : location,
'mprt' : minimum_size,
'fcrt' : creator_type,
'c@#^' : _3c_Inheritance_3e_,
'asty' : file_type,
'hscr' : has_scripting_terminology,
'sprt' : suggested_size,
'appt' : preferred_size, 'appt' : preferred_size,
'sprt' : suggested_size,
'isab' : accepts_high_level_events, 'isab' : accepts_high_level_events,
'snd ' : sound, 'hscr' : has_scripting_terminology,
'ver2' : product_version, 'asty' : file_type,
'vers' : version, 'c@#^' : _3c_Inheritance_3e_,
'fcrt' : creator_type,
'mprt' : minimum_size,
'pspd' : stationery,
'iloc' : location,
'aslk' : locked,
'orig' : original_item,
} }
_compdeclarations = { _compdeclarations = {
......
"""Suite Finder Basics: Commonly-used Finder commands and object classes """Suite Finder Basics: Commonly-used Finder commands and object classes
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -32,7 +32,7 @@ class Finder_Basics_Events: ...@@ -32,7 +32,7 @@ class Finder_Basics_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -51,7 +51,7 @@ class Finder_Basics_Events: ...@@ -51,7 +51,7 @@ class Finder_Basics_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -70,7 +70,7 @@ class Finder_Basics_Events: ...@@ -70,7 +70,7 @@ class Finder_Basics_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -89,7 +89,7 @@ class Finder_Basics_Events: ...@@ -89,7 +89,7 @@ class Finder_Basics_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -108,7 +108,7 @@ class Finder_Basics_Events: ...@@ -108,7 +108,7 @@ class Finder_Basics_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -134,7 +134,7 @@ class Finder_Basics_Events: ...@@ -134,7 +134,7 @@ class Finder_Basics_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -196,6 +196,10 @@ class desktop(aetools.NProperty): ...@@ -196,6 +196,10 @@ class desktop(aetools.NProperty):
"""desktop - the desktop """ """desktop - the desktop """
which = 'desk' which = 'desk'
want = 'cdsk' want = 'cdsk'
class execution_state(aetools.NProperty):
"""execution state - the current execution state of the Finder """
which = 'exec'
want = 'ese0'
class Finder_preferences(aetools.NProperty): class Finder_preferences(aetools.NProperty):
"""Finder preferences - Various preferences that apply to the Finder as a whole """ """Finder preferences - Various preferences that apply to the Finder as a whole """
which = 'pfrp' which = 'pfrp'
...@@ -224,6 +228,7 @@ class Finder_preferences(aetools.NProperty): ...@@ -224,6 +228,7 @@ class Finder_preferences(aetools.NProperty):
# element 'cwin' as ['indx', 'name'] # element 'cwin' as ['indx', 'name']
# element 'cwnd' as ['indx', 'name'] # element 'cwnd' as ['indx', 'name']
# element 'iwnd' as ['indx', 'name'] # element 'iwnd' as ['indx', 'name']
# element 'vwnd' as ['indx', 'name']
# element 'lwnd' as ['indx', 'name'] # element 'lwnd' as ['indx', 'name']
# element 'dwnd' as ['indx', 'name'] # element 'dwnd' as ['indx', 'name']
...@@ -285,6 +290,7 @@ application._propdict = { ...@@ -285,6 +290,7 @@ application._propdict = {
'version' : version, 'version' : version,
'about_this_computer' : about_this_computer, 'about_this_computer' : about_this_computer,
'desktop' : desktop, 'desktop' : desktop,
'execution_state' : execution_state,
'Finder_preferences' : Finder_preferences, 'Finder_preferences' : Finder_preferences,
} }
application._elemdict = { application._elemdict = {
...@@ -312,6 +318,7 @@ application._elemdict = { ...@@ -312,6 +318,7 @@ application._elemdict = {
'window' : Earlier_terms.window, 'window' : Earlier_terms.window,
'container_window' : Earlier_terms.container_window, 'container_window' : Earlier_terms.container_window,
'information_window' : Earlier_terms.information_window, 'information_window' : Earlier_terms.information_window,
'view_options_window' : Window_classes.view_options_window,
'clipping_window' : Window_classes.clipping_window, 'clipping_window' : Window_classes.clipping_window,
'content_space' : Window_classes.content_space, 'content_space' : Window_classes.content_space,
} }
...@@ -333,34 +340,35 @@ special_folders._elemdict = { ...@@ -333,34 +340,35 @@ special_folders._elemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'spfl' : special_folders,
'capp' : application, 'capp' : application,
'spfl' : special_folders,
} }
_propdeclarations = { _propdeclarations = {
'amnu' : apple_menu_items_folder, 'vers' : version,
'extn' : extensions_folder, 'ver2' : product_version,
'pnam' : name,
'fshr' : file_sharing,
'pcli' : clipboard,
'strt' : startup_items_folder,
'pref' : preferences_folder,
'pisf' : frontmost,
'pins' : insertion_location,
'pvis' : visible,
'abbx' : about_this_computer,
'temp' : temporary_items_folder,
'font' : fonts_folder,
'pfrp' : Finder_preferences, 'pfrp' : Finder_preferences,
'desk' : desktop, 'exec' : execution_state,
'fsup' : sharing_starting_up, 'pins' : insertion_location,
'mfre' : largest_free_block, 'mfre' : largest_free_block,
'fsup' : sharing_starting_up,
'desk' : desktop,
'ctrl' : control_panels_folder, 'ctrl' : control_panels_folder,
'sele' : selection,
'shdf' : shutdown_items_folder,
'macs' : system_folder, 'macs' : system_folder,
'ver2' : product_version, 'font' : fonts_folder,
'vers' : version, 'abbx' : about_this_computer,
'shdf' : shutdown_items_folder,
'temp' : temporary_items_folder,
'pvis' : visible,
'sele' : selection,
'pisf' : frontmost,
'pref' : preferences_folder,
'strt' : startup_items_folder,
'pcli' : clipboard,
'fshr' : file_sharing,
'pnam' : name,
'extn' : extensions_folder,
'amnu' : apple_menu_items_folder,
} }
_compdeclarations = { _compdeclarations = {
......
"""Suite Finder items: Commands used with file system items, and basic item definition """Suite Finder items: Commands used with file system items, and basic item definition
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -26,7 +26,7 @@ class Finder_items_Events: ...@@ -26,7 +26,7 @@ class Finder_items_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -51,7 +51,7 @@ class Finder_items_Events: ...@@ -51,7 +51,7 @@ class Finder_items_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -71,7 +71,7 @@ class Finder_items_Events: ...@@ -71,7 +71,7 @@ class Finder_items_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -91,7 +91,7 @@ class Finder_items_Events: ...@@ -91,7 +91,7 @@ class Finder_items_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -111,28 +111,34 @@ class Finder_items_Events: ...@@ -111,28 +111,34 @@ class Finder_items_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_argmap_put_away = {
'asking' : 'fask',
}
def put_away(self, _object, _attributes={}, **_arguments): def put_away(self, _object, _attributes={}, **_arguments):
"""put away: Put away the specified object(s) """put away: Put away the specified object(s)
Required argument: the items to put away Required argument: the items to put away
Keyword argument asking: Specifies whether or not to present a dialog to confirm putting this item away.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: the object put away in its put-away location Returns: the object put away in its put-away location
""" """
_code = 'fndr' _code = 'fndr'
_subcode = 'ptwy' _subcode = 'ptwy'
if _arguments: raise TypeError, 'No optional args expected' aetools.keysubst(_arguments, self._argmap_put_away)
_arguments['----'] = _object _arguments['----'] = _object
aetools.enumsubst(_arguments, 'fask', _Enum_bool)
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -152,7 +158,7 @@ class Finder_items_Events: ...@@ -152,7 +158,7 @@ class Finder_items_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -172,7 +178,7 @@ class Finder_items_Events: ...@@ -172,7 +178,7 @@ class Finder_items_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -293,6 +299,7 @@ item._propdict = { ...@@ -293,6 +299,7 @@ item._propdict = {
} }
item._elemdict = { item._elemdict = {
} }
_Enum_bool = None # XXXX enum bool not found!!
# #
# Indices of types declared in this module # Indices of types declared in this module
...@@ -302,27 +309,27 @@ _classdeclarations = { ...@@ -302,27 +309,27 @@ _classdeclarations = {
} }
_propdeclarations = { _propdeclarations = {
'iwnd' : information_window, 'posn' : position,
'cdis' : disk, 'kind' : kind,
'asmo' : modification_date, 'ptsz' : size,
'ascd' : creation_date, 'phys' : physical_size,
'pnam' : name, 'dwnd' : content_space,
'pbnd' : bounds,
'issl' : selected,
'labi' : label_index, 'labi' : label_index,
'ID ' : id, 'dscr' : description,
'iimg' : icon, 'comt' : comment,
'ctnr' : container,
'pidx' : index, 'pidx' : index,
'dwnd' : content_space, 'iimg' : icon,
'ID ' : id,
'cwin' : window, 'cwin' : window,
'comt' : comment, 'pnam' : name,
'dscr' : description, 'ascd' : creation_date,
'cdis' : disk,
'asmo' : modification_date,
'asdr' : folder, 'asdr' : folder,
'issl' : selected, 'iwnd' : information_window,
'pbnd' : bounds,
'ctnr' : container,
'phys' : physical_size,
'ptsz' : size,
'kind' : kind,
'posn' : position,
} }
_compdeclarations = { _compdeclarations = {
......
"""Suite Obsolete terms: Terms that have been deprecated """Suite Obsolete terms: Terms that have been deprecated
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -175,31 +175,31 @@ status_window._elemdict = { ...@@ -175,31 +175,31 @@ status_window._elemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'ccdv' : control_panel, 'qwnd' : status_window,
'iwnd' : information_window,
'ctnr' : container,
'capp' : application, 'capp' : application,
'sctr' : sharable_container, 'swnd' : sharing_window,
'cwnd' : container_window, 'ccdv' : control_panel,
'prcs' : process, 'prcs' : process,
'file' : file,
'cobj' : item, 'cobj' : item,
'qwnd' : status_window, 'file' : file,
'swnd' : sharing_window, 'sctr' : sharable_container,
'cwnd' : container_window,
'ctnr' : container,
'iwnd' : information_window,
} }
_propdeclarations = { _propdeclarations = {
'crtd' : creation_date_obsolete, 'fitp' : file_type_obsolete,
'cfol' : folder_obsolete,
'ctnr' : container,
'cwnd' : container_window,
'pvwp' : view_preferences,
'swnd' : sharing_window, 'swnd' : sharing_window,
'cfol' : folder_obsolete,
'crtd' : creation_date_obsolete,
'islk' : locked_obsolete,
'modd' : modification_date_obsolete,
'sctr' : sharable_container, 'sctr' : sharable_container,
'pvwp' : view_preferences,
'cwnd' : container_window,
'ctnr' : container,
'cobj' : item, 'cobj' : item,
'modd' : modification_date_obsolete,
'islk' : locked_obsolete,
'fitp' : file_type_obsolete,
} }
_compdeclarations = { _compdeclarations = {
......
"""Suite Process classes: Classes representing processes that are running """Suite Process classes: Classes representing processes that are running
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -120,26 +120,26 @@ desk_accessory_process._elemdict = { ...@@ -120,26 +120,26 @@ desk_accessory_process._elemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'prcs' : process,
'pcda' : desk_accessory_process, 'pcda' : desk_accessory_process,
'pcap' : application_process, 'pcap' : application_process,
'prcs' : process,
} }
_propdeclarations = { _propdeclarations = {
'revt' : accepts_remote_events,
'appf' : application_file,
'pnam' : name,
'file' : file,
'pusd' : partition_space_used,
'fcrt' : creator_type,
'c@#^' : _3c_Inheritance_3e_,
'asty' : file_type,
'hscr' : has_scripting_terminology,
'dafi' : desk_accessory_file,
'isab' : accepts_high_level_events,
'appt' : total_partition_size,
'pisf' : frontmost,
'pvis' : visible, 'pvis' : visible,
'pisf' : frontmost,
'appt' : total_partition_size,
'isab' : accepts_high_level_events,
'dafi' : desk_accessory_file,
'hscr' : has_scripting_terminology,
'asty' : file_type,
'c@#^' : _3c_Inheritance_3e_,
'fcrt' : creator_type,
'pusd' : partition_space_used,
'file' : file,
'pnam' : name,
'appf' : application_file,
'revt' : accepts_remote_events,
} }
_compdeclarations = { _compdeclarations = {
......
"""Suite Standard Suite: Common terms that most applications should support """Suite Standard Suite: Common terms that most applications should support
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -10,7 +10,8 @@ import MacOS ...@@ -10,7 +10,8 @@ import MacOS
_code = 'CoRe' _code = 'CoRe'
class Standard_Suite_Events: from StdSuites.Standard_Suite import *
class Standard_Suite_Events(Standard_Suite_Events):
_argmap_open = { _argmap_open = {
'using' : 'usin', 'using' : 'usin',
...@@ -33,7 +34,7 @@ class Standard_Suite_Events: ...@@ -33,7 +34,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -58,7 +59,7 @@ class Standard_Suite_Events: ...@@ -58,7 +59,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -77,7 +78,7 @@ class Standard_Suite_Events: ...@@ -77,7 +78,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -97,7 +98,7 @@ class Standard_Suite_Events: ...@@ -97,7 +98,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -123,7 +124,7 @@ class Standard_Suite_Events: ...@@ -123,7 +124,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -149,7 +150,7 @@ class Standard_Suite_Events: ...@@ -149,7 +150,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -170,7 +171,7 @@ class Standard_Suite_Events: ...@@ -170,7 +171,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -202,7 +203,7 @@ class Standard_Suite_Events: ...@@ -202,7 +203,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -223,7 +224,7 @@ class Standard_Suite_Events: ...@@ -223,7 +224,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -254,7 +255,7 @@ class Standard_Suite_Events: ...@@ -254,7 +255,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -289,7 +290,7 @@ class Standard_Suite_Events: ...@@ -289,7 +290,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -309,12 +310,14 @@ class Standard_Suite_Events: ...@@ -309,12 +310,14 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
import AppleScript_Suite
import AppleScript_Suite
_Enum_list = None # XXXX enum list not found!! _Enum_list = None # XXXX enum list not found!!
_Enum_bool = None # XXXX enum bool not found!! _Enum_bool = None # XXXX enum bool not found!!
......
"""Suite Type Definitions: Definitions of records used in scripting the Finder """Suite Type Definitions: Definitions of records used in scripting the Finder
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -221,46 +221,46 @@ alias_list._elemdict = { ...@@ -221,46 +221,46 @@ alias_list._elemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'clbl' : label,
'ifam' : icon_family,
'alst' : alias_list,
'cprf' : preferences, 'cprf' : preferences,
'alst' : alias_list,
'ifam' : icon_family,
'clbl' : label,
} }
_propdeclarations = { _propdeclarations = {
'dela' : delay_before_springing,
'ics4' : small_4_bit_icon,
'iarr' : spatial_view_arrangement,
'barr' : button_view_arrangement,
'ics#' : small_monochrome_icon_and_mask, 'ics#' : small_monochrome_icon_and_mask,
'scda' : shows_creation_date, 'sknd' : shows_kind,
'uswg' : uses_wide_grid, 'svrs' : shows_version,
'colr' : color,
'ics8' : small_8_bit_mask,
'icl8' : large_8_bit_icon,
'sprg' : spring_open_folders, 'sprg' : spring_open_folders,
'is32' : small_32_bit_icon, 'vfsz' : view_font_size,
'ICN#' : large_monochrome_icon_and_mask, 'sfsz' : calculates_folder_sizes,
'cwin' : window,
'sdat' : shows_modification_date,
'iisz' : spatial_view_icon_size,
'barr' : button_view_arrangement,
'il32' : large_32_bit_icon,
'l8mk' : large_8_bit_mask, 'l8mk' : large_8_bit_mask,
'scom' : shows_comments,
'bisz' : button_view_icon_size,
'lisz' : list_view_icon_size,
'slbl' : shows_label,
'icl4' : large_4_bit_icon,
'usme' : uses_simple_menus,
'urdt' : uses_relative_dates,
'vfnt' : view_font, 'vfnt' : view_font,
'sfsz' : calculates_folder_sizes, 'urdt' : uses_relative_dates,
'usme' : uses_simple_menus,
'icl4' : large_4_bit_icon,
'slbl' : shows_label,
'lisz' : list_view_icon_size,
'scda' : shows_creation_date,
'bisz' : button_view_icon_size,
'pidx' : index, 'pidx' : index,
'icl8' : large_8_bit_icon, 'scom' : shows_comments,
'ssiz' : shows_size, 'iisz' : spatial_view_icon_size,
'ics8' : small_8_bit_mask, 'sdat' : shows_modification_date,
'colr' : color, 'cwin' : window,
'svrs' : shows_version, 'ICN#' : large_monochrome_icon_and_mask,
'is32' : small_32_bit_icon,
'pnam' : name, 'pnam' : name,
'sknd' : shows_kind, 'il32' : large_32_bit_icon,
'vfsz' : view_font_size, 'uswg' : uses_wide_grid,
'iarr' : spatial_view_arrangement, 'ssiz' : shows_size,
'ics4' : small_4_bit_icon,
'dela' : delay_before_springing,
} }
_compdeclarations = { _compdeclarations = {
......
"""Suite Window classes: Classes representing windows """Suite Window classes: Classes representing windows
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Systeemmap:Finder Generated from Moes:Systeemmap:Finder
AETE/AEUT resource version 0/144, language 0, script 0 AETE/AEUT resource version 0/144, language 0, script 0
""" """
...@@ -50,8 +50,10 @@ class modal(aetools.NProperty): ...@@ -50,8 +50,10 @@ class modal(aetools.NProperty):
"""modal - Is the window modal? """ """modal - Is the window modal? """
which = 'pmod' which = 'pmod'
want = 'bool' want = 'bool'
class resizable(aetools.NProperty):
resizable = titled """resizable - Is the window resizable? """
which = 'prsz'
want = 'bool'
class zoomable(aetools.NProperty): class zoomable(aetools.NProperty):
"""zoomable - Is the window zoomable? """ """zoomable - Is the window zoomable? """
which = 'iszm' which = 'iszm'
...@@ -227,6 +229,12 @@ class version(aetools.NProperty): ...@@ -227,6 +229,12 @@ class version(aetools.NProperty):
information_windows = information_window information_windows = information_window
class view_options_window(aetools.ComponentItem):
"""view options window - A View Options window """
want = 'vwnd'
view_options_windows = view_options_window
class preferences_window(aetools.ComponentItem): class preferences_window(aetools.ComponentItem):
"""preferences window - The Finder Preferences window """ """preferences window - The Finder Preferences window """
want = 'pwnd' want = 'pwnd'
...@@ -305,6 +313,12 @@ information_window._propdict = { ...@@ -305,6 +313,12 @@ information_window._propdict = {
} }
information_window._elemdict = { information_window._elemdict = {
} }
view_options_window._propdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'item' : item,
}
view_options_window._elemdict = {
}
preferences_window._propdict = { preferences_window._propdict = {
'_3c_Inheritance_3e_' : _3c_Inheritance_3e_, '_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
'current_panel' : current_panel, 'current_panel' : current_panel,
...@@ -325,63 +339,65 @@ content_space._elemdict = { ...@@ -325,63 +339,65 @@ content_space._elemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'pwnd' : preferences_window,
'vwnd' : view_options_window,
'cwin' : window,
'cwnd' : container_window,
'dwnd' : content_space, 'dwnd' : content_space,
'iwnd' : information_window, 'iwnd' : information_window,
'lwnd' : clipping_window, 'lwnd' : clipping_window,
'cwnd' : container_window,
'cwin' : window,
'pwnd' : preferences_window,
} }
_propdeclarations = { _propdeclarations = {
'pidx' : index, 'prsz' : resizable,
'scda' : shows_creation_date, 'barr' : button_view_arrangement,
'vers' : version, 'pzum' : zoomed,
'aslk' : locked,
'pvew' : view,
'sdat' : shows_modification_date,
'drwr' : popup,
'sprt' : suggested_size,
'pvis' : visible,
'ptsz' : size,
'pull' : pulled_open,
'slbl' : shows_label,
'wshd' : collapsed,
'ctnr' : container,
'ascd' : creation_date,
'warn' : warns_before_emptying,
'sord' : sort_direction,
'iszm' : zoomable,
'comt' : comment,
'svew' : previous_list_view,
'svrs' : shows_version,
'sknd' : shows_kind,
'phys' : physical_size,
'iarr' : spatial_view_arrangement, 'iarr' : spatial_view_arrangement,
'posn' : position, 'hclb' : closeable,
'ptit' : titled, 'c@#^' : _3c_Inheritance_3e_,
'cobj' : item, 'ver2' : product_version,
'asmo' : modification_date, 'sfsz' : calculates_folder_sizes,
'ssiz' : shows_size, 'sprt' : suggested_size,
'pnam' : name, 'zumf' : zoomed_full_size,
'urdt' : uses_relative_dates,
'panl' : current_panel,
'pmod' : modal,
'pspd' : stationery,
'scom' : shows_comments,
'appt' : preferred_size,
'aslk' : locked,
'pbnd' : bounds, 'pbnd' : bounds,
'mprt' : minimum_size,
'iimg' : icon, 'iimg' : icon,
'mprt' : minimum_size,
'pnam' : name,
'ssiz' : shows_size,
'asmo' : modification_date,
'cobj' : item,
'ptit' : titled,
'posn' : position,
'cuss' : has_custom_view_settings, 'cuss' : has_custom_view_settings,
'appt' : preferred_size, 'phys' : physical_size,
'scom' : shows_comments, 'sknd' : shows_kind,
'pmod' : modal, 'svrs' : shows_version,
'panl' : current_panel, 'svew' : previous_list_view,
'urdt' : uses_relative_dates, 'comt' : comment,
'zumf' : zoomed_full_size, 'iszm' : zoomable,
'sfsz' : calculates_folder_sizes, 'sord' : sort_direction,
'c@#^' : _3c_Inheritance_3e_, 'ascd' : creation_date,
'ctnr' : container,
'wshd' : collapsed,
'slbl' : shows_label,
'pull' : pulled_open,
'ptsz' : size,
'pvis' : visible,
'pidx' : index,
'isfl' : floating, 'isfl' : floating,
'hclb' : closeable, 'warn' : warns_before_emptying,
'pspd' : stationery, 'drwr' : popup,
'pzum' : zoomed, 'sdat' : shows_modification_date,
'barr' : button_view_arrangement, 'pvew' : view,
'ver2' : product_version, 'scda' : shows_creation_date,
'vers' : version,
} }
_compdeclarations = { _compdeclarations = {
......
""" """
Package generated from Macintosh HD:Systeemmap:Finder Package generated from Moes:Systeemmap:Finder
Resource aete resid 0 Resource aete resid 0
""" """
import aetools import aetools
......
"""Suite Mozilla suite: Experimental Mozilla suite """Suite Mozilla suite: Experimental Mozilla suite
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Moes:Applications (Mac OS 9):Netscape Communicator Folder:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -33,7 +33,7 @@ class Mozilla_suite_Events: ...@@ -33,7 +33,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -53,7 +53,7 @@ class Mozilla_suite_Events: ...@@ -53,7 +53,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -79,7 +79,7 @@ class Mozilla_suite_Events: ...@@ -79,7 +79,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -99,7 +99,7 @@ class Mozilla_suite_Events: ...@@ -99,7 +99,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -118,7 +118,7 @@ class Mozilla_suite_Events: ...@@ -118,7 +118,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -138,7 +138,7 @@ class Mozilla_suite_Events: ...@@ -138,7 +138,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -158,7 +158,7 @@ class Mozilla_suite_Events: ...@@ -158,7 +158,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -177,7 +177,7 @@ class Mozilla_suite_Events: ...@@ -177,7 +177,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -197,7 +197,7 @@ class Mozilla_suite_Events: ...@@ -197,7 +197,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -217,7 +217,7 @@ class Mozilla_suite_Events: ...@@ -217,7 +217,7 @@ class Mozilla_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -240,13 +240,13 @@ _Enum_comp = { ...@@ -240,13 +240,13 @@ _Enum_comp = {
} }
_Enum_ncmd = { _Enum_ncmd = {
'Get_new_mail' : '\000\000\004W', # 'Get_new_mail' : '\x00\x00\x04W', #
'Send_queued_messages' : '\000\000\004X', # 'Send_queued_messages' : '\x00\x00\x04X', #
'Read_newsgroups' : '\000\000\004\004', # 'Read_newsgroups' : '\x00\x00\x04\x04', #
'Show_Inbox' : '\000\000\004\005', # 'Show_Inbox' : '\x00\x00\x04\x05', #
'Show_Bookmarks_window' : '\000\000\004\006', # 'Show_Bookmarks_window' : '\x00\x00\x04\x06', #
'Show_History_window' : '\000\000\004\007', # 'Show_History_window' : '\x00\x00\x04\x07', #
'Show_Address_Book_window' : '\000\000\004\011', # 'Show_Address_Book_window' : '\x00\x00\x04\t', #
} }
...@@ -263,7 +263,7 @@ _compdeclarations = { ...@@ -263,7 +263,7 @@ _compdeclarations = {
} }
_enumdeclarations = { _enumdeclarations = {
'dire' : _Enum_dire,
'comp' : _Enum_comp, 'comp' : _Enum_comp,
'ncmd' : _Enum_ncmd, 'ncmd' : _Enum_ncmd,
'dire' : _Enum_dire,
} }
"""Suite PowerPlant: """Suite PowerPlant:
Level 0, version 0 Level 0, version 0
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Moes:Applications (Mac OS 9):Netscape Communicator Folder:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -31,7 +31,7 @@ class PowerPlant_Events: ...@@ -31,7 +31,7 @@ class PowerPlant_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -55,17 +55,17 @@ class PowerPlant_Events: ...@@ -55,17 +55,17 @@ class PowerPlant_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
_Enum_dbac = { _Enum_dbac = {
'DoNothing' : '\000\000\000\000', # No debugging action is taken. 'DoNothing' : '\x00\x00\x00\x00', # No debugging action is taken.
'PostAlert' : '\000\000\000\001', # Post an alert. 'PostAlert' : '\x00\x00\x00\x01', # Post an alert.
'LowLevelDebugger' : '\000\000\000\002', # Break into the low level debugger (MacsBug). 'LowLevelDebugger' : '\x00\x00\x00\x02', # Break into the low level debugger (MacsBug).
'SourceDebugger' : '\000\000\000\003', # Break into the source level debugger (if source debugger is executing). 'SourceDebugger' : '\x00\x00\x00\x03', # Break into the source level debugger (if source debugger is executing).
} }
......
"""Suite Required suite: """Suite Required suite:
Level 0, version 0 Level 0, version 0
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Moes:Applications (Mac OS 9):Netscape Communicator Folder:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -27,7 +27,7 @@ class Required_suite_Events(Required_Suite_Events): ...@@ -27,7 +27,7 @@ class Required_suite_Events(Required_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -47,7 +47,7 @@ class Required_suite_Events(Required_Suite_Events): ...@@ -47,7 +47,7 @@ class Required_suite_Events(Required_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -66,7 +66,7 @@ class Required_suite_Events(Required_Suite_Events): ...@@ -66,7 +66,7 @@ class Required_suite_Events(Required_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -85,7 +85,7 @@ class Required_suite_Events(Required_Suite_Events): ...@@ -85,7 +85,7 @@ class Required_suite_Events(Required_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
"""Suite Standard Suite: Common terms for most applications """Suite Standard Suite: Common terms for most applications
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Moes:Applications (Mac OS 9):Netscape Communicator Folder:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -10,7 +10,8 @@ import MacOS ...@@ -10,7 +10,8 @@ import MacOS
_code = 'CoRe' _code = 'CoRe'
class Standard_Suite_Events: from StdSuites.Standard_Suite import *
class Standard_Suite_Events(Standard_Suite_Events):
def close(self, _object, _attributes={}, **_arguments): def close(self, _object, _attributes={}, **_arguments):
"""close: Close an object """close: Close an object
...@@ -26,7 +27,7 @@ class Standard_Suite_Events: ...@@ -26,7 +27,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -47,7 +48,7 @@ class Standard_Suite_Events: ...@@ -47,7 +48,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -68,7 +69,7 @@ class Standard_Suite_Events: ...@@ -68,7 +69,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -93,7 +94,7 @@ class Standard_Suite_Events: ...@@ -93,7 +94,7 @@ class Standard_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -212,23 +213,23 @@ _classdeclarations = { ...@@ -212,23 +213,23 @@ _classdeclarations = {
} }
_propdeclarations = { _propdeclarations = {
'ptit' : titled, 'prsz' : resizable,
'busy' : busy,
'KOSK' : kiosk_mode,
'pvis' : visible,
'hclb' : closeable,
'pmod' : modal,
'wiid' : unique_ID,
'pbnd' : bounds,
'iszm' : zoomable,
'ALAP' : alert_application,
'pidx' : index, 'pidx' : index,
'isfl' : floating,
'pnam' : name,
'ppos' : position, 'ppos' : position,
'curl' : URL, 'curl' : URL,
'pnam' : name,
'pbnd' : bounds,
'isfl' : floating,
'hclb' : closeable,
'ALAP' : alert_application,
'iszm' : zoomable,
'pmod' : modal,
'pzum' : zoomed, 'pzum' : zoomed,
'pvis' : visible, 'ptit' : titled,
'KOSK' : kiosk_mode,
'busy' : busy,
'prsz' : resizable,
'wiid' : unique_ID,
} }
_compdeclarations = { _compdeclarations = {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Moes:Applications (Mac OS 9):Netscape Communicator Folder:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -39,7 +39,7 @@ class Standard_URL_suite_Events: ...@@ -39,7 +39,7 @@ class Standard_URL_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
"""Suite Text: """Suite Text:
Level 0, version 0 Level 0, version 0
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Moes:Applications (Mac OS 9):Netscape Communicator Folder:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -95,22 +95,22 @@ styleset._elemdict = { ...@@ -95,22 +95,22 @@ styleset._elemdict = {
# Indices of types declared in this module # Indices of types declared in this module
# #
_classdeclarations = { _classdeclarations = {
'stys' : styleset,
'ctxt' : text, 'ctxt' : text,
'stys' : styleset,
} }
_propdeclarations = { _propdeclarations = {
'pAft' : justbehind,
'psct' : writing_code,
'txst' : style,
'colr' : color,
'pBef' : infront, 'pBef' : infront,
'pnam' : name, 'bgng' : beginning,
'colr' : color,
'txst' : style,
'psct' : writing_code,
'pAft' : justbehind,
'end ' : end,
'ptsz' : size, 'ptsz' : size,
'pUpL' : updateLevel, 'pUpL' : updateLevel,
'bgng' : beginning, 'pnam' : name,
'font' : font, 'font' : font,
'end ' : end,
} }
_compdeclarations = { _compdeclarations = {
......
"""Suite WorldWideWeb suite, as defined in Spyglass spec.: """Suite WorldWideWeb suite, as defined in Spyglass spec.:
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Moes:Applications (Mac OS 9):Netscape Communicator Folder:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -42,7 +42,7 @@ class WorldWideWeb_suite_Events: ...@@ -42,7 +42,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -72,7 +72,7 @@ class WorldWideWeb_suite_Events: ...@@ -72,7 +72,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -98,7 +98,7 @@ class WorldWideWeb_suite_Events: ...@@ -98,7 +98,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -123,7 +123,7 @@ class WorldWideWeb_suite_Events: ...@@ -123,7 +123,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -144,7 +144,7 @@ class WorldWideWeb_suite_Events: ...@@ -144,7 +144,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -164,7 +164,7 @@ class WorldWideWeb_suite_Events: ...@@ -164,7 +164,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -184,7 +184,7 @@ class WorldWideWeb_suite_Events: ...@@ -184,7 +184,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -205,7 +205,7 @@ class WorldWideWeb_suite_Events: ...@@ -205,7 +205,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -225,7 +225,7 @@ class WorldWideWeb_suite_Events: ...@@ -225,7 +225,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -245,7 +245,7 @@ class WorldWideWeb_suite_Events: ...@@ -245,7 +245,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -273,7 +273,7 @@ class WorldWideWeb_suite_Events: ...@@ -273,7 +273,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -299,7 +299,7 @@ class WorldWideWeb_suite_Events: ...@@ -299,7 +299,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -325,7 +325,7 @@ class WorldWideWeb_suite_Events: ...@@ -325,7 +325,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -351,7 +351,7 @@ class WorldWideWeb_suite_Events: ...@@ -351,7 +351,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -377,7 +377,7 @@ class WorldWideWeb_suite_Events: ...@@ -377,7 +377,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -403,7 +403,7 @@ class WorldWideWeb_suite_Events: ...@@ -403,7 +403,7 @@ class WorldWideWeb_suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
""" """
Package generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Package generated from Moes:Applications (Mac OS 9):Netscape Communicator Folder:Netscape Communicator
Resource aete resid 0 Resource aete resid 0
""" """
import aetools import aetools
Error = aetools.Error
import Required_suite import Required_suite
import Standard_Suite import Standard_Suite
import Standard_URL_suite import Standard_URL_suite
......
...@@ -27,7 +27,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -27,7 +27,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -46,7 +46,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -46,7 +46,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -65,7 +65,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -65,7 +65,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -85,7 +85,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -85,7 +85,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -110,7 +110,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -110,7 +110,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -138,7 +138,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -138,7 +138,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -164,7 +164,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -164,7 +164,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -184,7 +184,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -184,7 +184,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -212,7 +212,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -212,7 +212,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -233,7 +233,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -233,7 +233,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -264,7 +264,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -264,7 +264,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -290,7 +290,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -290,7 +290,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -317,7 +317,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -317,7 +317,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -337,7 +337,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -337,7 +337,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -363,7 +363,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -363,7 +363,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -389,7 +389,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -389,7 +389,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -415,7 +415,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -415,7 +415,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -441,7 +441,7 @@ class Standard_Suite_Events(builtin_Suite_Events): ...@@ -441,7 +441,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
...@@ -23,7 +23,7 @@ class builtin_Suite_Events: ...@@ -23,7 +23,7 @@ class builtin_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -42,7 +42,7 @@ class builtin_Suite_Events: ...@@ -42,7 +42,7 @@ class builtin_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -61,7 +61,7 @@ class builtin_Suite_Events: ...@@ -61,7 +61,7 @@ class builtin_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -81,7 +81,7 @@ class builtin_Suite_Events: ...@@ -81,7 +81,7 @@ class builtin_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
...@@ -106,7 +106,7 @@ class builtin_Suite_Events: ...@@ -106,7 +106,7 @@ class builtin_Suite_Events:
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
if _arguments.has_key('errn'): if _arguments.get('errn', 0):
raise aetools.Error, aetools.decodeerror(_arguments) raise aetools.Error, aetools.decodeerror(_arguments)
# XXXX Optionally decode result # XXXX Optionally decode result
if _arguments.has_key('----'): if _arguments.has_key('----'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment