Jack Jansen | d390325 | 1996-01-29 15:45:59 +0000 | [diff] [blame] | 1 | """Suite Standard URL suite: Mac URL standard, supported by many apps |
| 2 | |
| 3 | |
| 4 | |
| 5 | Level 1, version 1 |
| 6 | |
Jack Jansen | 21b5d60 | 1997-08-27 13:49:18 +0000 | [diff] [blame] | 7 | Generated from flap:Programma's:Netscape NavigatorĀ Folder:Netscape NavigatorĀ 3.01 |
Jack Jansen | d390325 | 1996-01-29 15:45:59 +0000 | [diff] [blame] | 8 | AETE/AEUT resource version 1/0, language 0, script 0 |
| 9 | """ |
| 10 | |
Jack Jansen | d390325 | 1996-01-29 15:45:59 +0000 | [diff] [blame] | 11 | import aetools |
| 12 | import MacOS |
| 13 | |
| 14 | _code = 'GURL' |
| 15 | |
| 16 | class 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 Jansen | 433a48e | 1996-09-20 15:29:08 +0000 | [diff] [blame] | 43 | raise aetools.Error, aetools.decodeerror(_arguments) |
Jack Jansen | d390325 | 1996-01-29 15:45:59 +0000 | [diff] [blame] | 44 | # XXXX Optionally decode result |
| 45 | if _arguments.has_key('----'): |
| 46 | return _arguments['----'] |
| 47 | |
Jack Jansen | 21b5d60 | 1997-08-27 13:49:18 +0000 | [diff] [blame] | 48 | |
| 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 | } |