/Mac/Tools/Doc/HelpIndexingTool/Miscellaneous_Standards.py

http://unladen-swallow.googlecode.com/ · Python · 49 lines · 23 code · 12 blank · 14 comment · 3 complexity · 2336ef35ff87db3bda565af37c64cc56 MD5 · raw file

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