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

Python code coverage for Lib/plat-mac/lib-scriptpackages/Explorer/Standard_Suite.py

#countcontent
1n/a"""Suite Standard Suite: Common terms for most applications
2n/aLevel 1, version 1
3n/a
4n/aGenerated from /Applications/Internet Explorer.app
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 = '****'
12n/a
13n/aclass Standard_Suite_Events:
14n/a
15n/a _argmap_get = {
16n/a 'as' : 'rtyp',
17n/a }
18n/a
19n/a def get(self, _object, _attributes={}, **_arguments):
20n/a """get:
21n/a Required argument: an AE object reference
22n/a Keyword argument as: undocumented, typecode 'type'
23n/a Keyword argument _attributes: AppleEvent attribute dictionary
24n/a Returns: anything
25n/a """
26n/a _code = 'core'
27n/a _subcode = 'getd'
28n/a
29n/a aetools.keysubst(_arguments, self._argmap_get)
30n/a _arguments['----'] = _object
31n/a
32n/a
33n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
34n/a _arguments, _attributes)
35n/a if _arguments.get('errn', 0):
36n/a raise aetools.Error, aetools.decodeerror(_arguments)
37n/a # XXXX Optionally decode result
38n/a if _arguments.has_key('----'):
39n/a return _arguments['----']
40n/a
41n/a
42n/aclass application(aetools.ComponentItem):
43n/a """application - An application program """
44n/a want = 'capp'
45n/aclass _Prop_selected_text(aetools.NProperty):
46n/a """selected text - the selected text """
47n/a which = 'stxt'
48n/a want = 'TEXT'
49n/aselected_text = _Prop_selected_text()
50n/aapplication._superclassnames = []
51n/aapplication._privpropdict = {
52n/a 'selected_text' : _Prop_selected_text,
53n/a}
54n/aapplication._privelemdict = {
55n/a}
56n/a
57n/a#
58n/a# Indices of types declared in this module
59n/a#
60n/a_classdeclarations = {
61n/a 'capp' : application,
62n/a}
63n/a
64n/a_propdeclarations = {
65n/a 'stxt' : _Prop_selected_text,
66n/a}
67n/a
68n/a_compdeclarations = {
69n/a}
70n/a
71n/a_enumdeclarations = {
72n/a}