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

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

#countcontent
1n/a"""Suite Required suite:
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 = 'reqd'
12n/a
13n/afrom StdSuites.Required_Suite import *
14n/aclass Required_suite_Events(Required_Suite_Events):
15n/a
16n/a def open(self, _object, _attributes={}, **_arguments):
17n/a """open: Open the specified object(s)
18n/a Required argument: list of objects to open
19n/a Keyword argument _attributes: AppleEvent attribute dictionary
20n/a """
21n/a _code = 'aevt'
22n/a _subcode = 'odoc'
23n/a
24n/a if _arguments: raise TypeError, 'No optional args expected'
25n/a _arguments['----'] = _object
26n/a
27n/a
28n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
29n/a _arguments, _attributes)
30n/a if _arguments.get('errn', 0):
31n/a raise aetools.Error, aetools.decodeerror(_arguments)
32n/a # XXXX Optionally decode result
33n/a if _arguments.has_key('----'):
34n/a return _arguments['----']
35n/a
36n/a def print_(self, _object, _attributes={}, **_arguments):
37n/a """print: Print the specified object(s)
38n/a Required argument: list of objects to print
39n/a Keyword argument _attributes: AppleEvent attribute dictionary
40n/a """
41n/a _code = 'aevt'
42n/a _subcode = 'pdoc'
43n/a
44n/a if _arguments: raise TypeError, 'No optional args expected'
45n/a _arguments['----'] = _object
46n/a
47n/a
48n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
49n/a _arguments, _attributes)
50n/a if _arguments.get('errn', 0):
51n/a raise aetools.Error, aetools.decodeerror(_arguments)
52n/a # XXXX Optionally decode result
53n/a if _arguments.has_key('----'):
54n/a return _arguments['----']
55n/a
56n/a def quit(self, _no_object=None, _attributes={}, **_arguments):
57n/a """quit: Quit Navigator
58n/a Keyword argument _attributes: AppleEvent attribute dictionary
59n/a """
60n/a _code = 'aevt'
61n/a _subcode = 'quit'
62n/a
63n/a if _arguments: raise TypeError, 'No optional args expected'
64n/a if _no_object is not None: raise TypeError, 'No direct arg expected'
65n/a
66n/a
67n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
68n/a _arguments, _attributes)
69n/a if _arguments.get('errn', 0):
70n/a raise aetools.Error, aetools.decodeerror(_arguments)
71n/a # XXXX Optionally decode result
72n/a if _arguments.has_key('----'):
73n/a return _arguments['----']
74n/a
75n/a def run(self, _no_object=None, _attributes={}, **_arguments):
76n/a """run: Sent to an application when it is double-clicked
77n/a Keyword argument _attributes: AppleEvent attribute dictionary
78n/a """
79n/a _code = 'aevt'
80n/a _subcode = 'oapp'
81n/a
82n/a if _arguments: raise TypeError, 'No optional args expected'
83n/a if _no_object is not None: raise TypeError, 'No direct arg expected'
84n/a
85n/a
86n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
87n/a _arguments, _attributes)
88n/a if _arguments.get('errn', 0):
89n/a raise aetools.Error, aetools.decodeerror(_arguments)
90n/a # XXXX Optionally decode result
91n/a if _arguments.has_key('----'):
92n/a return _arguments['----']
93n/a
94n/a
95n/a#
96n/a# Indices of types declared in this module
97n/a#
98n/a_classdeclarations = {
99n/a}
100n/a
101n/a_propdeclarations = {
102n/a}
103n/a
104n/a_compdeclarations = {
105n/a}
106n/a
107n/a_enumdeclarations = {
108n/a}