symbian-qemu-0.9.1-12/python-2.6.1/Mac/Tools/Doc/HelpIndexingTool/Miscellaneous_Standards.py
equal
deleted
inserted
replaced
|
1 """Suite Miscellaneous Standards: Useful events that aren\xd5t in any other suite |
|
2 Level 0, version 0 |
|
3 |
|
4 Generated from /Developer/Applications/Apple Help Indexing Tool.app |
|
5 AETE/AEUT resource version 1/1, language 0, script 0 |
|
6 """ |
|
7 |
|
8 import aetools |
|
9 import MacOS |
|
10 |
|
11 _code = 'misc' |
|
12 |
|
13 class Miscellaneous_Standards_Events: |
|
14 |
|
15 def revert(self, _object, _attributes={}, **_arguments): |
|
16 """revert: Revert an object to the most recently saved version |
|
17 Required argument: object to revert |
|
18 Keyword argument _attributes: AppleEvent attribute dictionary |
|
19 """ |
|
20 _code = 'misc' |
|
21 _subcode = 'rvrt' |
|
22 |
|
23 if _arguments: raise TypeError, 'No optional args expected' |
|
24 _arguments['----'] = _object |
|
25 |
|
26 |
|
27 _reply, _arguments, _attributes = self.send(_code, _subcode, |
|
28 _arguments, _attributes) |
|
29 if _arguments.get('errn', 0): |
|
30 raise aetools.Error, aetools.decodeerror(_arguments) |
|
31 # XXXX Optionally decode result |
|
32 if _arguments.has_key('----'): |
|
33 return _arguments['----'] |
|
34 |
|
35 |
|
36 # |
|
37 # Indices of types declared in this module |
|
38 # |
|
39 _classdeclarations = { |
|
40 } |
|
41 |
|
42 _propdeclarations = { |
|
43 } |
|
44 |
|
45 _compdeclarations = { |
|
46 } |
|
47 |
|
48 _enumdeclarations = { |
|
49 } |