Fix a bug in the ``compiler`` package that caused invalid code to be
[python/dscho.git] / Lib / plat-mac / lib-scriptpackages / Netscape / Required_suite.py
blobb5c411048cc633f6c2245406fec9a70ed4f4387a
1 """Suite Required suite:
2 Level 0, version 0
4 Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
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 open(self, _object, _attributes={}, **_arguments):
17 """open: Open the specified object(s)
18 Required argument: list of objects to open
19 Keyword argument _attributes: AppleEvent attribute dictionary
20 """
21 _code = 'aevt'
22 _subcode = 'odoc'
24 if _arguments: raise TypeError, 'No optional args expected'
25 _arguments['----'] = _object
28 _reply, _arguments, _attributes = self.send(_code, _subcode,
29 _arguments, _attributes)
30 if _arguments.get('errn', 0):
31 raise aetools.Error, aetools.decodeerror(_arguments)
32 # XXXX Optionally decode result
33 if _arguments.has_key('----'):
34 return _arguments['----']
36 def print_(self, _object, _attributes={}, **_arguments):
37 """print: Print the specified object(s)
38 Required argument: list of objects to print
39 Keyword argument _attributes: AppleEvent attribute dictionary
40 """
41 _code = 'aevt'
42 _subcode = 'pdoc'
44 if _arguments: raise TypeError, 'No optional args expected'
45 _arguments['----'] = _object
48 _reply, _arguments, _attributes = self.send(_code, _subcode,
49 _arguments, _attributes)
50 if _arguments.get('errn', 0):
51 raise aetools.Error, aetools.decodeerror(_arguments)
52 # XXXX Optionally decode result
53 if _arguments.has_key('----'):
54 return _arguments['----']
56 def quit(self, _no_object=None, _attributes={}, **_arguments):
57 """quit: Quit Navigator
58 Keyword argument _attributes: AppleEvent attribute dictionary
59 """
60 _code = 'aevt'
61 _subcode = 'quit'
63 if _arguments: raise TypeError, 'No optional args expected'
64 if _no_object != None: raise TypeError, 'No direct arg expected'
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 run(self, _no_object=None, _attributes={}, **_arguments):
76 """run: Sent to an application when it is double-clicked
77 Keyword argument _attributes: AppleEvent attribute dictionary
78 """
79 _code = 'aevt'
80 _subcode = 'oapp'
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 = {