Back to index

python3.2  3.2.2
Miscellaneous_Standards.py
Go to the documentation of this file.
00001 """Suite Miscellaneous Standards: Useful events that aren\xd5t in any other suite
00002 Level 0, version 0
00003 
00004 Generated from /Developer/Applications/Apple Help Indexing Tool.app
00005 AETE/AEUT resource version 1/1, language 0, script 0
00006 """
00007 
00008 import aetools
00009 import MacOS
00010 
00011 _code = 'misc'
00012 
00013 class Miscellaneous_Standards_Events:
00014 
00015     def revert(self, _object, _attributes={}, **_arguments):
00016         """revert: Revert an object to the most recently saved version
00017         Required argument: object to revert
00018         Keyword argument _attributes: AppleEvent attribute dictionary
00019         """
00020         _code = 'misc'
00021         _subcode = 'rvrt'
00022 
00023         if _arguments: raise TypeError('No optional args expected')
00024         _arguments['----'] = _object
00025 
00026 
00027         _reply, _arguments, _attributes = self.send(_code, _subcode,
00028                 _arguments, _attributes)
00029         if _arguments.get('errn', 0):
00030             raise aetools.Error(aetools.decodeerror(_arguments))
00031         # XXXX Optionally decode result
00032         if _arguments.has_key('----'):
00033             return _arguments['----']
00034 
00035 
00036 #
00037 # Indices of types declared in this module
00038 #
00039 _classdeclarations = {
00040 }
00041 
00042 _propdeclarations = {
00043 }
00044 
00045 _compdeclarations = {
00046 }
00047 
00048 _enumdeclarations = {
00049 }