• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""Suite Required suite:
2Level 0, version 0
3
4Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
5AETE/AEUT resource version 1/0, language 0, script 0
6"""
7
8import aetools
9import MacOS
10
11_code = 'reqd'
12
13from StdSuites.Required_Suite import *
14class Required_suite_Events(Required_Suite_Events):
15
16    def open(self, _object, _attributes={}, **_arguments):
17        """open: Open the specified object(s)
18        Required argument: list of objects to open
19        Keyword argument _attributes: AppleEvent attribute dictionary
20        """
21        _code = 'aevt'
22        _subcode = 'odoc'
23
24        if _arguments: raise TypeError, 'No optional args expected'
25        _arguments['----'] = _object
26
27
28        _reply, _arguments, _attributes = self.send(_code, _subcode,
29                _arguments, _attributes)
30        if _arguments.get('errn', 0):
31            raise aetools.Error, aetools.decodeerror(_arguments)
32        # XXXX Optionally decode result
33        if _arguments.has_key('----'):
34            return _arguments['----']
35
36    def print_(self, _object, _attributes={}, **_arguments):
37        """print: Print the specified object(s)
38        Required argument: list of objects to print
39        Keyword argument _attributes: AppleEvent attribute dictionary
40        """
41        _code = 'aevt'
42        _subcode = 'pdoc'
43
44        if _arguments: raise TypeError, 'No optional args expected'
45        _arguments['----'] = _object
46
47
48        _reply, _arguments, _attributes = self.send(_code, _subcode,
49                _arguments, _attributes)
50        if _arguments.get('errn', 0):
51            raise aetools.Error, aetools.decodeerror(_arguments)
52        # XXXX Optionally decode result
53        if _arguments.has_key('----'):
54            return _arguments['----']
55
56    def quit(self, _no_object=None, _attributes={}, **_arguments):
57        """quit: Quit Navigator
58        Keyword argument _attributes: AppleEvent attribute dictionary
59        """
60        _code = 'aevt'
61        _subcode = 'quit'
62
63        if _arguments: raise TypeError, 'No optional args expected'
64        if _no_object is not None: raise TypeError, 'No direct arg expected'
65
66
67        _reply, _arguments, _attributes = self.send(_code, _subcode,
68                _arguments, _attributes)
69        if _arguments.get('errn', 0):
70            raise aetools.Error, aetools.decodeerror(_arguments)
71        # XXXX Optionally decode result
72        if _arguments.has_key('----'):
73            return _arguments['----']
74
75    def run(self, _no_object=None, _attributes={}, **_arguments):
76        """run: Sent to an application when it is double-clicked
77        Keyword argument _attributes: AppleEvent attribute dictionary
78        """
79        _code = 'aevt'
80        _subcode = 'oapp'
81
82        if _arguments: raise TypeError, 'No optional args expected'
83        if _no_object is not None: raise TypeError, 'No direct arg expected'
84
85
86        _reply, _arguments, _attributes = self.send(_code, _subcode,
87                _arguments, _attributes)
88        if _arguments.get('errn', 0):
89            raise aetools.Error, aetools.decodeerror(_arguments)
90        # XXXX Optionally decode result
91        if _arguments.has_key('----'):
92            return _arguments['----']
93
94
95#
96# Indices of types declared in this module
97#
98_classdeclarations = {
99}
100
101_propdeclarations = {
102}
103
104_compdeclarations = {
105}
106
107_enumdeclarations = {
108}
109