test_whitespace_eater_unicode(): Make this test Python 2.1 compatible.
[python/dscho.git] / Lib / plat-mac / lib-scriptpackages / Explorer / Required_Suite.py
blob05cfa193b3743e38b4397ed0abca8df4388660f2
1 """Suite Required Suite: Events that every application should support
2 Level 1, version 1
4 Generated from /Volumes/Sap/Applications (Mac OS 9)/Internet Explorer 5/Internet Explorer
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'reqd'
13 from StdSuites.Required_Suite import *
14 class Required_Suite_Events(Required_Suite_Events):
16 def run(self, _no_object=None, _attributes={}, **_arguments):
17 """run:
18 Keyword argument _attributes: AppleEvent attribute dictionary
19 """
20 _code = 'aevt'
21 _subcode = 'oapp'
23 if _arguments: raise TypeError, 'No optional args expected'
24 if _no_object != None: raise TypeError, 'No direct arg expected'
27 _reply, _arguments, _attributes = self.send(_code, _subcode,
28 _arguments, _attributes)
29 if _arguments.get('errn', 0):
30 raise aetools.Error, aetools.decodeerror(_arguments)
31 # XXXX Optionally decode result
32 if _arguments.has_key('----'):
33 return _arguments['----']
35 def open(self, _object, _attributes={}, **_arguments):
36 """open: Open documents
37 Required argument: undocumented, typecode 'alis'
38 Keyword argument _attributes: AppleEvent attribute dictionary
39 """
40 _code = 'aevt'
41 _subcode = 'odoc'
43 if _arguments: raise TypeError, 'No optional args expected'
44 _arguments['----'] = _object
47 _reply, _arguments, _attributes = self.send(_code, _subcode,
48 _arguments, _attributes)
49 if _arguments.get('errn', 0):
50 raise aetools.Error, aetools.decodeerror(_arguments)
51 # XXXX Optionally decode result
52 if _arguments.has_key('----'):
53 return _arguments['----']
55 def print_(self, _object, _attributes={}, **_arguments):
56 """print: Print documents
57 Required argument: undocumented, typecode 'alis'
58 Keyword argument _attributes: AppleEvent attribute dictionary
59 """
60 _code = 'aevt'
61 _subcode = 'pdoc'
63 if _arguments: raise TypeError, 'No optional args expected'
64 _arguments['----'] = _object
67 _reply, _arguments, _attributes = self.send(_code, _subcode,
68 _arguments, _attributes)
69 if _arguments.get('errn', 0):
70 raise aetools.Error, aetools.decodeerror(_arguments)
71 # XXXX Optionally decode result
72 if _arguments.has_key('----'):
73 return _arguments['----']
75 def quit(self, _no_object=None, _attributes={}, **_arguments):
76 """quit: Quit application
77 Keyword argument _attributes: AppleEvent attribute dictionary
78 """
79 _code = 'aevt'
80 _subcode = 'quit'
82 if _arguments: raise TypeError, 'No optional args expected'
83 if _no_object != None: raise TypeError, 'No direct arg expected'
86 _reply, _arguments, _attributes = self.send(_code, _subcode,
87 _arguments, _attributes)
88 if _arguments.get('errn', 0):
89 raise aetools.Error, aetools.decodeerror(_arguments)
90 # XXXX Optionally decode result
91 if _arguments.has_key('----'):
92 return _arguments['----']
96 # Indices of types declared in this module
98 _classdeclarations = {
101 _propdeclarations = {
104 _compdeclarations = {
107 _enumdeclarations = {