Oops -- Lib/Test should be Lib/test, of course!
[python/dscho.git] / Mac / Lib / lib-scripting / Standard_URL_suite.py
blob44b6ca7fa98128c9f98137d64e397837c74b4b6d
1 """Suite Standard URL suite: Mac URL standard, supported by many apps
5 Level 1, version 1
7 Generated from flap:Programma's:Netscape Navigator� Folder:Netscape Navigator� 3.01
8 AETE/AEUT resource version 1/0, language 0, script 0
9 """
11 import aetools
12 import MacOS
14 _code = 'GURL'
16 class Standard_URL_suite:
18 _argmap_GetURL = {
19 'to' : 'dest',
20 'inside' : 'HWIN',
21 '_from' : 'refe',
24 def GetURL(self, _object, _attributes={}, **_arguments):
25 """GetURL: Loads the URL (optionaly to disk)
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'
36 aetools.keysubst(_arguments, self._argmap_GetURL)
37 _arguments['----'] = _object
40 _reply, _arguments, _attributes = self.send(_code, _subcode,
41 _arguments, _attributes)
42 if _arguments.has_key('errn'):
43 raise aetools.Error, aetools.decodeerror(_arguments)
44 # XXXX Optionally decode result
45 if _arguments.has_key('----'):
46 return _arguments['----']
50 # Indices of types declared in this module
52 _classdeclarations = {
55 _propdeclarations = {
58 _compdeclarations = {
61 _enumdeclarations = {