blob: 44b6ca7fa98128c9f98137d64e397837c74b4b6d [file] [log] [blame]
Jack Jansend3903251996-01-29 15:45:59 +00001"""Suite Standard URL suite: Mac URL standard, supported by many apps
2
3
4
5Level 1, version 1
6
Jack Jansen21b5d601997-08-27 13:49:18 +00007Generated from flap:Programma's:Netscape NavigatorĀ Folder:Netscape NavigatorĀ 3.01
Jack Jansend3903251996-01-29 15:45:59 +00008AETE/AEUT resource version 1/0, language 0, script 0
9"""
10
Jack Jansend3903251996-01-29 15:45:59 +000011import aetools
12import MacOS
13
14_code = 'GURL'
15
16class Standard_URL_suite:
17
18 _argmap_GetURL = {
19 'to' : 'dest',
20 'inside' : 'HWIN',
21 '_from' : 'refe',
22 }
23
24 def GetURL(self, _object, _attributes={}, **_arguments):
25 """GetURL: Loads the URL (optionaly to disk)
26
27 Required argument: The url
28 Keyword argument to: file the URL should be loaded into
29 Keyword argument inside: Window the URL should be loaded to
30 Keyword argument _from: Refererer, to be sent with the HTTP request
31 Keyword argument _attributes: AppleEvent attribute dictionary
32 """
33 _code = 'GURL'
34 _subcode = 'GURL'
35
36 aetools.keysubst(_arguments, self._argmap_GetURL)
37 _arguments['----'] = _object
38
39
40 _reply, _arguments, _attributes = self.send(_code, _subcode,
41 _arguments, _attributes)
42 if _arguments.has_key('errn'):
Jack Jansen433a48e1996-09-20 15:29:08 +000043 raise aetools.Error, aetools.decodeerror(_arguments)
Jack Jansend3903251996-01-29 15:45:59 +000044 # XXXX Optionally decode result
45 if _arguments.has_key('----'):
46 return _arguments['----']
47
Jack Jansen21b5d601997-08-27 13:49:18 +000048
49#
50# Indices of types declared in this module
51#
52_classdeclarations = {
53}
54
55_propdeclarations = {
56}
57
58_compdeclarations = {
59}
60
61_enumdeclarations = {
62}