py-cvs-rel2_1 (Rev 1.2) merge
[python/dscho.git] / Mac / Lib / lib-scriptpackages / Explorer / URL_Suite.py
blob820d3f7c7c7900baf77c819b4fba9b3abf72fafb
1 """Suite URL Suite: Standard suite for Uniform Resource Locators
2 Level 1, version 1
4 Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'GURL'
13 class URL_Suite_Events:
15 _argmap_GetURL = {
16 'to' : 'dest',
19 def GetURL(self, _object, _attributes={}, **_arguments):
20 """GetURL: Open the URL (and optionally save it to disk)
21 Required argument: The URL
22 Keyword argument to: Save the resolved URL contents to this file.
23 Keyword argument _attributes: AppleEvent attribute dictionary
24 """
25 _code = 'GURL'
26 _subcode = 'GURL'
28 aetools.keysubst(_arguments, self._argmap_GetURL)
29 _arguments['----'] = _object
32 _reply, _arguments, _attributes = self.send(_code, _subcode,
33 _arguments, _attributes)
34 if _arguments.has_key('errn'):
35 raise aetools.Error, aetools.decodeerror(_arguments)
36 # XXXX Optionally decode result
37 if _arguments.has_key('----'):
38 return _arguments['----']
42 # Indices of types declared in this module
44 _classdeclarations = {
47 _propdeclarations = {
50 _compdeclarations = {
53 _enumdeclarations = {