AddressList.__str__(): Get rid of useless, and broken method. Closes
[python/dscho.git] / Lib / plat-mac / lib-scriptpackages / Netscape / PowerPlant.py
blob30fe5667698851ab009fda78154d705581b3c30e
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_SwitchTellTarget = {
16 'to' : 'data',
19 def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments):
20 """SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents
21 Keyword argument to: reference to new focus of AppleEvents
22 Keyword argument _attributes: AppleEvent attribute dictionary
23 """
24 _code = 'ppnt'
25 _subcode = 'sttg'
27 aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
28 if _no_object != None: raise TypeError, 'No direct arg expected'
31 _reply, _arguments, _attributes = self.send(_code, _subcode,
32 _arguments, _attributes)
33 if _arguments.get('errn', 0):
34 raise aetools.Error, aetools.decodeerror(_arguments)
35 # XXXX Optionally decode result
36 if _arguments.has_key('----'):
37 return _arguments['----']
39 _argmap_select = {
40 'data' : 'data',
43 def select(self, _object, _attributes={}, **_arguments):
44 """select: Sets the present selection
45 Required argument: object to select or container of sub-objects to select
46 Keyword argument data: sub-object(s) to select
47 Keyword argument _attributes: AppleEvent attribute dictionary
48 """
49 _code = 'misc'
50 _subcode = 'slct'
52 aetools.keysubst(_arguments, self._argmap_select)
53 _arguments['----'] = _object
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,