Convert raise statements in Lib/plat-{mac,os2emx}.
This commit is contained in:
parent
cfe02a498b
commit
e45be28be6
|
@ -48,7 +48,7 @@ class Play_Audio_mac:
|
||||||
self._chan = Snd.SndNewChannel(5, 0, self._callback)
|
self._chan = Snd.SndNewChannel(5, 0, self._callback)
|
||||||
nframes = len(data) / self._nchannels / self._sampwidth
|
nframes = len(data) / self._nchannels / self._sampwidth
|
||||||
if len(data) != nframes * self._nchannels * self._sampwidth:
|
if len(data) != nframes * self._nchannels * self._sampwidth:
|
||||||
raise error, 'data is not a whole number of frames'
|
raise error('data is not a whole number of frames')
|
||||||
while self._gc and \
|
while self._gc and \
|
||||||
self.getfilled() + nframes > \
|
self.getfilled() + nframes > \
|
||||||
self._qsize / self._nchannels / self._sampwidth:
|
self._qsize / self._nchannels / self._sampwidth:
|
||||||
|
|
|
@ -31,7 +31,7 @@ def SetControlData(control, part, selector, data):
|
||||||
setfunc(control, part, selector, data)
|
setfunc(control, part, selector, data)
|
||||||
return
|
return
|
||||||
if not _codingdict.has_key(selector):
|
if not _codingdict.has_key(selector):
|
||||||
raise KeyError, ('Unknown control selector', selector)
|
raise KeyError('Unknown control selector', selector)
|
||||||
structfmt, coder, decoder = _codingdict[selector]
|
structfmt, coder, decoder = _codingdict[selector]
|
||||||
if coder:
|
if coder:
|
||||||
data = coder(data)
|
data = coder(data)
|
||||||
|
@ -44,7 +44,7 @@ def GetControlData(control, part, selector):
|
||||||
setfunc, getfunc = _accessdict[selector]
|
setfunc, getfunc = _accessdict[selector]
|
||||||
return getfunc(control, part, selector, data)
|
return getfunc(control, part, selector, data)
|
||||||
if not _codingdict.has_key(selector):
|
if not _codingdict.has_key(selector):
|
||||||
raise KeyError, ('Unknown control selector', selector)
|
raise KeyError('Unknown control selector', selector)
|
||||||
structfmt, coder, decoder = _codingdict[selector]
|
structfmt, coder, decoder = _codingdict[selector]
|
||||||
data = control.GetControlData(part, selector)
|
data = control.GetControlData(part, selector)
|
||||||
if structfmt:
|
if structfmt:
|
||||||
|
|
|
@ -15,7 +15,7 @@ class _MediaDescriptionCodec:
|
||||||
data = data[:self.size]
|
data = data[:self.size]
|
||||||
values = struct.unpack(self.fmt, data)
|
values = struct.unpack(self.fmt, data)
|
||||||
if len(values) != len(self.names):
|
if len(values) != len(self.names):
|
||||||
raise Error, ('Format length does not match number of names', descr)
|
raise Error('Format length does not match number of names', descr)
|
||||||
rv = {}
|
rv = {}
|
||||||
for i in range(len(values)):
|
for i in range(len(values)):
|
||||||
name = self.names[i]
|
name = self.names[i]
|
||||||
|
|
|
@ -2,4 +2,4 @@ from _Qt import *
|
||||||
try:
|
try:
|
||||||
_ = AddFilePreview
|
_ = AddFilePreview
|
||||||
except:
|
except:
|
||||||
raise ImportError, "Old (2.3) _Qt.so module loaded in stead of new (2.4) _Qt.so"
|
raise ImportError("Old (2.3) _Qt.so module loaded in stead of new (2.4) _Qt.so")
|
||||||
|
|
|
@ -306,7 +306,7 @@ class ProgressBar:
|
||||||
self.w.HideWindow()
|
self.w.HideWindow()
|
||||||
self.w = None
|
self.w = None
|
||||||
self.d = None
|
self.d = None
|
||||||
raise KeyboardInterrupt, ev
|
raise KeyboardInterrupt(ev)
|
||||||
else:
|
else:
|
||||||
if part == 4: # inDrag
|
if part == 4: # inDrag
|
||||||
self.w.DragWindow(where, screenbounds)
|
self.w.DragWindow(where, screenbounds)
|
||||||
|
@ -526,7 +526,7 @@ def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfo
|
||||||
elif n == ARGV_CMDLINE_DATA:
|
elif n == ARGV_CMDLINE_DATA:
|
||||||
pass # Nothing to do
|
pass # Nothing to do
|
||||||
else:
|
else:
|
||||||
raise RuntimeError, "Unknown dialog item %d"%n
|
raise RuntimeError("Unknown dialog item %d"%n)
|
||||||
|
|
||||||
for stringtoadd in stringstoadd:
|
for stringtoadd in stringstoadd:
|
||||||
if '"' in stringtoadd or "'" in stringtoadd or " " in stringtoadd:
|
if '"' in stringtoadd or "'" in stringtoadd or " " in stringtoadd:
|
||||||
|
@ -550,14 +550,14 @@ def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfo
|
||||||
if item[0] == '"':
|
if item[0] == '"':
|
||||||
while item[-1] != '"':
|
while item[-1] != '"':
|
||||||
if not tmplist:
|
if not tmplist:
|
||||||
raise RuntimeError, "Unterminated quoted argument"
|
raise RuntimeError("Unterminated quoted argument")
|
||||||
item = item + ' ' + tmplist[0]
|
item = item + ' ' + tmplist[0]
|
||||||
del tmplist[0]
|
del tmplist[0]
|
||||||
item = item[1:-1]
|
item = item[1:-1]
|
||||||
if item[0] == "'":
|
if item[0] == "'":
|
||||||
while item[-1] != "'":
|
while item[-1] != "'":
|
||||||
if not tmplist:
|
if not tmplist:
|
||||||
raise RuntimeError, "Unterminated quoted argument"
|
raise RuntimeError("Unterminated quoted argument")
|
||||||
item = item + ' ' + tmplist[0]
|
item = item + ' ' + tmplist[0]
|
||||||
del tmplist[0]
|
del tmplist[0]
|
||||||
item = item[1:-1]
|
item = item[1:-1]
|
||||||
|
@ -652,7 +652,7 @@ def AskFileForOpen(
|
||||||
good = 1
|
good = 1
|
||||||
except Nav.error as arg:
|
except Nav.error as arg:
|
||||||
if arg[0] != -128: # userCancelledErr
|
if arg[0] != -128: # userCancelledErr
|
||||||
raise Nav.error, arg
|
raise Nav.error(arg)
|
||||||
return None
|
return None
|
||||||
if not rr.validRecord or not rr.selection:
|
if not rr.validRecord or not rr.selection:
|
||||||
return None
|
return None
|
||||||
|
@ -664,7 +664,7 @@ def AskFileForOpen(
|
||||||
return tpwanted(rr.selection_fsr[0].as_pathname())
|
return tpwanted(rr.selection_fsr[0].as_pathname())
|
||||||
if issubclass(tpwanted, str):
|
if issubclass(tpwanted, str):
|
||||||
return tpwanted(rr.selection_fsr[0].as_pathname(), 'utf8')
|
return tpwanted(rr.selection_fsr[0].as_pathname(), 'utf8')
|
||||||
raise TypeError, "Unknown value for argument 'wanted': %s" % repr(tpwanted)
|
raise TypeError("Unknown value for argument 'wanted': %s" % repr(tpwanted))
|
||||||
|
|
||||||
def AskFileForSave(
|
def AskFileForSave(
|
||||||
message=None,
|
message=None,
|
||||||
|
@ -705,12 +705,12 @@ def AskFileForSave(
|
||||||
good = 1
|
good = 1
|
||||||
except Nav.error as arg:
|
except Nav.error as arg:
|
||||||
if arg[0] != -128: # userCancelledErr
|
if arg[0] != -128: # userCancelledErr
|
||||||
raise Nav.error, arg
|
raise Nav.error(arg)
|
||||||
return None
|
return None
|
||||||
if not rr.validRecord or not rr.selection:
|
if not rr.validRecord or not rr.selection:
|
||||||
return None
|
return None
|
||||||
if issubclass(tpwanted, Carbon.File.FSRef):
|
if issubclass(tpwanted, Carbon.File.FSRef):
|
||||||
raise TypeError, "Cannot pass wanted=FSRef to AskFileForSave"
|
raise TypeError("Cannot pass wanted=FSRef to AskFileForSave")
|
||||||
if issubclass(tpwanted, Carbon.File.FSSpec):
|
if issubclass(tpwanted, Carbon.File.FSSpec):
|
||||||
return tpwanted(rr.selection[0])
|
return tpwanted(rr.selection[0])
|
||||||
if issubclass(tpwanted, str):
|
if issubclass(tpwanted, str):
|
||||||
|
@ -727,7 +727,7 @@ def AskFileForSave(
|
||||||
if issubclass(tpwanted, str):
|
if issubclass(tpwanted, str):
|
||||||
return str(fullpath, 'utf8')
|
return str(fullpath, 'utf8')
|
||||||
return tpwanted(fullpath)
|
return tpwanted(fullpath)
|
||||||
raise TypeError, "Unknown value for argument 'wanted': %s" % repr(tpwanted)
|
raise TypeError("Unknown value for argument 'wanted': %s" % repr(tpwanted))
|
||||||
|
|
||||||
def AskFolder(
|
def AskFolder(
|
||||||
message=None,
|
message=None,
|
||||||
|
@ -765,7 +765,7 @@ def AskFolder(
|
||||||
good = 1
|
good = 1
|
||||||
except Nav.error as arg:
|
except Nav.error as arg:
|
||||||
if arg[0] != -128: # userCancelledErr
|
if arg[0] != -128: # userCancelledErr
|
||||||
raise Nav.error, arg
|
raise Nav.error(arg)
|
||||||
return None
|
return None
|
||||||
if not rr.validRecord or not rr.selection:
|
if not rr.validRecord or not rr.selection:
|
||||||
return None
|
return None
|
||||||
|
@ -777,7 +777,7 @@ def AskFolder(
|
||||||
return tpwanted(rr.selection_fsr[0].as_pathname())
|
return tpwanted(rr.selection_fsr[0].as_pathname())
|
||||||
if issubclass(tpwanted, str):
|
if issubclass(tpwanted, str):
|
||||||
return tpwanted(rr.selection_fsr[0].as_pathname(), 'utf8')
|
return tpwanted(rr.selection_fsr[0].as_pathname(), 'utf8')
|
||||||
raise TypeError, "Unknown value for argument 'wanted': %s" % repr(tpwanted)
|
raise TypeError("Unknown value for argument 'wanted': %s" % repr(tpwanted))
|
||||||
|
|
||||||
|
|
||||||
def test():
|
def test():
|
||||||
|
|
|
@ -79,7 +79,7 @@ class MiniApplication:
|
||||||
c = chr(message & charCodeMask)
|
c = chr(message & charCodeMask)
|
||||||
if modifiers & cmdKey:
|
if modifiers & cmdKey:
|
||||||
if c == '.':
|
if c == '.':
|
||||||
raise KeyboardInterrupt, "Command-period"
|
raise KeyboardInterrupt("Command-period")
|
||||||
if c == 'q':
|
if c == 'q':
|
||||||
if hasattr(MacOS, 'OutputSeen'):
|
if hasattr(MacOS, 'OutputSeen'):
|
||||||
MacOS.OutputSeen()
|
MacOS.OutputSeen()
|
||||||
|
|
|
@ -111,7 +111,7 @@ def keysubst(arguments, keydict):
|
||||||
del arguments[k]
|
del arguments[k]
|
||||||
arguments[keydict[k]] = v
|
arguments[keydict[k]] = v
|
||||||
elif k != '----' and k not in ok:
|
elif k != '----' and k not in ok:
|
||||||
raise TypeError, 'Unknown keyword argument: %s'%k
|
raise TypeError('Unknown keyword argument: %s'%k)
|
||||||
|
|
||||||
def enumsubst(arguments, key, edict):
|
def enumsubst(arguments, key, edict):
|
||||||
"""Substitute a single enum keyword argument, if it occurs"""
|
"""Substitute a single enum keyword argument, if it occurs"""
|
||||||
|
@ -122,7 +122,7 @@ def enumsubst(arguments, key, edict):
|
||||||
if v in edict:
|
if v in edict:
|
||||||
arguments[key] = Enum(edict[v])
|
arguments[key] = Enum(edict[v])
|
||||||
elif not v in ok:
|
elif not v in ok:
|
||||||
raise TypeError, 'Unknown enumerator: %s'%v
|
raise TypeError('Unknown enumerator: %s'%v)
|
||||||
|
|
||||||
def decodeerror(arguments):
|
def decodeerror(arguments):
|
||||||
"""Create the 'best' argument for a raise MacOS.Error"""
|
"""Create the 'best' argument for a raise MacOS.Error"""
|
||||||
|
@ -174,7 +174,7 @@ class TalkTo:
|
||||||
self.target = AE.AECreateDesc(AppleEvents.typeApplSignature, signature)
|
self.target = AE.AECreateDesc(AppleEvents.typeApplSignature, signature)
|
||||||
self.target_signature = signature
|
self.target_signature = signature
|
||||||
else:
|
else:
|
||||||
raise TypeError, "signature should be 4-char string or AEDesc"
|
raise TypeError("signature should be 4-char string or AEDesc")
|
||||||
self.send_flags = AppleEvents.kAEWaitReply
|
self.send_flags = AppleEvents.kAEWaitReply
|
||||||
self.send_priority = AppleEvents.kAENormalPriority
|
self.send_priority = AppleEvents.kAENormalPriority
|
||||||
if timeout:
|
if timeout:
|
||||||
|
@ -214,7 +214,7 @@ class TalkTo:
|
||||||
def sendevent(self, event):
|
def sendevent(self, event):
|
||||||
"""Send a pre-created appleevent, await the reply and unpack it"""
|
"""Send a pre-created appleevent, await the reply and unpack it"""
|
||||||
if not self.__ensure_WMAvailable():
|
if not self.__ensure_WMAvailable():
|
||||||
raise RuntimeError, "No window manager access, cannot send AppleEvent"
|
raise RuntimeError("No window manager access, cannot send AppleEvent")
|
||||||
reply = event.AESend(self.send_flags, self.send_priority,
|
reply = event.AESend(self.send_flags, self.send_priority,
|
||||||
self.send_timeout)
|
self.send_timeout)
|
||||||
parameters, attributes = unpackevent(reply, self._moduleName)
|
parameters, attributes = unpackevent(reply, self._moduleName)
|
||||||
|
@ -248,7 +248,7 @@ class TalkTo:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if 'errn' in _arguments:
|
if 'errn' in _arguments:
|
||||||
raise Error, decodeerror(_arguments)
|
raise Error(decodeerror(_arguments))
|
||||||
|
|
||||||
if '----' in _arguments:
|
if '----' in _arguments:
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -278,7 +278,7 @@ class TalkTo:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise Error, decodeerror(_arguments)
|
raise Error(decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if '----' in _arguments:
|
if '----' in _arguments:
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -295,7 +295,7 @@ class TalkTo:
|
||||||
if name in self._propdict:
|
if name in self._propdict:
|
||||||
cls = self._propdict[name]
|
cls = self._propdict[name]
|
||||||
return cls()
|
return cls()
|
||||||
raise AttributeError, name
|
raise AttributeError(name)
|
||||||
|
|
||||||
# Tiny Finder class, for local use only
|
# Tiny Finder class, for local use only
|
||||||
|
|
||||||
|
@ -308,14 +308,14 @@ class _miniFinder(TalkTo):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'odoc'
|
_subcode = 'odoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if 'errn' in _arguments:
|
if 'errn' in _arguments:
|
||||||
raise Error, decodeerror(_arguments)
|
raise Error(decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if '----' in _arguments:
|
if '----' in _arguments:
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -541,7 +541,7 @@ class ComponentItem(SelectableItem):
|
||||||
if name in self._propdict:
|
if name in self._propdict:
|
||||||
cls = self._propdict[name]
|
cls = self._propdict[name]
|
||||||
return cls(self)
|
return cls(self)
|
||||||
raise AttributeError, name
|
raise AttributeError(name)
|
||||||
|
|
||||||
|
|
||||||
class DelayedComponentItem:
|
class DelayedComponentItem:
|
||||||
|
|
|
@ -49,30 +49,30 @@ class AppleSingle(object):
|
||||||
try:
|
try:
|
||||||
magic, version, ig, nentry = struct.unpack(AS_HEADER_FORMAT, header)
|
magic, version, ig, nentry = struct.unpack(AS_HEADER_FORMAT, header)
|
||||||
except ValueError as arg:
|
except ValueError as arg:
|
||||||
raise Error, "Unpack header error: %s" % (arg,)
|
raise Error("Unpack header error: %s" % (arg,))
|
||||||
if verbose:
|
if verbose:
|
||||||
print('Magic: 0x%8.8x' % (magic,))
|
print('Magic: 0x%8.8x' % (magic,))
|
||||||
print('Version: 0x%8.8x' % (version,))
|
print('Version: 0x%8.8x' % (version,))
|
||||||
print('Entries: %d' % (nentry,))
|
print('Entries: %d' % (nentry,))
|
||||||
if magic != AS_MAGIC:
|
if magic != AS_MAGIC:
|
||||||
raise Error, "Unknown AppleSingle magic number 0x%8.8x" % (magic,)
|
raise Error("Unknown AppleSingle magic number 0x%8.8x" % (magic,))
|
||||||
if version != AS_VERSION:
|
if version != AS_VERSION:
|
||||||
raise Error, "Unknown AppleSingle version number 0x%8.8x" % (version,)
|
raise Error("Unknown AppleSingle version number 0x%8.8x" % (version,))
|
||||||
if nentry <= 0:
|
if nentry <= 0:
|
||||||
raise Error, "AppleSingle file contains no forks"
|
raise Error("AppleSingle file contains no forks")
|
||||||
headers = [fileobj.read(AS_ENTRY_LENGTH) for i in range(nentry)]
|
headers = [fileobj.read(AS_ENTRY_LENGTH) for i in range(nentry)]
|
||||||
self.forks = []
|
self.forks = []
|
||||||
for hdr in headers:
|
for hdr in headers:
|
||||||
try:
|
try:
|
||||||
restype, offset, length = struct.unpack(AS_ENTRY_FORMAT, hdr)
|
restype, offset, length = struct.unpack(AS_ENTRY_FORMAT, hdr)
|
||||||
except ValueError as arg:
|
except ValueError as arg:
|
||||||
raise Error, "Unpack entry error: %s" % (arg,)
|
raise Error("Unpack entry error: %s" % (arg,))
|
||||||
if verbose:
|
if verbose:
|
||||||
print("Fork %d, offset %d, length %d" % (restype, offset, length))
|
print("Fork %d, offset %d, length %d" % (restype, offset, length))
|
||||||
fileobj.seek(offset)
|
fileobj.seek(offset)
|
||||||
data = fileobj.read(length)
|
data = fileobj.read(length)
|
||||||
if len(data) != length:
|
if len(data) != length:
|
||||||
raise Error, "Short read: expected %d bytes got %d" % (length, len(data))
|
raise Error("Short read: expected %d bytes got %d" % (length, len(data)))
|
||||||
self.forks.append((restype, data))
|
self.forks.append((restype, data))
|
||||||
if restype == AS_DATAFORK:
|
if restype == AS_DATAFORK:
|
||||||
self.datafork = data
|
self.datafork = data
|
||||||
|
@ -84,12 +84,12 @@ class AppleSingle(object):
|
||||||
data = False
|
data = False
|
||||||
if resonly:
|
if resonly:
|
||||||
if self.resourcefork is None:
|
if self.resourcefork is None:
|
||||||
raise Error, "No resource fork found"
|
raise Error("No resource fork found")
|
||||||
fp = open(path, 'wb')
|
fp = open(path, 'wb')
|
||||||
fp.write(self.resourcefork)
|
fp.write(self.resourcefork)
|
||||||
fp.close()
|
fp.close()
|
||||||
elif (self.resourcefork is None and self.datafork is None):
|
elif (self.resourcefork is None and self.datafork is None):
|
||||||
raise Error, "No useful forks found"
|
raise Error("No useful forks found")
|
||||||
else:
|
else:
|
||||||
if self.datafork is not None:
|
if self.datafork is not None:
|
||||||
fp = open(path, 'wb')
|
fp = open(path, 'wb')
|
||||||
|
|
|
@ -40,11 +40,11 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not os.path.exists(BGENDIR):
|
if not os.path.exists(BGENDIR):
|
||||||
raise Error, "Please fix bgenlocations.py, BGENDIR does not exist: %s" % BGENDIR
|
raise Error("Please fix bgenlocations.py, BGENDIR does not exist: %s" % BGENDIR)
|
||||||
if not os.path.exists(INCLUDEDIR):
|
if not os.path.exists(INCLUDEDIR):
|
||||||
raise Error, "Please fix bgenlocations.py, INCLUDEDIR does not exist: %s" % INCLUDEDIR
|
raise Error("Please fix bgenlocations.py, INCLUDEDIR does not exist: %s" % INCLUDEDIR)
|
||||||
if not os.path.exists(TOOLBOXDIR):
|
if not os.path.exists(TOOLBOXDIR):
|
||||||
raise Error, "Please fix bgenlocations.py, TOOLBOXDIR does not exist: %s" % TOOLBOXDIR
|
raise Error("Please fix bgenlocations.py, TOOLBOXDIR does not exist: %s" % TOOLBOXDIR)
|
||||||
|
|
||||||
# Sigh, due to the way these are used make sure they end with : or /.
|
# Sigh, due to the way these are used make sure they end with : or /.
|
||||||
if BGENDIR[-1] != os.sep:
|
if BGENDIR[-1] != os.sep:
|
||||||
|
|
|
@ -57,7 +57,7 @@ def findtemplate(template=None):
|
||||||
except (Carbon.File.Error, ValueError):
|
except (Carbon.File.Error, ValueError):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
raise BuildError, "Template %r not found on sys.path" % (template,)
|
raise BuildError("Template %r not found on sys.path" % (template,))
|
||||||
file = file.as_pathname()
|
file = file.as_pathname()
|
||||||
return file
|
return file
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ def process(template, filename, destname, copy_codefragment=0,
|
||||||
# check for the script name being longer than 32 chars. This may trigger a bug
|
# check for the script name being longer than 32 chars. This may trigger a bug
|
||||||
# on OSX that can destroy your sourcefile.
|
# on OSX that can destroy your sourcefile.
|
||||||
if '#' in os.path.split(filename)[1]:
|
if '#' in os.path.split(filename)[1]:
|
||||||
raise BuildError, "BuildApplet could destroy your sourcefile on OSX, please rename: %s" % filename
|
raise BuildError("BuildApplet could destroy your sourcefile on OSX, please rename: %s" % filename)
|
||||||
# Read the source and compile it
|
# Read the source and compile it
|
||||||
# (there's no point overwriting the destination if it has a syntax error)
|
# (there's no point overwriting the destination if it has a syntax error)
|
||||||
|
|
||||||
|
@ -81,9 +81,9 @@ def process(template, filename, destname, copy_codefragment=0,
|
||||||
try:
|
try:
|
||||||
code = compile(text + '\n', filename, "exec")
|
code = compile(text + '\n', filename, "exec")
|
||||||
except SyntaxError as arg:
|
except SyntaxError as arg:
|
||||||
raise BuildError, "Syntax error in script %s: %s" % (filename, arg)
|
raise BuildError("Syntax error in script %s: %s" % (filename, arg))
|
||||||
except EOFError:
|
except EOFError:
|
||||||
raise BuildError, "End-of-file in script %s" % (filename,)
|
raise BuildError("End-of-file in script %s" % (filename,))
|
||||||
|
|
||||||
# Set the destination file name. Note that basename
|
# Set the destination file name. Note that basename
|
||||||
# does contain the whole filepath, only a .py is stripped.
|
# does contain the whole filepath, only a .py is stripped.
|
||||||
|
@ -115,7 +115,7 @@ def process(template, filename, destname, copy_codefragment=0,
|
||||||
|
|
||||||
def update(template, filename, output):
|
def update(template, filename, output):
|
||||||
if MacOS.runtimemodel == 'macho':
|
if MacOS.runtimemodel == 'macho':
|
||||||
raise BuildError, "No updating yet for MachO applets"
|
raise BuildError("No updating yet for MachO applets")
|
||||||
if progress:
|
if progress:
|
||||||
progress = EasyDialogs.ProgressBar("Updating %s..."%os.path.split(filename)[1], 120)
|
progress = EasyDialogs.ProgressBar("Updating %s..."%os.path.split(filename)[1], 120)
|
||||||
else:
|
else:
|
||||||
|
@ -137,7 +137,7 @@ def process_common(template, progress, code, rsrcname, destname, is_update,
|
||||||
return process_common_macho(template, progress, code, rsrcname, destname,
|
return process_common_macho(template, progress, code, rsrcname, destname,
|
||||||
is_update, raw, others, filename, destroot)
|
is_update, raw, others, filename, destroot)
|
||||||
if others:
|
if others:
|
||||||
raise BuildError, "Extra files only allowed for MachoPython applets"
|
raise BuildError("Extra files only allowed for MachoPython applets")
|
||||||
# Create FSSpecs for the various files
|
# Create FSSpecs for the various files
|
||||||
template_fsr, d1, d2 = Carbon.File.FSResolveAliasFile(template, 1)
|
template_fsr, d1, d2 = Carbon.File.FSResolveAliasFile(template, 1)
|
||||||
template = template_fsr.as_pathname()
|
template = template_fsr.as_pathname()
|
||||||
|
@ -270,7 +270,7 @@ def process_common_macho(template, progress, code, rsrcname, destname, is_update
|
||||||
raw=0, others=[], filename=None, destroot=""):
|
raw=0, others=[], filename=None, destroot=""):
|
||||||
# Check that we have a filename
|
# Check that we have a filename
|
||||||
if filename is None:
|
if filename is None:
|
||||||
raise BuildError, "Need source filename on MacOSX"
|
raise BuildError("Need source filename on MacOSX")
|
||||||
# First make sure the name ends in ".app"
|
# First make sure the name ends in ".app"
|
||||||
if destname[-4:] != '.app':
|
if destname[-4:] != '.app':
|
||||||
destname = destname + '.app'
|
destname = destname + '.app'
|
||||||
|
|
|
@ -417,10 +417,10 @@ class AppBuilder(BundleBuilder):
|
||||||
def setup(self):
|
def setup(self):
|
||||||
if ((self.standalone or self.semi_standalone)
|
if ((self.standalone or self.semi_standalone)
|
||||||
and self.mainprogram is None):
|
and self.mainprogram is None):
|
||||||
raise BundleBuilderError, ("must specify 'mainprogram' when "
|
raise BundleBuilderError("must specify 'mainprogram' when "
|
||||||
"building a standalone application.")
|
"building a standalone application.")
|
||||||
if self.mainprogram is None and self.executable is None:
|
if self.mainprogram is None and self.executable is None:
|
||||||
raise BundleBuilderError, ("must specify either or both of "
|
raise BundleBuilderError("must specify either or both of "
|
||||||
"'executable' and 'mainprogram'")
|
"'executable' and 'mainprogram'")
|
||||||
|
|
||||||
self.execdir = pathjoin("Contents", self.platform)
|
self.execdir = pathjoin("Contents", self.platform)
|
||||||
|
@ -776,7 +776,7 @@ def makedirs(dir):
|
||||||
def symlink(src, dst, mkdirs=0):
|
def symlink(src, dst, mkdirs=0):
|
||||||
"""Copy a file or a directory."""
|
"""Copy a file or a directory."""
|
||||||
if not os.path.exists(src):
|
if not os.path.exists(src):
|
||||||
raise IOError, "No such file or directory: '%s'" % src
|
raise IOError("No such file or directory: '%s'" % src)
|
||||||
if mkdirs:
|
if mkdirs:
|
||||||
makedirs(os.path.dirname(dst))
|
makedirs(os.path.dirname(dst))
|
||||||
os.symlink(os.path.abspath(src), dst)
|
os.symlink(os.path.abspath(src), dst)
|
||||||
|
|
|
@ -140,7 +140,7 @@ def _setcomment(object_alias, comment):
|
||||||
args["data"] = comment
|
args["data"] = comment
|
||||||
_reply, args, attrs = finder.send("core", "setd", args, attrs)
|
_reply, args, attrs = finder.send("core", "setd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ def _getcomment(object_alias):
|
||||||
args['----'] = aeobj_01
|
args['----'] = aeobj_01
|
||||||
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ def processes():
|
||||||
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prcs'), form="indx", seld=aetypes.Unknown('abso', "all "), fr=None)
|
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prcs'), form="indx", seld=aetypes.Unknown('abso', "all "), fr=None)
|
||||||
_reply, args, attrs = finder.send('core', 'getd', args, attrs)
|
_reply, args, attrs = finder.send('core', 'getd', args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
p = []
|
p = []
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
p = args['----']
|
p = args['----']
|
||||||
|
@ -194,7 +194,7 @@ def processes():
|
||||||
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form="prop", seld=aetypes.Type('fcrt'), fr=aeobj_0)
|
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form="prop", seld=aetypes.Type('fcrt'), fr=aeobj_0)
|
||||||
_reply, args, attrs = finder.send('core', 'getd', args, attrs)
|
_reply, args, attrs = finder.send('core', 'getd', args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(_arg)
|
raise Error(aetools.decodeerror(_arg))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
p = args['----']
|
p = args['----']
|
||||||
creators = p[:]
|
creators = p[:]
|
||||||
|
@ -249,7 +249,7 @@ def _processproperty(processname, property):
|
||||||
args['----'] = aeobj_01
|
args['----'] = aeobj_01
|
||||||
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ def openwindow(object):
|
||||||
args['----'] = aeobj_0
|
args['----'] = aeobj_0
|
||||||
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
|
|
||||||
def closewindow(object):
|
def closewindow(object):
|
||||||
"""Close a Finder window for folder, Specify by path."""
|
"""Close a Finder window for folder, Specify by path."""
|
||||||
|
@ -285,7 +285,7 @@ def closewindow(object):
|
||||||
args['----'] = aeobj_0
|
args['----'] = aeobj_0
|
||||||
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
|
|
||||||
def location(object, pos=None):
|
def location(object, pos=None):
|
||||||
"""Set the position of a Finder window for folder to pos=(w, h). Specify file by name or fsspec.
|
"""Set the position of a Finder window for folder to pos=(w, h). Specify file by name or fsspec.
|
||||||
|
@ -308,7 +308,7 @@ def _setlocation(object_alias, location):
|
||||||
args["data"] = [x, y]
|
args["data"] = [x, y]
|
||||||
_reply, args, attrs = finder.send("core", "setd", args, attrs)
|
_reply, args, attrs = finder.send("core", "setd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
return (x,y)
|
return (x,y)
|
||||||
|
|
||||||
def _getlocation(object_alias):
|
def _getlocation(object_alias):
|
||||||
|
@ -321,7 +321,7 @@ def _getlocation(object_alias):
|
||||||
args['----'] = aeobj_01
|
args['----'] = aeobj_01
|
||||||
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
pos = args['----']
|
pos = args['----']
|
||||||
return pos.h, pos.v
|
return pos.h, pos.v
|
||||||
|
@ -346,7 +346,7 @@ def _getlabel(object_alias):
|
||||||
args['----'] = aeobj_01
|
args['----'] = aeobj_01
|
||||||
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -365,7 +365,7 @@ def _setlabel(object_alias, index):
|
||||||
args["data"] = index
|
args["data"] = index
|
||||||
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
return index
|
return index
|
||||||
|
|
||||||
def windowview(folder, view=None):
|
def windowview(folder, view=None):
|
||||||
|
@ -405,7 +405,7 @@ def _setwindowview(folder_alias, view=0):
|
||||||
args['data'] = aeobj_3
|
args['data'] = aeobj_3
|
||||||
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -422,7 +422,7 @@ def _getwindowview(folder_alias):
|
||||||
args['----'] = aeobj_02
|
args['----'] = aeobj_02
|
||||||
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
views = {'iimg':0, 'pnam':1, 'lgbu':2}
|
views = {'iimg':0, 'pnam':1, 'lgbu':2}
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return views[args['----'].enum]
|
return views[args['----'].enum]
|
||||||
|
@ -458,7 +458,7 @@ def _setwindowsize(folder_alias, size):
|
||||||
args["data"] = aevar00
|
args["data"] = aevar00
|
||||||
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
_reply, args, attrs = finder.send(_code, _subcode, args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
return (w, h)
|
return (w, h)
|
||||||
|
|
||||||
def _getwindowsize(folder_alias):
|
def _getwindowsize(folder_alias):
|
||||||
|
@ -475,7 +475,7 @@ def _getwindowsize(folder_alias):
|
||||||
args['----'] = aeobj_2
|
args['----'] = aeobj_2
|
||||||
_reply, args, attrs = finder.send('core', 'getd', args, attrs)
|
_reply, args, attrs = finder.send('core', 'getd', args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -507,7 +507,7 @@ def _setwindowposition(folder_alias, position):
|
||||||
args["data"] = [x, y]
|
args["data"] = [x, y]
|
||||||
_reply, args, attrs = finder.send('core', 'setd', args, attrs)
|
_reply, args, attrs = finder.send('core', 'setd', args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -525,7 +525,7 @@ def _getwindowposition(folder_alias):
|
||||||
args['----'] = aeobj_2
|
args['----'] = aeobj_2
|
||||||
_reply, args, attrs = finder.send('core', 'getd', args, attrs)
|
_reply, args, attrs = finder.send('core', 'getd', args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -552,7 +552,7 @@ def _geticon(object_alias):
|
||||||
args['----'] = aeobj_01
|
args['----'] = aeobj_01
|
||||||
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -569,7 +569,7 @@ def _seticon(object_alias, icondata):
|
||||||
args["data"] = icondata
|
args["data"] = icondata
|
||||||
_reply, args, attrs = finder.send("core", "setd", args, attrs)
|
_reply, args, attrs = finder.send("core", "setd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----'].data
|
return args['----'].data
|
||||||
|
|
||||||
|
@ -594,7 +594,7 @@ def mountvolume(volume, server=None, username=None, password=None):
|
||||||
args['----'] = volume
|
args['----'] = volume
|
||||||
_reply, args, attrs = finder.send("aevt", "mvol", args, attrs)
|
_reply, args, attrs = finder.send("aevt", "mvol", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -610,7 +610,7 @@ def putaway(object):
|
||||||
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('cdis'), form="name", seld=object, fr=None)
|
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('cdis'), form="name", seld=object, fr=None)
|
||||||
_reply, args, attrs = talker.send("fndr", "ptwy", args, attrs)
|
_reply, args, attrs = talker.send("fndr", "ptwy", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -631,7 +631,7 @@ def volumelevel(level):
|
||||||
args['----'] = level
|
args['----'] = level
|
||||||
_reply, args, attrs = finder.send("aevt", "stvl", args, attrs)
|
_reply, args, attrs = finder.send("aevt", "stvl", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -644,7 +644,7 @@ def OSversion():
|
||||||
args['----'] = aeobj_00
|
args['----'] = aeobj_00
|
||||||
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
return args['----']
|
return args['----']
|
||||||
|
|
||||||
|
@ -661,7 +661,7 @@ def filesharing():
|
||||||
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form="prop", seld=aetypes.Type('fshr'), fr=None)
|
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form="prop", seld=aetypes.Type('fshr'), fr=None)
|
||||||
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
if args['----'] == 0:
|
if args['----'] == 0:
|
||||||
status = -1
|
status = -1
|
||||||
|
@ -673,7 +673,7 @@ def filesharing():
|
||||||
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form="prop", seld=aetypes.Type('fsup'), fr=None)
|
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form="prop", seld=aetypes.Type('fsup'), fr=None)
|
||||||
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
_reply, args, attrs = finder.send("core", "getd", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise Error, aetools.decodeerror(args)
|
raise Error(aetools.decodeerror(args))
|
||||||
if '----' in args:
|
if '----' in args:
|
||||||
if args['----'] == 1:
|
if args['----'] == 1:
|
||||||
status = 0
|
status = 0
|
||||||
|
@ -693,7 +693,7 @@ def emptytrash():
|
||||||
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form="prop", seld=aetypes.Type('trsh'), fr=None)
|
args['----'] = aetypes.ObjectSpecifier(want=aetypes.Type('prop'), form="prop", seld=aetypes.Type('trsh'), fr=None)
|
||||||
_reply, args, attrs = finder.send("fndr", "empt", args, attrs)
|
_reply, args, attrs = finder.send("fndr", "empt", args, attrs)
|
||||||
if 'errn' in args:
|
if 'errn' in args:
|
||||||
raise aetools.Error, aetools.decodeerror(args)
|
raise aetools.Error(aetools.decodeerror(args))
|
||||||
|
|
||||||
|
|
||||||
def _test():
|
def _test():
|
||||||
|
|
|
@ -225,7 +225,7 @@ def getappterminology(fullname, verbose=None):
|
||||||
"""Get application terminology by sending an AppleEvent"""
|
"""Get application terminology by sending an AppleEvent"""
|
||||||
# First check that we actually can send AppleEvents
|
# First check that we actually can send AppleEvents
|
||||||
if not MacOS.WMAvailable():
|
if not MacOS.WMAvailable():
|
||||||
raise RuntimeError, "Cannot send AppleEvents, no access to window manager"
|
raise RuntimeError("Cannot send AppleEvents, no access to window manager")
|
||||||
# Next, a workaround for a bug in MacOS 10.2: sending events will hang unless
|
# Next, a workaround for a bug in MacOS 10.2: sending events will hang unless
|
||||||
# you have created an event loop first.
|
# you have created an event loop first.
|
||||||
import Carbon.Evt
|
import Carbon.Evt
|
||||||
|
@ -234,7 +234,7 @@ def getappterminology(fullname, verbose=None):
|
||||||
# Now get the signature of the application, hoping it is a bundle
|
# Now get the signature of the application, hoping it is a bundle
|
||||||
pkginfo = os.path.join(fullname, 'Contents', 'PkgInfo')
|
pkginfo = os.path.join(fullname, 'Contents', 'PkgInfo')
|
||||||
if not os.path.exists(pkginfo):
|
if not os.path.exists(pkginfo):
|
||||||
raise RuntimeError, "No PkgInfo file found"
|
raise RuntimeError("No PkgInfo file found")
|
||||||
tp_cr = open(pkginfo, 'rb').read()
|
tp_cr = open(pkginfo, 'rb').read()
|
||||||
cr = tp_cr[4:8]
|
cr = tp_cr[4:8]
|
||||||
else:
|
else:
|
||||||
|
@ -294,39 +294,39 @@ def simplify(item):
|
||||||
def getbyte(f, *args):
|
def getbyte(f, *args):
|
||||||
c = f.read(1)
|
c = f.read(1)
|
||||||
if not c:
|
if not c:
|
||||||
raise EOFError, 'in getbyte' + str(args)
|
raise EOFError('in getbyte' + str(args))
|
||||||
return ord(c)
|
return ord(c)
|
||||||
|
|
||||||
def getword(f, *args):
|
def getword(f, *args):
|
||||||
getalign(f)
|
getalign(f)
|
||||||
s = f.read(2)
|
s = f.read(2)
|
||||||
if len(s) < 2:
|
if len(s) < 2:
|
||||||
raise EOFError, 'in getword' + str(args)
|
raise EOFError('in getword' + str(args))
|
||||||
return (ord(s[0])<<8) | ord(s[1])
|
return (ord(s[0])<<8) | ord(s[1])
|
||||||
|
|
||||||
def getlong(f, *args):
|
def getlong(f, *args):
|
||||||
getalign(f)
|
getalign(f)
|
||||||
s = f.read(4)
|
s = f.read(4)
|
||||||
if len(s) < 4:
|
if len(s) < 4:
|
||||||
raise EOFError, 'in getlong' + str(args)
|
raise EOFError('in getlong' + str(args))
|
||||||
return (ord(s[0])<<24) | (ord(s[1])<<16) | (ord(s[2])<<8) | ord(s[3])
|
return (ord(s[0])<<24) | (ord(s[1])<<16) | (ord(s[2])<<8) | ord(s[3])
|
||||||
|
|
||||||
def getostype(f, *args):
|
def getostype(f, *args):
|
||||||
getalign(f)
|
getalign(f)
|
||||||
s = f.read(4)
|
s = f.read(4)
|
||||||
if len(s) < 4:
|
if len(s) < 4:
|
||||||
raise EOFError, 'in getostype' + str(args)
|
raise EOFError('in getostype' + str(args))
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def getpstr(f, *args):
|
def getpstr(f, *args):
|
||||||
c = f.read(1)
|
c = f.read(1)
|
||||||
if len(c) < 1:
|
if len(c) < 1:
|
||||||
raise EOFError, 'in getpstr[1]' + str(args)
|
raise EOFError('in getpstr[1]' + str(args))
|
||||||
nbytes = ord(c)
|
nbytes = ord(c)
|
||||||
if nbytes == 0: return ''
|
if nbytes == 0: return ''
|
||||||
s = f.read(nbytes)
|
s = f.read(nbytes)
|
||||||
if len(s) < nbytes:
|
if len(s) < nbytes:
|
||||||
raise EOFError, 'in getpstr[2]' + str(args)
|
raise EOFError('in getpstr[2]' + str(args))
|
||||||
return s
|
return s
|
||||||
|
|
||||||
def getalign(f):
|
def getalign(f):
|
||||||
|
@ -1019,7 +1019,7 @@ class ObjectCompiler:
|
||||||
properties[0][1] != 'c@#!')):
|
properties[0][1] != 'c@#!')):
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
print('** Skip multiple %s of %s (code %r)' % (cname, self.namemappers[0].findcodename('class', code)[0], code), file=self.verbose)
|
print('** Skip multiple %s of %s (code %r)' % (cname, self.namemappers[0].findcodename('class', code)[0], code), file=self.verbose)
|
||||||
raise RuntimeError, "About to skip non-empty class"
|
raise RuntimeError("About to skip non-empty class")
|
||||||
return
|
return
|
||||||
plist = []
|
plist = []
|
||||||
elist = []
|
elist = []
|
||||||
|
|
|
@ -38,7 +38,7 @@ class CodeWarrior_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -50,14 +50,14 @@ class CodeWarrior_suite_Events:
|
||||||
_code = 'CWIE'
|
_code = 'CWIE'
|
||||||
_subcode = 'MAKE'
|
_subcode = 'MAKE'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -70,14 +70,14 @@ class CodeWarrior_suite_Events:
|
||||||
_code = 'CWIE'
|
_code = 'CWIE'
|
||||||
_subcode = 'CHEK'
|
_subcode = 'CHEK'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -90,14 +90,14 @@ class CodeWarrior_suite_Events:
|
||||||
_code = 'CWIE'
|
_code = 'CWIE'
|
||||||
_subcode = 'COMP'
|
_subcode = 'COMP'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -110,14 +110,14 @@ class CodeWarrior_suite_Events:
|
||||||
_code = 'CWIE'
|
_code = 'CWIE'
|
||||||
_subcode = 'DASM'
|
_subcode = 'DASM'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -135,13 +135,13 @@ class CodeWarrior_suite_Events:
|
||||||
_subcode = 'EXPT'
|
_subcode = 'EXPT'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_export)
|
aetools.keysubst(_arguments, self._argmap_export)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -153,14 +153,14 @@ class CodeWarrior_suite_Events:
|
||||||
_code = 'CWIE'
|
_code = 'CWIE'
|
||||||
_subcode = 'RMOB'
|
_subcode = 'RMOB'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -173,14 +173,14 @@ class CodeWarrior_suite_Events:
|
||||||
_code = 'CWIE'
|
_code = 'CWIE'
|
||||||
_subcode = 'RMFL'
|
_subcode = 'RMFL'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -192,14 +192,14 @@ class CodeWarrior_suite_Events:
|
||||||
_code = 'CWIE'
|
_code = 'CWIE'
|
||||||
_subcode = 'RUN '
|
_subcode = 'RUN '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -212,14 +212,14 @@ class CodeWarrior_suite_Events:
|
||||||
_code = 'CWIE'
|
_code = 'CWIE'
|
||||||
_subcode = 'TOCH'
|
_subcode = 'TOCH'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -231,14 +231,14 @@ class CodeWarrior_suite_Events:
|
||||||
_code = 'CWIE'
|
_code = 'CWIE'
|
||||||
_subcode = 'UP2D'
|
_subcode = 'UP2D'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -59,7 +59,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -71,14 +71,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'ClsP'
|
_subcode = 'ClsP'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -104,7 +104,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -130,7 +130,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -155,7 +155,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -169,14 +169,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'GDef'
|
_subcode = 'GDef'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -189,14 +189,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'GDoc'
|
_subcode = 'GDoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -217,13 +217,13 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_subcode = 'Gref'
|
_subcode = 'Gref'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_Get_Preferences)
|
aetools.keysubst(_arguments, self._argmap_Get_Preferences)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -249,7 +249,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -262,14 +262,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'GetP'
|
_subcode = 'GetP'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -282,14 +282,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'GSeg'
|
_subcode = 'GSeg'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -303,14 +303,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'MbFN'
|
_subcode = 'MbFN'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -323,14 +323,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'NsCl'
|
_subcode = 'NsCl'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -343,14 +343,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'GoFn'
|
_subcode = 'GoFn'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -363,14 +363,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'GoLn'
|
_subcode = 'GoLn'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -384,14 +384,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'FInP'
|
_subcode = 'FInP'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -410,13 +410,13 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_subcode = 'Make'
|
_subcode = 'Make'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_Make_Project)
|
aetools.keysubst(_arguments, self._argmap_Make_Project)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -429,14 +429,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'Brow'
|
_subcode = 'Brow'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -464,7 +464,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -490,7 +490,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -502,14 +502,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'RemB'
|
_subcode = 'RemB'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -523,14 +523,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'RemF'
|
_subcode = 'RemF'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -542,14 +542,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'ReFP'
|
_subcode = 'ReFP'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -570,13 +570,13 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_subcode = 'RunP'
|
_subcode = 'RunP'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_Run_Project)
|
aetools.keysubst(_arguments, self._argmap_Run_Project)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -589,14 +589,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'SvMs'
|
_subcode = 'SvMs'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -609,14 +609,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'STrg'
|
_subcode = 'STrg'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -629,14 +629,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'SDfP'
|
_subcode = 'SDfP'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -662,7 +662,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -682,13 +682,13 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_subcode = 'Pref'
|
_subcode = 'Pref'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_Set_Preferences)
|
aetools.keysubst(_arguments, self._argmap_Set_Preferences)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -713,7 +713,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -738,7 +738,7 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -752,14 +752,14 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_code = 'MMPR'
|
_code = 'MMPR'
|
||||||
_subcode = 'Toch'
|
_subcode = 'Toch'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -778,13 +778,13 @@ class Metrowerks_Shell_Suite_Events:
|
||||||
_subcode = 'UpdP'
|
_subcode = 'UpdP'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_Update_Project)
|
aetools.keysubst(_arguments, self._argmap_Update_Project)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -34,7 +34,7 @@ class Required_Events(Required_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -36,7 +36,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -62,7 +62,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -88,7 +88,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -115,13 +115,13 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_subcode = 'crel'
|
_subcode = 'crel'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_make)
|
aetools.keysubst(_arguments, self._argmap_make)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -134,14 +134,14 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'slct'
|
_subcode = 'slct'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -166,7 +166,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -21,14 +21,14 @@ class Microsoft_Internet_Explorer_Events:
|
||||||
_code = 'MSIE'
|
_code = 'MSIE'
|
||||||
_subcode = 'SORC'
|
_subcode = 'SORC'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -41,14 +41,14 @@ class Microsoft_Internet_Explorer_Events:
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'pWND'
|
_subcode = 'pWND'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -74,7 +74,7 @@ class Microsoft_Internet_Explorer_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -20,14 +20,14 @@ class Netscape_Suite_Events:
|
||||||
_code = 'MOSS'
|
_code = 'MOSS'
|
||||||
_subcode = 'book'
|
_subcode = 'book'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -21,14 +21,14 @@ class Required_Suite_Events(Required_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'odoc'
|
_subcode = 'odoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -41,14 +41,14 @@ class Required_Suite_Events(Required_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'pdoc'
|
_subcode = 'pdoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -60,14 +60,14 @@ class Required_Suite_Events(Required_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'quit'
|
_subcode = 'quit'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -79,14 +79,14 @@ class Required_Suite_Events(Required_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'oapp'
|
_subcode = 'oapp'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -32,7 +32,7 @@ class URL_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -21,14 +21,14 @@ class Web_Browser_Suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'ACTV'
|
_subcode = 'ACTV'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -41,14 +41,14 @@ class Web_Browser_Suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'CLSA'
|
_subcode = 'CLSA'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -69,13 +69,13 @@ class Web_Browser_Suite_Events:
|
||||||
_subcode = 'CLOS'
|
_subcode = 'CLOS'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_CloseWindow)
|
aetools.keysubst(_arguments, self._argmap_CloseWindow)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -89,14 +89,14 @@ class Web_Browser_Suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'WNFO'
|
_subcode = 'WNFO'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -109,14 +109,14 @@ class Web_Browser_Suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'LSTW'
|
_subcode = 'LSTW'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -149,7 +149,7 @@ class Web_Browser_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -175,7 +175,7 @@ class Web_Browser_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -204,7 +204,7 @@ class Web_Browser_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -19,14 +19,14 @@ class Finder_Basics_Events:
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'copy'
|
_subcode = 'copy'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -52,7 +52,7 @@ class Finder_Basics_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -20,14 +20,14 @@ class Finder_items_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'ffav'
|
_subcode = 'ffav'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -52,7 +52,7 @@ class Finder_items_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -65,14 +65,14 @@ class Finder_items_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'ejct'
|
_subcode = 'ejct'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -85,14 +85,14 @@ class Finder_items_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'empt'
|
_subcode = 'empt'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -105,14 +105,14 @@ class Finder_items_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'fera'
|
_subcode = 'fera'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -125,14 +125,14 @@ class Finder_items_Events:
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'mvis'
|
_subcode = 'mvis'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -159,7 +159,7 @@ class Finder_items_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -19,14 +19,14 @@ class Legacy_suite_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'rest'
|
_subcode = 'rest'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -38,14 +38,14 @@ class Legacy_suite_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'shut'
|
_subcode = 'shut'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -57,14 +57,14 @@ class Legacy_suite_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'slep'
|
_subcode = 'slep'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -21,14 +21,14 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'clos'
|
_subcode = 'clos'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -54,7 +54,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -80,7 +80,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -94,14 +94,14 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'delo'
|
_subcode = 'delo'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -133,7 +133,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -147,14 +147,14 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'doex'
|
_subcode = 'doex'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -179,13 +179,13 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_subcode = 'crel'
|
_subcode = 'crel'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_make)
|
aetools.keysubst(_arguments, self._argmap_make)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -220,7 +220,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -247,7 +247,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -272,7 +272,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -284,14 +284,14 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'quit'
|
_subcode = 'quit'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -304,14 +304,14 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'slct'
|
_subcode = 'slct'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -20,14 +20,14 @@ class Mozilla_suite_Events:
|
||||||
_code = 'MOSS'
|
_code = 'MOSS'
|
||||||
_subcode = 'Impt'
|
_subcode = 'Impt'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -40,14 +40,14 @@ class Mozilla_suite_Events:
|
||||||
_code = 'MOSS'
|
_code = 'MOSS'
|
||||||
_subcode = 'upro'
|
_subcode = 'upro'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -60,14 +60,14 @@ class Mozilla_suite_Events:
|
||||||
_code = 'MOSS'
|
_code = 'MOSS'
|
||||||
_subcode = 'wurl'
|
_subcode = 'wurl'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -93,7 +93,7 @@ class Mozilla_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -106,14 +106,14 @@ class Mozilla_suite_Events:
|
||||||
_code = 'MOSS'
|
_code = 'MOSS'
|
||||||
_subcode = 'hcmd'
|
_subcode = 'hcmd'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -125,14 +125,14 @@ class Mozilla_suite_Events:
|
||||||
_code = 'MOSS'
|
_code = 'MOSS'
|
||||||
_subcode = 'addr'
|
_subcode = 'addr'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -145,14 +145,14 @@ class Mozilla_suite_Events:
|
||||||
_code = 'MOSS'
|
_code = 'MOSS'
|
||||||
_subcode = 'cpnt'
|
_subcode = 'cpnt'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -164,14 +164,14 @@ class Mozilla_suite_Events:
|
||||||
_code = 'MOSS'
|
_code = 'MOSS'
|
||||||
_subcode = 'prfl'
|
_subcode = 'prfl'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -184,14 +184,14 @@ class Mozilla_suite_Events:
|
||||||
_code = 'MOSS'
|
_code = 'MOSS'
|
||||||
_subcode = 'book'
|
_subcode = 'book'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -218,7 +218,7 @@ class Mozilla_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -25,13 +25,13 @@ class PowerPlant_Events:
|
||||||
_subcode = 'sttg'
|
_subcode = 'sttg'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
|
aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -56,7 +56,7 @@ class PowerPlant_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -21,14 +21,14 @@ class Required_suite_Events(Required_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'odoc'
|
_subcode = 'odoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -41,14 +41,14 @@ class Required_suite_Events(Required_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'pdoc'
|
_subcode = 'pdoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -60,14 +60,14 @@ class Required_suite_Events(Required_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'quit'
|
_subcode = 'quit'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -79,14 +79,14 @@ class Required_suite_Events(Required_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'oapp'
|
_subcode = 'oapp'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -21,14 +21,14 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'clos'
|
_subcode = 'clos'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -42,14 +42,14 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'dsiz'
|
_subcode = 'dsiz'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -63,14 +63,14 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'getd'
|
_subcode = 'getd'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -95,7 +95,7 @@ class Standard_Suite_Events(Standard_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -38,7 +38,7 @@ class Standard_URL_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -43,7 +43,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -73,7 +73,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -98,7 +98,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -112,14 +112,14 @@ class WorldWideWeb_suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'FURL'
|
_subcode = 'FURL'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -133,14 +133,14 @@ class WorldWideWeb_suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'WNFO'
|
_subcode = 'WNFO'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -153,14 +153,14 @@ class WorldWideWeb_suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'LSTW'
|
_subcode = 'LSTW'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -186,7 +186,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -199,14 +199,14 @@ class WorldWideWeb_suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'RGUE'
|
_subcode = 'RGUE'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -232,7 +232,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -260,7 +260,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -286,7 +286,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -299,14 +299,14 @@ class WorldWideWeb_suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'UNRU'
|
_subcode = 'UNRU'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -332,7 +332,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -358,7 +358,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -384,7 +384,7 @@ class WorldWideWeb_suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -397,14 +397,14 @@ class WorldWideWeb_suite_Events:
|
||||||
_code = 'WWW!'
|
_code = 'WWW!'
|
||||||
_subcode = 'ACTV'
|
_subcode = 'ACTV'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -21,14 +21,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'ccat'
|
_subcode = 'ccat'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -42,14 +42,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '* '
|
_subcode = '* '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -63,14 +63,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '+ '
|
_subcode = '+ '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -84,14 +84,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '- '
|
_subcode = '- '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -105,14 +105,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '< '
|
_subcode = '< '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -126,14 +126,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '= '
|
_subcode = '= '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -147,14 +147,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '> '
|
_subcode = '> '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -234,7 +234,7 @@ class AppleScript_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -248,14 +248,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '^ '
|
_subcode = '^ '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -267,14 +267,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'actv'
|
_subcode = 'actv'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -288,14 +288,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'AND '
|
_subcode = 'AND '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -309,14 +309,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'coer'
|
_subcode = 'coer'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -330,14 +330,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'cont'
|
_subcode = 'cont'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -351,14 +351,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'div '
|
_subcode = 'div '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -370,14 +370,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'tend'
|
_subcode = 'tend'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -391,14 +391,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'ends'
|
_subcode = 'ends'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -429,7 +429,7 @@ class AppleScript_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -442,14 +442,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'idle'
|
_subcode = 'idle'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -461,14 +461,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'noop'
|
_subcode = 'noop'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -481,14 +481,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'cmnt'
|
_subcode = 'cmnt'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -502,14 +502,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'mod '
|
_subcode = 'mod '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -523,14 +523,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'neg '
|
_subcode = 'neg '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -544,14 +544,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'NOT '
|
_subcode = 'NOT '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -565,14 +565,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'OR '
|
_subcode = 'OR '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -584,14 +584,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ToyS'
|
_code = 'ToyS'
|
||||||
_subcode = 'log1'
|
_subcode = 'log1'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -605,14 +605,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'bgwt'
|
_subcode = 'bgwt'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -624,14 +624,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ToyS'
|
_code = 'ToyS'
|
||||||
_subcode = 'log0'
|
_subcode = 'log0'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -643,14 +643,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = 'tell'
|
_subcode = 'tell'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -664,14 +664,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '\xad '
|
_subcode = '\xad '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -685,14 +685,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '<= '
|
_subcode = '<= '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -706,14 +706,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '>= '
|
_subcode = '>= '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -727,14 +727,14 @@ class AppleScript_Suite_Events:
|
||||||
_code = 'ascr'
|
_code = 'ascr'
|
||||||
_subcode = '/ '
|
_subcode = '/ '
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -34,7 +34,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -62,7 +62,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -88,7 +88,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -114,7 +114,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -127,14 +127,14 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'delo'
|
_subcode = 'delo'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -162,7 +162,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -188,7 +188,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -202,14 +202,14 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'doex'
|
_subcode = 'doex'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -223,14 +223,14 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'brak'
|
_subcode = 'brak'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -255,13 +255,13 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_subcode = 'crel'
|
_subcode = 'crel'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_make)
|
aetools.keysubst(_arguments, self._argmap_make)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -287,7 +287,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -300,14 +300,14 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'odoc'
|
_subcode = 'odoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -320,14 +320,14 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'pdoc'
|
_subcode = 'pdoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -345,14 +345,14 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_subcode = 'quit'
|
_subcode = 'quit'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_quit)
|
aetools.keysubst(_arguments, self._argmap_quit)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
|
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -364,14 +364,14 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'rapp'
|
_subcode = 'rapp'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -383,14 +383,14 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'oapp'
|
_subcode = 'oapp'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -417,7 +417,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -430,14 +430,14 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'slct'
|
_subcode = 'slct'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -463,7 +463,7 @@ class Standard_Suite_Events(builtin_Suite_Events):
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -38,7 +38,7 @@ class Disk_Folder_File_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -38,7 +38,7 @@ class Folder_Actions_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -52,14 +52,14 @@ class Folder_Actions_Suite_Events:
|
||||||
_code = 'faco'
|
_code = 'faco'
|
||||||
_subcode = 'lact'
|
_subcode = 'lact'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -90,7 +90,7 @@ class Folder_Actions_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -118,7 +118,7 @@ class Folder_Actions_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -146,7 +146,7 @@ class Folder_Actions_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -21,14 +21,14 @@ class Hidden_Suite_Events(Type_Names_Suite_Events):
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'dosc'
|
_subcode = 'dosc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -20,14 +20,14 @@ class Power_Suite_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'rest'
|
_subcode = 'rest'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -40,14 +40,14 @@ class Power_Suite_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'shut'
|
_subcode = 'shut'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -60,14 +60,14 @@ class Power_Suite_Events:
|
||||||
_code = 'fndr'
|
_code = 'fndr'
|
||||||
_subcode = 'slep'
|
_subcode = 'slep'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -61,7 +61,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -74,14 +74,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'delo'
|
_subcode = 'delo'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -108,7 +108,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -122,14 +122,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'doex'
|
_subcode = 'doex'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -143,14 +143,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'getd'
|
_subcode = 'getd'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -175,13 +175,13 @@ class Standard_Suite_Events:
|
||||||
_subcode = 'crel'
|
_subcode = 'crel'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_make)
|
aetools.keysubst(_arguments, self._argmap_make)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -206,7 +206,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -219,14 +219,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'odoc'
|
_subcode = 'odoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -239,14 +239,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'pdoc'
|
_subcode = 'pdoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -272,7 +272,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -299,7 +299,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -324,7 +324,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -20,14 +20,14 @@ class System_Events_Suite_Events:
|
||||||
_code = 'misc'
|
_code = 'misc'
|
||||||
_subcode = 'dosc'
|
_subcode = 'dosc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -61,7 +61,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -74,14 +74,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'delo'
|
_subcode = 'delo'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -108,7 +108,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -122,14 +122,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'doex'
|
_subcode = 'doex'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -143,14 +143,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'core'
|
_code = 'core'
|
||||||
_subcode = 'getd'
|
_subcode = 'getd'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -175,13 +175,13 @@ class Standard_Suite_Events:
|
||||||
_subcode = 'crel'
|
_subcode = 'crel'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_make)
|
aetools.keysubst(_arguments, self._argmap_make)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -206,7 +206,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -219,14 +219,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'odoc'
|
_subcode = 'odoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -239,14 +239,14 @@ class Standard_Suite_Events:
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'pdoc'
|
_subcode = 'pdoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -272,7 +272,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -299,7 +299,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -324,7 +324,7 @@ class Standard_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -20,14 +20,14 @@ class Terminal_Suite_Events:
|
||||||
_code = 'GURL'
|
_code = 'GURL'
|
||||||
_subcode = 'GURL'
|
_subcode = 'GURL'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -55,7 +55,7 @@ class Terminal_Suite_Events:
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -17,14 +17,14 @@ class builtin_Suite_Events:
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'odoc'
|
_subcode = 'odoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -36,14 +36,14 @@ class builtin_Suite_Events:
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'oapp'
|
_subcode = 'oapp'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -55,14 +55,14 @@ class builtin_Suite_Events:
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'rapp'
|
_subcode = 'rapp'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -75,14 +75,14 @@ class builtin_Suite_Events:
|
||||||
_code = 'aevt'
|
_code = 'aevt'
|
||||||
_subcode = 'pdoc'
|
_subcode = 'pdoc'
|
||||||
|
|
||||||
if _arguments: raise TypeError, 'No optional args expected'
|
if _arguments: raise TypeError('No optional args expected')
|
||||||
_arguments['----'] = _object
|
_arguments['----'] = _object
|
||||||
|
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
@ -100,14 +100,14 @@ class builtin_Suite_Events:
|
||||||
_subcode = 'quit'
|
_subcode = 'quit'
|
||||||
|
|
||||||
aetools.keysubst(_arguments, self._argmap_quit)
|
aetools.keysubst(_arguments, self._argmap_quit)
|
||||||
if _no_object != None: raise TypeError, 'No direct arg expected'
|
if _no_object != None: raise TypeError('No direct arg expected')
|
||||||
|
|
||||||
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
|
aetools.enumsubst(_arguments, 'savo', _Enum_savo)
|
||||||
|
|
||||||
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
_reply, _arguments, _attributes = self.send(_code, _subcode,
|
||||||
_arguments, _attributes)
|
_arguments, _attributes)
|
||||||
if _arguments.get('errn', 0):
|
if _arguments.get('errn', 0):
|
||||||
raise aetools.Error, aetools.decodeerror(_arguments)
|
raise aetools.Error(aetools.decodeerror(_arguments))
|
||||||
# XXXX Optionally decode result
|
# XXXX Optionally decode result
|
||||||
if _arguments.has_key('----'):
|
if _arguments.has_key('----'):
|
||||||
return _arguments['----']
|
return _arguments['----']
|
||||||
|
|
|
@ -19,7 +19,7 @@ def need(restype, resid, filename=None, modname=None):
|
||||||
Returns the refno of the resource file opened (or None)"""
|
Returns the refno of the resource file opened (or None)"""
|
||||||
|
|
||||||
if modname is None and filename is None:
|
if modname is None and filename is None:
|
||||||
raise ArgumentError, "Either filename or modname argument (or both) must be given"
|
raise ArgumentError("Either filename or modname argument (or both) must be given")
|
||||||
|
|
||||||
if type(resid) is type(1):
|
if type(resid) is type(1):
|
||||||
try:
|
try:
|
||||||
|
@ -60,7 +60,7 @@ def need(restype, resid, filename=None, modname=None):
|
||||||
if os.path.exists(pathname):
|
if os.path.exists(pathname):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
raise ResourceFileNotFoundError, filename
|
raise ResourceFileNotFoundError(filename)
|
||||||
|
|
||||||
refno = open_pathname(pathname)
|
refno = open_pathname(pathname)
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,7 @@ class PimpUnpacker:
|
||||||
watcher=None):
|
watcher=None):
|
||||||
self.argument = argument
|
self.argument = argument
|
||||||
if renames and not self._can_rename:
|
if renames and not self._can_rename:
|
||||||
raise RuntimeError, "This unpacker cannot rename files"
|
raise RuntimeError("This unpacker cannot rename files")
|
||||||
self._dir = dir
|
self._dir = dir
|
||||||
self._renames = renames
|
self._renames = renames
|
||||||
self._watcher = watcher
|
self._watcher = watcher
|
||||||
|
|
|
@ -295,7 +295,7 @@ class _InternalDict(dict):
|
||||||
try:
|
try:
|
||||||
value = self[attr]
|
value = self[attr]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise AttributeError, attr
|
raise AttributeError(attr)
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
warn("Attribute access from plist dicts is deprecated, use d[key] "
|
warn("Attribute access from plist dicts is deprecated, use d[key] "
|
||||||
"notation instead", PendingDeprecationWarning)
|
"notation instead", PendingDeprecationWarning)
|
||||||
|
@ -311,7 +311,7 @@ class _InternalDict(dict):
|
||||||
try:
|
try:
|
||||||
del self[attr]
|
del self[attr]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise AttributeError, attr
|
raise AttributeError(attr)
|
||||||
from warnings import warn
|
from warnings import warn
|
||||||
warn("Attribute access from plist dicts is deprecated, use d[key] "
|
warn("Attribute access from plist dicts is deprecated, use d[key] "
|
||||||
"notation instead", PendingDeprecationWarning)
|
"notation instead", PendingDeprecationWarning)
|
||||||
|
|
|
@ -47,7 +47,7 @@ def link(source, target):
|
||||||
|
|
||||||
s = os.open(source, os.O_RDONLY | os.O_BINARY)
|
s = os.open(source, os.O_RDONLY | os.O_BINARY)
|
||||||
if os.isatty(s):
|
if os.isatty(s):
|
||||||
raise OSError, (errno.EXDEV, 'Cross-device link')
|
raise OSError(errno.EXDEV, 'Cross-device link')
|
||||||
data = os.read(s, 1024)
|
data = os.read(s, 1024)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -94,7 +94,7 @@ def __get_field_sep(record):
|
||||||
if fs:
|
if fs:
|
||||||
return fs
|
return fs
|
||||||
else:
|
else:
|
||||||
raise KeyError, '>> group database fields not delimited <<'
|
raise KeyError('>> group database fields not delimited <<')
|
||||||
|
|
||||||
# class to match the new record field name accessors.
|
# class to match the new record field name accessors.
|
||||||
# the resulting object is intended to behave like a read-only tuple,
|
# the resulting object is intended to behave like a read-only tuple,
|
||||||
|
@ -136,7 +136,7 @@ def __read_group_file():
|
||||||
if group_file:
|
if group_file:
|
||||||
group = open(group_file, 'r')
|
group = open(group_file, 'r')
|
||||||
else:
|
else:
|
||||||
raise KeyError, '>> no group database <<'
|
raise KeyError('>> no group database <<')
|
||||||
gidx = {}
|
gidx = {}
|
||||||
namx = {}
|
namx = {}
|
||||||
sep = None
|
sep = None
|
||||||
|
|
|
@ -113,7 +113,7 @@ def __get_field_sep(record):
|
||||||
if fs:
|
if fs:
|
||||||
return fs
|
return fs
|
||||||
else:
|
else:
|
||||||
raise KeyError, '>> passwd database fields not delimited <<'
|
raise KeyError('>> passwd database fields not delimited <<')
|
||||||
|
|
||||||
# class to match the new record field name accessors.
|
# class to match the new record field name accessors.
|
||||||
# the resulting object is intended to behave like a read-only tuple,
|
# the resulting object is intended to behave like a read-only tuple,
|
||||||
|
@ -160,7 +160,7 @@ def __read_passwd_file():
|
||||||
if passwd_file:
|
if passwd_file:
|
||||||
passwd = open(passwd_file, 'r')
|
passwd = open(passwd_file, 'r')
|
||||||
else:
|
else:
|
||||||
raise KeyError, '>> no password database <<'
|
raise KeyError('>> no password database <<')
|
||||||
uidx = {}
|
uidx = {}
|
||||||
namx = {}
|
namx = {}
|
||||||
sep = None
|
sep = None
|
||||||
|
|
Loading…
Reference in New Issue