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

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

#countcontent
1n/a"""Suite URL Suite: Standard suite for Uniform Resource Locators
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 = 'GURL'
12n/a
13n/aclass URL_Suite_Events:
14n/a
15n/a _argmap_GetURL = {
16n/a 'to' : 'dest',
17n/a }
18n/a
19n/a def GetURL(self, _object, _attributes={}, **_arguments):
20n/a """GetURL: Open the URL (and optionally save it to disk)
21n/a Required argument: URL to open
22n/a Keyword argument to: File into which to save resource located at URL.
23n/a Keyword argument _attributes: AppleEvent attribute dictionary
24n/a """
25n/a _code = 'GURL'
26n/a _subcode = 'GURL'
27n/a
28n/a aetools.keysubst(_arguments, self._argmap_GetURL)
29n/a _arguments['----'] = _object
30n/a
31n/a
32n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
33n/a _arguments, _attributes)
34n/a if _arguments.get('errn', 0):
35n/a raise aetools.Error, aetools.decodeerror(_arguments)
36n/a # XXXX Optionally decode result
37n/a if _arguments.has_key('----'):
38n/a return _arguments['----']
39n/a
40n/a
41n/a#
42n/a# Indices of types declared in this module
43n/a#
44n/a_classdeclarations = {
45n/a}
46n/a
47n/a_propdeclarations = {
48n/a}
49n/a
50n/a_compdeclarations = {
51n/a}
52n/a
53n/a_enumdeclarations = {
54n/a}