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

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

#countcontent
1n/a"""Suite Standard URL suite: Mac URL standard, supported by many apps
2n/a
3n/a
4n/aLevel 1, version 1
5n/a
6n/aGenerated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
7n/aAETE/AEUT resource version 1/0, language 0, script 0
8n/a"""
9n/a
10n/aimport aetools
11n/aimport MacOS
12n/a
13n/a_code = 'GURL'
14n/a
15n/aclass Standard_URL_suite_Events:
16n/a
17n/a _argmap_GetURL = {
18n/a 'to' : 'dest',
19n/a 'inside' : 'HWIN',
20n/a 'from_' : 'refe',
21n/a }
22n/a
23n/a def GetURL(self, _object, _attributes={}, **_arguments):
24n/a """GetURL: Loads the URL (optionally to disk)
25n/a Required argument: The url
26n/a Keyword argument to: file the URL should be loaded into
27n/a Keyword argument inside: Window the URL should be loaded to
28n/a Keyword argument from_: Referrer, to be sent with the HTTP request
29n/a Keyword argument _attributes: AppleEvent attribute dictionary
30n/a """
31n/a _code = 'GURL'
32n/a _subcode = 'GURL'
33n/a
34n/a aetools.keysubst(_arguments, self._argmap_GetURL)
35n/a _arguments['----'] = _object
36n/a
37n/a
38n/a _reply, _arguments, _attributes = self.send(_code, _subcode,
39n/a _arguments, _attributes)
40n/a if _arguments.get('errn', 0):
41n/a raise aetools.Error, aetools.decodeerror(_arguments)
42n/a # XXXX Optionally decode result
43n/a if _arguments.has_key('----'):
44n/a return _arguments['----']
45n/a
46n/a
47n/a#
48n/a# Indices of types declared in this module
49n/a#
50n/a_classdeclarations = {
51n/a}
52n/a
53n/a_propdeclarations = {
54n/a}
55n/a
56n/a_compdeclarations = {
57n/a}
58n/a
59n/a_enumdeclarations = {
60n/a}