ยปCore Development>Code coverage>Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py

Python code coverage for Lib/plat-mac/lib-scriptpackages/Netscape/PowerPlant.py

#countcontent
1n/a"""Suite PowerPlant:
2n/aLevel 0, version 0
3n/a
4n/aGenerated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
5n/aAETE/AEUT resource version 1/0, language 0, script 0
6n/a"""
7n/a
8n/aimport aetools
9n/aimport MacOS
10n/a
11n/a_code = 'ppnt'
12n/a
13n/aclass PowerPlant_Events:
14n/a
15n/a _argmap_SwitchTellTarget = {
16n/a 'to' : 'data',
17n/a }
18n/a
19n/a def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments):
20n/a """SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents
21n/a Keyword argument to: reference to new focus of AppleEvents
22n/a Keyword argument _attributes: AppleEvent attribute dictionary
23n/a """
24n/a _code = 'ppnt'
25n/a _subcode = 'sttg'
26n/a
27n/a aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
28n/a if _no_object is not None: raise TypeError, 'No direct arg expected'
29n/a
30n/a
31n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
32n/a _arguments, _attributes)
33n/a if _arguments.get('errn', 0):
34n/a raise aetools.Error, aetools.decodeerror(_arguments)
35n/a # XXXX Optionally decode result
36n/a if _arguments.has_key('----'):
37n/a return _arguments['----']
38n/a
39n/a _argmap_select = {
40n/a 'data' : 'data',
41n/a }
42n/a
43n/a def select(self, _object, _attributes={}, **_arguments):
44n/a """select: Sets the present selection
45n/a Required argument: object to select or container of sub-objects to select
46n/a Keyword argument data: sub-object(s) to select
47n/a Keyword argument _attributes: AppleEvent attribute dictionary
48n/a """
49n/a _code = 'misc'
50n/a _subcode = 'slct'
51n/a
52n/a aetools.keysubst(_arguments, self._argmap_select)
53n/a _arguments['----'] = _object
54n/a
55n/a
56n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
57n/a _arguments, _attributes)
58n/a if _arguments.get('errn', 0):
59n/a raise aetools.Error, aetools.decodeerror(_arguments)
60n/a # XXXX Optionally decode result
61n/a if _arguments.has_key('----'):
62n/a return _arguments['----']
63n/a
64n/a_Enum_dbac = {
65n/a 'DoNothing' : '\x00\x00\x00\x00', # No debugging action is taken.
66n/a 'PostAlert' : '\x00\x00\x00\x01', # Post an alert.
67n/a 'LowLevelDebugger' : '\x00\x00\x00\x02', # Break into the low level debugger (MacsBug).
68n/a 'SourceDebugger' : '\x00\x00\x00\x03', # Break into the source level debugger (if source debugger is executing).
69n/a}
70n/a
71n/a
72n/a#
73n/a# Indices of types declared in this module
74n/a#
75n/a_classdeclarations = {
76n/a}
77n/a
78n/a_propdeclarations = {
79n/a}
80n/a
81n/a_compdeclarations = {
82n/a}
83n/a
84n/a_enumdeclarations = {
85n/a 'dbac' : _Enum_dbac,
86n/a}