1 """Suite Required: Terms that every application should support
4 Generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5
5 AETE/AEUT resource version 1/0, language 0, script 0
13 from StdSuites
.Required_Suite
import *
14 class Required_Events(Required_Suite_Events
):
17 'converting' : 'Conv',
20 def open(self
, _object
, _attributes
={}, **_arguments
):
21 """open: Open the specified object(s)
22 Required argument: list of objects to open
23 Keyword argument converting: Whether to convert project to latest version (yes/no; default is ask).
24 Keyword argument _attributes: AppleEvent attribute dictionary
29 aetools
.keysubst(_arguments
, self
._argmap
_open
)
30 _arguments
['----'] = _object
32 aetools
.enumsubst(_arguments
, 'Conv', _Enum_Conv
)
34 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
35 _arguments
, _attributes
)
36 if _arguments
.get('errn', 0):
37 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
38 # XXXX Optionally decode result
39 if _arguments
.has_key('----'):
40 return _arguments
['----']
43 'yes' : 'yes ', # Convert the project if necessary on open
44 'no' : 'no ', # Do not convert the project if needed on open
49 # Indices of types declared in this module
51 _classdeclarations
= {