1 """Suite Standard URL suite: Mac URL standard, supported by many apps
6 Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
7 AETE/AEUT resource version 1/0, language 0, script 0
15 class Standard_URL_suite_Events
:
23 def GetURL(self
, _object
, _attributes
={}, **_arguments
):
24 """GetURL: Loads the URL (optionally to disk)
25 Required argument: The url
26 Keyword argument to: file the URL should be loaded into
27 Keyword argument inside: Window the URL should be loaded to
28 Keyword argument from_: Referrer, to be sent with the HTTP request
29 Keyword argument _attributes: AppleEvent attribute dictionary
34 aetools
.keysubst(_arguments
, self
._argmap
_GetURL
)
35 _arguments
['----'] = _object
38 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
39 _arguments
, _attributes
)
40 if _arguments
.get('errn', 0):
41 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
42 # XXXX Optionally decode result
43 if _arguments
.has_key('----'):
44 return _arguments
['----']
48 # Indices of types declared in this module
50 _classdeclarations
= {