More installation info. Bump alpha version.
[python/dscho.git] / Lib / plat-mac / lib-scriptpackages / Netscape / PowerPlant.py
blobe21242b972bb70863178da9c183fa4167986b674
1 """Suite PowerPlant:
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 = 'ppnt'
13 class PowerPlant_Events:
15 _argmap_select = {
16 'data' : 'data',
19 def select(self, _object, _attributes={}, **_arguments):
20 """select: Sets the present selection
21 Required argument: object to select or container of sub-objects to select
22 Keyword argument data: sub-object(s) to select
23 Keyword argument _attributes: AppleEvent attribute dictionary
24 """
25 _code = 'misc'
26 _subcode = 'slct'
28 aetools.keysubst(_arguments, self._argmap_select)
29 _arguments['----'] = _object
32 _reply, _arguments, _attributes = self.send(_code, _subcode,
33 _arguments, _attributes)
34 if _arguments.get('errn', 0):
35 raise aetools.Error, aetools.decodeerror(_arguments)
36 # XXXX Optionally decode result
37 if _arguments.has_key('----'):
38 return _arguments['----']
40 _argmap_SwitchTellTarget = {
41 'to' : 'data',
44 def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments):
45 """SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents
46 Keyword argument to: reference to new focus of AppleEvents
47 Keyword argument _attributes: AppleEvent attribute dictionary
48 """
49 _code = 'ppnt'
50 _subcode = 'sttg'
52 aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
53 if _no_object != None: raise TypeError, 'No direct arg expected'
56 _reply, _arguments, _attributes = self.send(_code, _subcode,
57 _arguments, _attributes)
58 if _arguments.get('errn', 0):
59 raise aetools.Error, aetools.decodeerror(_arguments)
60 # XXXX Optionally decode result
61 if _arguments.has_key('----'):
62 return _arguments['----']
64 _Enum_dbac = {
65 'DoNothing' : '\x00\x00\x00\x00', # No debugging action is taken.
66 'PostAlert' : '\x00\x00\x00\x01', # Post an alert.
67 'LowLevelDebugger' : '\x00\x00\x00\x02', # Break into the low level debugger (MacsBug).
68 'SourceDebugger' : '\x00\x00\x00\x03', # Break into the source level debugger (if source debugger is executing).
73 # Indices of types declared in this module
75 _classdeclarations = {
78 _propdeclarations = {
81 _compdeclarations = {
84 _enumdeclarations = {
85 'dbac' : _Enum_dbac,