Commit 6f84ed5a authored by Jack Jansen's avatar Jack Jansen

Fixed macroman<->latin1 conversion. Some chars don't

exist in latin1, but at least the roundtrip results in the
same macroman characters.
parent dfebe90c
...@@ -260,8 +260,8 @@ class AECaptureParser: ...@@ -260,8 +260,8 @@ class AECaptureParser:
'type(': [('type(', "aetypes.Type('"), (')', "')")], 'type(': [('type(', "aetypes.Type('"), (')', "')")],
"'null'()": [("'null'()", "None")], "'null'()": [("'null'()", "None")],
'abso(': [('abso(', "aetypes.Unknown('abso', ")], 'abso(': [('abso(', "aetypes.Unknown('abso', ")],
'': [('', '"')], '': [('', '"')],
'': [('', '"')], '': [('', '"')],
'[': [('[', '('), (', ', ',')], '[': [('[', '('), (', ', ',')],
']': [(']', ')')], ']': [(']', ')')],
'': [('', "")], '': [('', "")],
...@@ -353,7 +353,7 @@ def addquotes(txt): ...@@ -353,7 +353,7 @@ def addquotes(txt):
eventreceptacle = """ eventreceptacle = """
[event: target="Finder", class=core, id=setd] [event: target="Finder", class=core, id=setd]
'----':obj {form:prop, want:type(prop), seld:type(posn), from:obj {form:name, want:type(cfol), seld:MoPar:Data:DevDev:Python:Python 1.5.2c1:Extensions, from:'null'()}}, data:[100, 10] '----':obj {form:prop, want:type(prop), seld:type(posn), from:obj {form:name, want:type(cfol), seld:MoPar:Data:DevDev:Python:Python 1.5.2c1:Extensions, from:'null'()}}, data:[100, 10]
[/event] [/event]
""" """
......
...@@ -56,7 +56,7 @@ char start(struct runloc& r,BBLMParamBlock &pb) ...@@ -56,7 +56,7 @@ char start(struct runloc& r,BBLMParamBlock &pb)
r.last_start = pb.fCalcRunParams.fStartOffset; r.last_start = pb.fCalcRunParams.fStartOffset;
r.pos = pb.fCalcRunParams.fStartOffset; r.pos = pb.fCalcRunParams.fStartOffset;
r.p = ((unsigned char*)pb.fText) + pb.fCalcRunParams.fStartOffset; r.p = ((unsigned char*)pb.fText) + pb.fCalcRunParams.fStartOffset;
// Adjust for the gap if were not already past it. // Adjust for the gap if were not already past it.
if ((!r.past_gap) && (r.pos >= pb.fTextGapLocation)){ if ((!r.past_gap) && (r.pos >= pb.fTextGapLocation)){
r.p += pb.fTextGapLength; r.p += pb.fTextGapLength;
r.past_gap = true; r.past_gap = true;
......
...@@ -2,7 +2,7 @@ This is the Python Language Module for BBEdit. ...@@ -2,7 +2,7 @@ This is the Python Language Module for BBEdit.
This software is a plugin to Bare Bones Software's BBEdit 6.0.2 (or more), designed to make editing & browsing Python Language files easer. This software is a plugin to Bare Bones Software's BBEdit 6.0.2 (or more), designed to make editing & browsing Python Language files easer.
It parses any file ending in .py (or extentions of your choice.) providing BBEdit with the information BBEdit needs to provide services for python files similar to those it provides for 'C'. Namely: syntax coloring and populating BBEdit's 'Ÿ' popup menu with file's functions and classes. It parses any file ending in .py (or extentions of your choice.) providing BBEdit with the information BBEdit needs to provide services for python files similar to those it provides for 'C'. Namely: syntax coloring and populating BBEdit's '' popup menu with file's functions and classes.
This Plug-in needs to be placed in your :BBEdit 6.0:BBEdit Support:Language Modules: folder. This Plug-in needs to be placed in your :BBEdit 6.0:BBEdit Support:Language Modules: folder.
......
...@@ -63,7 +63,7 @@ class PythonSlave(FrameWork.Application): ...@@ -63,7 +63,7 @@ class PythonSlave(FrameWork.Application):
raise self raise self
def getabouttext(self): def getabouttext(self):
return "About PythonSlave" return "About PythonSlave"
def do_about(self, id, item, window, event): def do_about(self, id, item, window, event):
EasyDialogs.Message("PythonSlave " + __version__ + "\rCopyright 1996, Letterror, JvR") EasyDialogs.Message("PythonSlave " + __version__ + "\rCopyright 1996, Letterror, JvR")
......
...@@ -29,7 +29,7 @@ from the target before going on to the next event ...@@ -29,7 +29,7 @@ from the target before going on to the next event
Object is a appleevent object specifier and is of the form Object is a appleevent object specifier and is of the form
PythonScript.PsClass.Class1(arg).Class2(arg)Š.Property() PythonScript.PsClass.Class1(arg).Class2(arg)ƒ.Property()
All applescript event, class and property names are capitalised to All applescript event, class and property names are capitalised to
distinguish them from python methods. distinguish them from python methods.
......
...@@ -24,7 +24,7 @@ class Special_Events_Events: ...@@ -24,7 +24,7 @@ class Special_Events_Events:
Required argument: a reference to the disk image to be mounted Required argument: a reference to the disk image to be mounted
Keyword argument access_mode: the access mode for mounted volume (default is "any", i.e. best possible) Keyword argument access_mode: the access mode for mounted volume (default is "any", i.e. best possible)
Keyword argument checksum_verification: Verify the checksum before mounting? Keyword argument checksum_verification: Verify the checksum before mounting?
Keyword argument signature_verification: Verify the DigiSign signature before mounting? Keyword argument signature_verification: Verify the DigiSign signature before mounting?
Keyword argument RAM_caching: Cache the disk image in RAM? (if omitted, don't cache) Keyword argument RAM_caching: Cache the disk image in RAM? (if omitted, don't cache)
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a reference to mounted disk Returns: a reference to mounted disk
...@@ -57,7 +57,7 @@ class Special_Events_Events: ...@@ -57,7 +57,7 @@ class Special_Events_Events:
"""execute DiskScript: Executes a Disk Copy-specific DiskScript """execute DiskScript: Executes a Disk Copy-specific DiskScript
Required argument: a reference to the DiskScript to execute Required argument: a reference to the DiskScript to execute
Keyword argument checksum_verification: Should checksums be verified when mounting images referenced in the DiskScript? Keyword argument checksum_verification: Should checksums be verified when mounting images referenced in the DiskScript?
Keyword argument signature_verification: Should the DigiSign signature of the DiskScript and the images it references be verified? Keyword argument signature_verification: Should the DigiSign signature of the DiskScript and the images it references be verified?
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'ddsk' _code = 'ddsk'
...@@ -158,10 +158,10 @@ class Special_Events_Events: ...@@ -158,10 +158,10 @@ class Special_Events_Events:
return _arguments['----'] return _arguments['----']
def verify_signature(self, _object, _attributes={}, **_arguments): def verify_signature(self, _object, _attributes={}, **_arguments):
"""verify signature: Verify the DigiSign signature for a Disk Copy document """verify signature: Verify the DigiSign signature for a Disk Copy document
Required argument: the disk image to be verified Required argument: the disk image to be verified
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Is the DigiSign signature valid? Returns: Is the DigiSign signature valid?
""" """
_code = 'ddsk' _code = 'ddsk'
_subcode = 'Vsig' _subcode = 'Vsig'
...@@ -183,7 +183,7 @@ class Special_Events_Events: ...@@ -183,7 +183,7 @@ class Special_Events_Events:
} }
def sign_image(self, _object, _attributes={}, **_arguments): def sign_image(self, _object, _attributes={}, **_arguments):
"""sign image: Add a DigiSign signature to a Disk Copy document """sign image: Add a DigiSign signature to a Disk Copy document
Required argument: the disk image to be signed Required argument: the disk image to be signed
Keyword argument using_signer: a reference to signer file to use Keyword argument using_signer: a reference to signer file to use
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
...@@ -213,7 +213,7 @@ class Special_Events_Events: ...@@ -213,7 +213,7 @@ class Special_Events_Events:
def create_a_floppy_from(self, _object, _attributes={}, **_arguments): def create_a_floppy_from(self, _object, _attributes={}, **_arguments):
"""create a floppy from: create a floppy disk from a Disk Copy document """create a floppy from: create a floppy disk from a Disk Copy document
Required argument: the disk image to make a floppy from Required argument: the disk image to make a floppy from
Keyword argument signature_verification: Should the DigiSign signature be verified before creating a floppy disk? Keyword argument signature_verification: Should the DigiSign signature be verified before creating a floppy disk?
Keyword argument erase_confirmation: Should the user be asked to confirm the erasure of the previous contents of floppy disks? Keyword argument erase_confirmation: Should the user be asked to confirm the erasure of the previous contents of floppy disks?
Keyword argument make_multiple_floppies: Should the user be prompted to create multiple floppy disks? Keyword argument make_multiple_floppies: Should the user be prompted to create multiple floppy disks?
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
...@@ -241,7 +241,7 @@ class Special_Events_Events: ...@@ -241,7 +241,7 @@ class Special_Events_Events:
} }
def check_image(self, _object, _attributes={}, **_arguments): def check_image(self, _object, _attributes={}, **_arguments):
"""check image: Check the disk images internal data structures for any inconsistencies. Works on NDIF, Disk Copy 4.2, DART, or DiskSet images. """check image: Check the disk images internal data structures for any inconsistencies. Works on NDIF, Disk Copy 4.2, DART, or DiskSet images.
Required argument: the disk image to be verified Required argument: the disk image to be verified
Keyword argument details: Should the disk image details be displayed? Keyword argument details: Should the disk image details be displayed?
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
...@@ -313,7 +313,7 @@ class Special_Events_Events: ...@@ -313,7 +313,7 @@ class Special_Events_Events:
Keyword argument launching_document: the path to a document to open Keyword argument launching_document: the path to a document to open
Keyword argument version_string: sets the 'vers' 1 resource of the self-mounting image Keyword argument version_string: sets the 'vers' 1 resource of the self-mounting image
Keyword argument checksum_verification: Should the checksum of the source images be verified before creating the SMI? Keyword argument checksum_verification: Should the checksum of the source images be verified before creating the SMI?
Keyword argument signature_verification: Should the DigiSign signature of the source images be verified before creating the SMI? Keyword argument signature_verification: Should the DigiSign signature of the source images be verified before creating the SMI?
Keyword argument image_signing: Should the SMI be given a digital signature when it is created? Keyword argument image_signing: Should the SMI be given a digital signature when it is created?
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a reference to the self-mounting image created Returns: a reference to the self-mounting image created
......
...@@ -30,7 +30,7 @@ class Standard_Suite_Events: ...@@ -30,7 +30,7 @@ class Standard_Suite_Events:
Keyword argument _in: the target object Keyword argument _in: the target object
Keyword argument using_format: the format for the target Keyword argument using_format: the format for the target
Keyword argument checksum_verification: Should the checksum be verified before saving? Keyword argument checksum_verification: Should the checksum be verified before saving?
Keyword argument signature_verification: Should the DigiSign signature be verified before saving? Keyword argument signature_verification: Should the DigiSign signature be verified before saving?
Keyword argument image_signing: Should the image be signed? Keyword argument image_signing: Should the image be signed?
Keyword argument leave_image_mounted: Should the image be mounted after saving? Keyword argument leave_image_mounted: Should the image be mounted after saving?
Keyword argument percent_free_space: percent free space to reserve (for image folder operation, 0-255%) Keyword argument percent_free_space: percent free space to reserve (for image folder operation, 0-255%)
...@@ -258,7 +258,7 @@ class file_format(aetools.NProperty): ...@@ -258,7 +258,7 @@ class file_format(aetools.NProperty):
which = 'Ifmt' which = 'Ifmt'
want = 'TEXT' want = 'TEXT'
class signed(aetools.NProperty): class signed(aetools.NProperty):
"""signed - Does the disk image have a DigiSign signature? """ """signed - Does the disk image have a DigiSign signature? """
which = 'Isin' which = 'Isin'
want = 'bool' want = 'bool'
class compressed(aetools.NProperty): class compressed(aetools.NProperty):
...@@ -384,7 +384,7 @@ Save_reply_record._propdict = { ...@@ -384,7 +384,7 @@ Save_reply_record._propdict = {
Save_reply_record._elemdict = { Save_reply_record._elemdict = {
} }
_Enum_UIAc = { _Enum_UIAc = {
'never_interact' : 'eNvr', # Dont allow any interaction at all 'never_interact' : 'eNvr', # Dont allow any interaction at all
'interact_with_self' : 'eInS', # Only allow interaction from internal events 'interact_with_self' : 'eInS', # Only allow interaction from internal events
'interact_with_local' : 'eInL', # Allow interaction from any event originating on this machine 'interact_with_local' : 'eInL', # Allow interaction from any event originating on this machine
'interact_with_all' : 'eInA', # Allow interaction from network events 'interact_with_all' : 'eInA', # Allow interaction from network events
...@@ -399,7 +399,7 @@ _Enum_SvAs = { ...@@ -399,7 +399,7 @@ _Enum_SvAs = {
_Enum_rcpT = { _Enum_rcpT = {
'block_disk_copy' : 'cpBl', # block-by-block disk-level copy 'block_disk_copy' : 'cpBl', # block-by-block disk-level copy
'files_and_file_ID_copy' : 'cpID', # all files including desktop databases and file IDs 'files_and_file_ID_copy' : 'cpID', # all files including desktop databases and file IDs
'files_and_desktop_info' : 'cpDT', # all files and most desktop information 'files_and_desktop_info' : 'cpDT', # all files and most desktop information
'files_only' : 'cpFI', # all files but no desktop information 'files_only' : 'cpFI', # all files but no desktop information
'disk_image_conversion' : 'cpCV', # disk image format conversion 'disk_image_conversion' : 'cpCV', # disk image format conversion
......
...@@ -35,7 +35,7 @@ class ToolboxAssi: ...@@ -35,7 +35,7 @@ class ToolboxAssi:
try: try:
self.talker = Toolbox('ALTV', start = 1) self.talker = Toolbox('ALTV', start = 1)
except: except:
raise W.AlertError, "Cant find Toolbox Assistant" raise W.AlertError, "Cant find Toolbox Assistant"
lookup = self.w.edit.get() lookup = self.w.edit.get()
try: try:
self.talker.LookupTopic(lookup) self.talker.LookupTopic(lookup)
......
...@@ -70,28 +70,28 @@ kDocumentsFolderType = 'docs' ...@@ -70,28 +70,28 @@ kDocumentsFolderType = 'docs'
kVolumeRootFolderType = 'root' kVolumeRootFolderType = 'root'
kChewableItemsFolderType = 'flnt' kChewableItemsFolderType = 'flnt'
kApplicationSupportFolderType = 'asup' kApplicationSupportFolderType = 'asup'
kTextEncodingsFolderType = 'tex' kTextEncodingsFolderType = 'tex'
kStationeryFolderType = 'odst' kStationeryFolderType = 'odst'
kOpenDocFolderType = 'odod' kOpenDocFolderType = 'odod'
kOpenDocShellPlugInsFolderType = 'odsp' kOpenDocShellPlugInsFolderType = 'odsp'
kEditorsFolderType = 'oded' kEditorsFolderType = 'oded'
kOpenDocEditorsFolderType = 'odf' kOpenDocEditorsFolderType = 'odf'
kOpenDocLibrariesFolderType = 'odlb' kOpenDocLibrariesFolderType = 'odlb'
kGenEditorsFolderType = 'edi' kGenEditorsFolderType = 'edi'
kHelpFolderType = 'hlp' kHelpFolderType = 'hlp'
kInternetPlugInFolderType = 'net' kInternetPlugInFolderType = 'net'
kModemScriptsFolderType = 'mod' kModemScriptsFolderType = 'mod'
kPrinterDescriptionFolderType = 'ppdf' kPrinterDescriptionFolderType = 'ppdf'
kPrinterDriverFolderType = 'prd' kPrinterDriverFolderType = 'prd'
kScriptingAdditionsFolderType = 'scr' kScriptingAdditionsFolderType = 'scr'
kSharedLibrariesFolderType = 'lib' kSharedLibrariesFolderType = 'lib'
kVoicesFolderType = 'fvoc' kVoicesFolderType = 'fvoc'
kControlStripModulesFolderType = 'sdev' kControlStripModulesFolderType = 'sdev'
kAssistantsFolderType = 'ast' kAssistantsFolderType = 'ast'
kUtilitiesFolderType = 'uti' kUtilitiesFolderType = 'uti'
kAppleExtrasFolderType = 'aex' kAppleExtrasFolderType = 'aex'
kContextualMenuItemsFolderType = 'cmnu' kContextualMenuItemsFolderType = 'cmnu'
kMacOSReadMesFolderType = 'mor' kMacOSReadMesFolderType = 'mor'
kALMModulesFolderType = 'walk' kALMModulesFolderType = 'walk'
kALMPreferencesFolderType = 'trip' kALMPreferencesFolderType = 'trip'
kALMLocationsFolderType = 'fall' kALMLocationsFolderType = 'fall'
......
...@@ -70,7 +70,7 @@ class CfrgResource: ...@@ -70,7 +70,7 @@ class CfrgResource:
try: try:
data = Res.Get1Resource('cfrg', 0).data data = Res.Get1Resource('cfrg', 0).data
except Res.Error: except Res.Error:
raise Res.Error, "no cfrg resource found", sys.exc_traceback raise Res.Error, "no cfrg resource found", sys.exc_traceback
finally: finally:
Res.CloseResFile(resref) Res.CloseResFile(resref)
Res.UseResFile(currentresref) Res.UseResFile(currentresref)
...@@ -146,7 +146,7 @@ class FragmentDescriptor: ...@@ -146,7 +146,7 @@ class FragmentDescriptor:
def getfragment(self): def getfragment(self):
if self.where <> 1: if self.where <> 1:
raise error, "cant read fragment, unsupported location" raise error, "cant read fragment, unsupported location"
f = open(self.path, "rb") f = open(self.path, "rb")
f.seek(self.offset) f.seek(self.offset)
if self.length: if self.length:
...@@ -158,7 +158,7 @@ class FragmentDescriptor: ...@@ -158,7 +158,7 @@ class FragmentDescriptor:
def copydata(self, outfile): def copydata(self, outfile):
if self.where <> 1: if self.where <> 1:
raise error, "cant read fragment, unsupported location" raise error, "cant read fragment, unsupported location"
infile = open(self.path, "rb") infile = open(self.path, "rb")
if self.length == 0: if self.length == 0:
infile.seek(0, 2) infile.seek(0, 2)
......
...@@ -121,7 +121,7 @@ def update(file): ...@@ -121,7 +121,7 @@ def update(file):
# #
def comment(object, comment=None): def comment(object, comment=None):
"""comment: get or set the Finder-comment of the item, displayed in the Get Info window.""" """comment: get or set the Finder-comment of the item, displayed in the Get Info window."""
object = macfs.FSSpec(object) object = macfs.FSSpec(object)
fss = macfs.FSSpec(object) fss = macfs.FSSpec(object)
object_alias = fss.NewAlias() object_alias = fss.NewAlias()
...@@ -756,7 +756,7 @@ def _test(): ...@@ -756,7 +756,7 @@ def _test():
sys.stdin.readline() sys.stdin.readline()
def _test2(): def _test2():
print '\nmorefindertools version %s\nTests coming up' %__version__ print '\nmorefindertools version %s\nTests coming up' %__version__
import os import os
import random import random
...@@ -800,7 +800,7 @@ def _test2(): ...@@ -800,7 +800,7 @@ def _test2():
pos = (100+i*10, 100+i*10) pos = (100+i*10, 100+i*10)
windowposition(base, pos) windowposition(base, pos)
print '\twindow position', pos print '\twindow position', pos
windowposition(base, orgpos) # park it where it was before windowposition(base, orgpos) # park it where it was before
print 'Put a comment in file', f, ':' print 'Put a comment in file', f, ':'
print '\t', comment(f) # print the Finder comment this file has print '\t', comment(f) # print the Finder comment this file has
......
...@@ -275,7 +275,7 @@ class AppleScript_Suite: ...@@ -275,7 +275,7 @@ class AppleScript_Suite:
} }
def Call_a5_subroutine(self, _object=None, _attributes={}, **_arguments): def Call_a5_subroutine(self, _object=None, _attributes={}, **_arguments):
"""Callsubroutine: A subroutine call """Callsubroutine: A subroutine call
Required argument: anything Required argument: anything
Keyword argument at: a preposition Keyword argument at: a preposition
Keyword argument _from: a preposition Keyword argument _from: a preposition
...@@ -347,7 +347,7 @@ class AppleScript_Suite: ...@@ -347,7 +347,7 @@ class AppleScript_Suite:
return _arguments['----'] return _arguments['----']
def _ad_(self, _object, _attributes={}, **_arguments): def _ad_(self, _object, _attributes={}, **_arguments):
""": Inequality """: Inequality
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
...@@ -536,7 +536,7 @@ class AppleScript_Suite: ...@@ -536,7 +536,7 @@ class AppleScript_Suite:
return _arguments['----'] return _arguments['----']
def _b3_(self, _object, _attributes={}, **_arguments): def _b3_(self, _object, _attributes={}, **_arguments):
""": Greater than or equal to """: Greater than or equal to
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
...@@ -578,7 +578,7 @@ class AppleScript_Suite: ...@@ -578,7 +578,7 @@ class AppleScript_Suite:
return _arguments['----'] return _arguments['----']
def _b2_(self, _object, _attributes={}, **_arguments): def _b2_(self, _object, _attributes={}, **_arguments):
""": Less than or equal to """: Less than or equal to
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
......
...@@ -204,7 +204,7 @@ class index(aetools.NProperty): ...@@ -204,7 +204,7 @@ class index(aetools.NProperty):
which = 'pidx' which = 'pidx'
want = 'long' want = 'long'
class mode(aetools.NProperty): class mode(aetools.NProperty):
"""mode - The document¹s open mode""" """mode - The documentÕs open mode"""
which = 'Mode' which = 'Mode'
want = 'Mode' want = 'Mode'
class modified(aetools.NProperty): class modified(aetools.NProperty):
......
...@@ -85,7 +85,7 @@ class Finder_Suite: ...@@ -85,7 +85,7 @@ class Finder_Suite:
def empty(self, _object=None, _attributes={}, **_arguments): def empty(self, _object=None, _attributes={}, **_arguments):
"""empty: Empty the trash """empty: Empty the trash
Required argument: empty and empty trash both do the same thing Required argument: empty and empty trash both do the same thing
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
...@@ -311,7 +311,7 @@ class accessory_suitcase(aetools.ComponentItem): ...@@ -311,7 +311,7 @@ class accessory_suitcase(aetools.ComponentItem):
accessory_suitcases = accessory_suitcase accessory_suitcases = accessory_suitcase
class alias_file(aetools.ComponentItem): class alias_file(aetools.ComponentItem):
"""alias file - An alias file (created with Make Alias)""" """alias file - An alias file (created with Make Alias)"""
want = 'alia' want = 'alia'
class original_item(aetools.NProperty): class original_item(aetools.NProperty):
"""original item - the original item pointed to by the alias""" """original item - the original item pointed to by the alias"""
...@@ -324,11 +324,11 @@ class application(aetools.ComponentItem): ...@@ -324,11 +324,11 @@ class application(aetools.ComponentItem):
"""application - An application program""" """application - An application program"""
want = 'capp' want = 'capp'
class about_this_macintosh(aetools.NProperty): class about_this_macintosh(aetools.NProperty):
"""about this macintosh - the About this Macintosh dialog, and the list of running processes displayed in it""" """about this macintosh - the About this Macintosh dialog, and the list of running processes displayed in it"""
which = 'abbx' which = 'abbx'
want = 'obj ' want = 'obj '
class apple_menu_items_folder(aetools.NProperty): class apple_menu_items_folder(aetools.NProperty):
"""apple menu items folder - the special folder Apple Menu Items, the contents of which appear in the Apple menu""" """apple menu items folder - the special folder Apple Menu Items, the contents of which appear in the Apple menu"""
which = 'amnu' which = 'amnu'
want = 'obj ' want = 'obj '
class clipboard(aetools.NProperty): class clipboard(aetools.NProperty):
...@@ -336,7 +336,7 @@ class clipboard(aetools.NProperty): ...@@ -336,7 +336,7 @@ class clipboard(aetools.NProperty):
which = 'pcli' which = 'pcli'
want = 'obj ' want = 'obj '
class control_panels_folder(aetools.NProperty): class control_panels_folder(aetools.NProperty):
"""control panels folder - the special folder Control Panels""" """control panels folder - the special folder Control Panels"""
which = 'ctrl' which = 'ctrl'
want = 'obj ' want = 'obj '
class desktop(aetools.NProperty): class desktop(aetools.NProperty):
...@@ -344,7 +344,7 @@ class desktop(aetools.NProperty): ...@@ -344,7 +344,7 @@ class desktop(aetools.NProperty):
which = 'desk' which = 'desk'
want = 'obj ' want = 'obj '
class extensions_folder(aetools.NProperty): class extensions_folder(aetools.NProperty):
"""extensions folder - the special folder Extensions""" """extensions folder - the special folder Extensions"""
which = 'extn' which = 'extn'
want = 'obj ' want = 'obj '
class file_sharing(aetools.NProperty): class file_sharing(aetools.NProperty):
...@@ -352,7 +352,7 @@ class file_sharing(aetools.NProperty): ...@@ -352,7 +352,7 @@ class file_sharing(aetools.NProperty):
which = 'fshr' which = 'fshr'
want = 'bool' want = 'bool'
class fonts_folder(aetools.NProperty): class fonts_folder(aetools.NProperty):
"""fonts folder - the special folder Fonts""" """fonts folder - the special folder Fonts"""
which = 'ffnt' which = 'ffnt'
want = 'obj ' want = 'obj '
class frontmost(aetools.NProperty): class frontmost(aetools.NProperty):
...@@ -360,7 +360,7 @@ class frontmost(aetools.NProperty): ...@@ -360,7 +360,7 @@ class frontmost(aetools.NProperty):
which = 'pisf' which = 'pisf'
want = 'bool' want = 'bool'
class insertion_location(aetools.NProperty): class insertion_location(aetools.NProperty):
"""insertion location - the container that a new folder would appear in if New Folder was selected""" """insertion location - the container that a new folder would appear in if New Folder was selected"""
which = 'pins' which = 'pins'
want = 'obj ' want = 'obj '
class largest_free_block(aetools.NProperty): class largest_free_block(aetools.NProperty):
...@@ -368,7 +368,7 @@ class largest_free_block(aetools.NProperty): ...@@ -368,7 +368,7 @@ class largest_free_block(aetools.NProperty):
which = 'mfre' which = 'mfre'
want = 'long' want = 'long'
class preferences_folder(aetools.NProperty): class preferences_folder(aetools.NProperty):
"""preferences folder - the special folder Preferences""" """preferences folder - the special folder Preferences"""
which = 'pref' which = 'pref'
want = 'obj ' want = 'obj '
class product_version(aetools.NProperty): class product_version(aetools.NProperty):
...@@ -384,15 +384,15 @@ class sharing_starting_up(aetools.NProperty): ...@@ -384,15 +384,15 @@ class sharing_starting_up(aetools.NProperty):
which = 'fsup' which = 'fsup'
want = 'bool' want = 'bool'
class shortcuts(aetools.NProperty): class shortcuts(aetools.NProperty):
"""shortcuts - the Finder Shortcuts item in the Finder's help menu""" """shortcuts - the Finder Shortcuts item in the Finder's help menu"""
which = 'scut' which = 'scut'
want = 'obj ' want = 'obj '
class shutdown_items_folder(aetools.NProperty): class shutdown_items_folder(aetools.NProperty):
"""shutdown items folder - the special folder Shutdown Items""" """shutdown items folder - the special folder Shutdown Items"""
which = 'shdf' which = 'shdf'
want = 'obj ' want = 'obj '
class startup_items_folder(aetools.NProperty): class startup_items_folder(aetools.NProperty):
"""startup items folder - the special folder Startup Items""" """startup items folder - the special folder Startup Items"""
which = 'strt' which = 'strt'
want = 'obj ' want = 'obj '
class system_folder(aetools.NProperty): class system_folder(aetools.NProperty):
...@@ -400,7 +400,7 @@ class system_folder(aetools.NProperty): ...@@ -400,7 +400,7 @@ class system_folder(aetools.NProperty):
which = 'macs' which = 'macs'
want = 'obj ' want = 'obj '
class temporary_items_folder(aetools.NProperty): class temporary_items_folder(aetools.NProperty):
"""temporary items folder - the special folder Temporary Items (invisible)""" """temporary items folder - the special folder Temporary Items (invisible)"""
which = 'temp' which = 'temp'
want = 'obj ' want = 'obj '
class version(aetools.NProperty): class version(aetools.NProperty):
...@@ -562,7 +562,7 @@ class item(aetools.NProperty): ...@@ -562,7 +562,7 @@ class item(aetools.NProperty):
container_windows = container_window container_windows = container_window
class content_space(aetools.ComponentItem): class content_space(aetools.ComponentItem):
"""content space - All windows, including the desktop window (Window does not include the desktop window)""" """content space - All windows, including the desktop window (Window does not include the desktop window)"""
want = 'dwnd' want = 'dwnd'
content_spaces = content_space content_spaces = content_space
...@@ -632,7 +632,7 @@ class desk_accessory_file(aetools.ComponentItem): ...@@ -632,7 +632,7 @@ class desk_accessory_file(aetools.ComponentItem):
desk_accessory_files = desk_accessory_file desk_accessory_files = desk_accessory_file
class desktop_2d_object(aetools.ComponentItem): class desktop_2d_object(aetools.ComponentItem):
"""desktop-object - Desktop-object is the class of the desktop object""" """desktop-object - Desktop-object is the class of the desktop object"""
want = 'cdsk' want = 'cdsk'
class startup_disk(aetools.NProperty): class startup_disk(aetools.NProperty):
"""startup disk - the startup disk""" """startup disk - the startup disk"""
...@@ -720,12 +720,12 @@ class locked(aetools.NProperty): ...@@ -720,12 +720,12 @@ class locked(aetools.NProperty):
"""locked - Is the file locked?""" """locked - Is the file locked?"""
which = 'islk' which = 'islk'
want = 'bool' want = 'bool'
# repeated property product_version the version of the product (visible at the top of the Get Info dialog) # repeated property product_version the version of the product (visible at the top of the Get Info dialog)
class stationery(aetools.NProperty): class stationery(aetools.NProperty):
"""stationery - Is the item a stationery pad?""" """stationery - Is the item a stationery pad?"""
which = 'pspd' which = 'pspd'
want = 'bool' want = 'bool'
# repeated property version the version of the file (visible at the bottom of the Get Info dialog) # repeated property version the version of the file (visible at the bottom of the Get Info dialog)
files = file files = file
...@@ -790,7 +790,7 @@ class position(aetools.NProperty): ...@@ -790,7 +790,7 @@ class position(aetools.NProperty):
groups = group groups = group
class information_window(aetools.ComponentItem): class information_window(aetools.ComponentItem):
"""information window - An information window (opened by Get Info)""" """information window - An information window (opened by Get Info)"""
want = 'iwnd' want = 'iwnd'
class comment(aetools.NProperty): class comment(aetools.NProperty):
"""comment - the comment""" """comment - the comment"""
...@@ -813,16 +813,16 @@ class physical_size(aetools.NProperty): ...@@ -813,16 +813,16 @@ class physical_size(aetools.NProperty):
"""physical size - the actual space used by the item on disk""" """physical size - the actual space used by the item on disk"""
which = 'phys' which = 'phys'
want = 'long' want = 'long'
# repeated property product_version the version of the product (visible at the top of the Get Info dialog) # repeated property product_version the version of the product (visible at the top of the Get Info dialog)
class size(aetools.NProperty): class size(aetools.NProperty):
"""size - the logical size of the item""" """size - the logical size of the item"""
which = 'ptsz' which = 'ptsz'
want = 'long' want = 'long'
# repeated property stationery Is the item a stationery pad? # repeated property stationery Is the item a stationery pad?
# repeated property suggested_partition_size the memory size that the developer recommends that the application should be launched with # repeated property suggested_partition_size the memory size that the developer recommends that the application should be launched with
# repeated property version the version of the file (visible at the bottom of the Get Info dialog) # repeated property version the version of the file (visible at the bottom of the Get Info dialog)
class warn_before_emptying(aetools.NProperty): class warn_before_emptying(aetools.NProperty):
"""warn before emptying - Is a dialog displayed when Empty trash is selected?""" """warn before emptying - Is a dialog displayed when Empty trash is selected?"""
which = 'warn' which = 'warn'
want = 'bool' want = 'bool'
...@@ -832,7 +832,7 @@ class item(aetools.ComponentItem): ...@@ -832,7 +832,7 @@ class item(aetools.ComponentItem):
"""item - An item""" """item - An item"""
want = 'cobj' want = 'cobj'
# repeated property bounds the bounding rectangle of the item # repeated property bounds the bounding rectangle of the item
# repeated property comment the comment displayed in the Get Info window of the item # repeated property comment the comment displayed in the Get Info window of the item
# repeated property container the container of this item # repeated property container the container of this item
class content_space(aetools.NProperty): class content_space(aetools.NProperty):
"""content space - the window that would open if the item was opened""" """content space - the window that would open if the item was opened"""
...@@ -978,7 +978,7 @@ class see_folders(aetools.NProperty): ...@@ -978,7 +978,7 @@ class see_folders(aetools.NProperty):
want = 'bool' want = 'bool'
class sharing_window(aetools.ComponentItem): class sharing_window(aetools.ComponentItem):
"""sharing window - A sharing window (opened by Sharing)""" """sharing window - A sharing window (opened by Sharing)"""
want = 'swnd' want = 'swnd'
# repeated property container the container that this window was opened from # repeated property container the container that this window was opened from
# repeated property exported Is this container a share point or inside a share point? # repeated property exported Is this container a share point or inside a share point?
...@@ -1020,9 +1020,9 @@ class suitcase(aetools.ComponentItem): ...@@ -1020,9 +1020,9 @@ class suitcase(aetools.ComponentItem):
suitcases = suitcase suitcases = suitcase
class trash_2d_object(aetools.ComponentItem): class trash_2d_object(aetools.ComponentItem):
"""trash-object - Trash-object is the class of the trash object""" """trash-object - Trash-object is the class of the trash object"""
want = 'ctrs' want = 'ctrs'
# repeated property warn_before_emptying Is a dialog displayed when Empty trash is selected? # repeated property warn_before_emptying Is a dialog displayed when Empty trash is selected?
# element 'dsut' as ['indx', 'name'] # element 'dsut' as ['indx', 'name']
# element 'alia' as ['indx', 'name'] # element 'alia' as ['indx', 'name']
# element 'appf' as ['indx', 'name'] # element 'appf' as ['indx', 'name']
......
...@@ -791,7 +791,7 @@ class Metrowerks_Shell_Suite: ...@@ -791,7 +791,7 @@ class Metrowerks_Shell_Suite:
class Access_Paths(aetools.ComponentItem): class Access_Paths(aetools.ComponentItem):
"""Access Paths - Contains the definitions of a projects access (search) paths.""" """Access Paths - Contains the definitions of a projects access (search) paths."""
want = 'PATH' want = 'PATH'
class User_Paths(aetools.NProperty): class User_Paths(aetools.NProperty):
"""User Paths - To add an access path for the source files.""" """User Paths - To add an access path for the source files."""
...@@ -814,7 +814,7 @@ class Flash_delay(aetools.NProperty): ...@@ -814,7 +814,7 @@ class Flash_delay(aetools.NProperty):
which = 'ED01' which = 'ED01'
want = 'long' want = 'long'
class Dynamic_scroll(aetools.NProperty): class Dynamic_scroll(aetools.NProperty):
"""Dynamic scroll - Display a windows contents as you move the scroll box.""" """Dynamic scroll - Display a windows contents as you move the scroll box."""
which = 'ED02' which = 'ED02'
want = 'bool' want = 'bool'
class Balance(aetools.NProperty): class Balance(aetools.NProperty):
...@@ -1111,14 +1111,14 @@ class filetype(aetools.NProperty): ...@@ -1111,14 +1111,14 @@ class filetype(aetools.NProperty):
"""filetype - What kind of file is this ?""" """filetype - What kind of file is this ?"""
which = 'SrcT' which = 'SrcT'
want = 'SrcT' want = 'SrcT'
# repeated property name The files name # repeated property name The files name
# repeated property disk_file The files location on disk # repeated property disk_file The files location on disk
class codesize(aetools.NProperty): class codesize(aetools.NProperty):
"""codesize - The size of this files code.""" """codesize - The size of this files code."""
which = 'CSiz' which = 'CSiz'
want = 'long' want = 'long'
class datasize(aetools.NProperty): class datasize(aetools.NProperty):
"""datasize - The size of this files data.""" """datasize - The size of this files data."""
which = 'DSiz' which = 'DSiz'
want = 'long' want = 'long'
class up_to_date(aetools.NProperty): class up_to_date(aetools.NProperty):
...@@ -1172,7 +1172,7 @@ class system_heap(aetools.NProperty): ...@@ -1172,7 +1172,7 @@ class system_heap(aetools.NProperty):
want = 'bool' want = 'bool'
class Target_Settings(aetools.ComponentItem): class Target_Settings(aetools.ComponentItem):
"""Target Settings - Contains the definitions of a projects target.""" """Target Settings - Contains the definitions of a projects target."""
want = 'TARG' want = 'TARG'
class Linker(aetools.NProperty): class Linker(aetools.NProperty):
"""Linker - The name of the current linker.""" """Linker - The name of the current linker."""
...@@ -1624,8 +1624,8 @@ _Enum_SrcT = { ...@@ -1624,8 +1624,8 @@ _Enum_SrcT = {
_Enum_PPrm = { _Enum_PPrm = {
'absolute' : 'Abso', # An absolute path name, including volume name. 'absolute' : 'Abso', # An absolute path name, including volume name.
'project_relative' : 'PRel', # A path relative to the current projects folder. 'project_relative' : 'PRel', # A path relative to the current projects folder.
'shell_relative' : 'SRel', # A path relative to the CodeWarrior folder. 'shell_relative' : 'SRel', # A path relative to the CodeWarrior folder.
'system_relative' : 'YRel', # A path relative to the system folder 'system_relative' : 'YRel', # A path relative to the system folder
} }
......
...@@ -21,7 +21,7 @@ class Standard_Suite: ...@@ -21,7 +21,7 @@ class Standard_Suite:
Required argument: the object class about which information is requested Required argument: the object class about which information is requested
Keyword argument _in: the human language and script system in which to return information Keyword argument _in: the human language and script system in which to return information
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the object¹s properties and elements Returns: a record containing the objectÕs properties and elements
""" """
_code = 'core' _code = 'core'
_subcode = 'qobj' _subcode = 'qobj'
...@@ -615,11 +615,11 @@ class _3d_(aetools.NComparison): ...@@ -615,11 +615,11 @@ class _3d_(aetools.NComparison):
class _3e_(aetools.NComparison): class _3e_(aetools.NComparison):
"""> - Greater than""" """> - Greater than"""
class _b3_(aetools.NComparison): class _b3_(aetools.NComparison):
"""„ - Greater than or equal to""" """³ - Greater than or equal to"""
class _3c_(aetools.NComparison): class _3c_(aetools.NComparison):
"""< - Less than""" """< - Less than"""
class _b2_(aetools.NComparison): class _b2_(aetools.NComparison):
"""¾ - Less than or equal to""" """² - Less than or equal to"""
_Enum_savo = { _Enum_savo = {
'yes' : 'yes ', # Save objects now 'yes' : 'yes ', # Save objects now
'no' : 'no ', # Do not save objects 'no' : 'no ', # Do not save objects
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
Level 1, version 1 Level 1, version 1
Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.01 Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.01
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
......
"""Suite WorldWideWeb suite, as defined in Spyglass spec.: """Suite WorldWideWeb suite, as defined in Spyglass spec.:
Level 1, version 1 Level 1, version 1
Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.01 Generated from flap:Programma's:Netscape Navigator Folder:Netscape Navigator 3.01
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -212,7 +212,7 @@ class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_: ...@@ -212,7 +212,7 @@ class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_:
return _arguments['----'] return _arguments['----']
def register_URL_echo(self, _object=None, _attributes={}, **_arguments): def register_URL_echo(self, _object=None, _attributes={}, **_arguments):
"""register URL echo: Registers the echo application. Each download from now on will be echoed to this application. """register URL echo: Registers the echo application. Each download from now on will be echoed to this application.
Required argument: Application signature Required argument: Application signature
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
...@@ -257,7 +257,7 @@ class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_: ...@@ -257,7 +257,7 @@ class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_:
} }
def register_viewer(self, _object, _attributes={}, **_arguments): def register_viewer(self, _object, _attributes={}, **_arguments):
"""register viewer: Registers an application as a special viewer for this MIME type. The application will be launched with ViewDoc events """register viewer: Registers an application as a special viewer for this MIME type. The application will be launched with ViewDoc events
Required argument: Application sig Required argument: Application sig
Keyword argument MIME_type: MIME type viewer is registering for Keyword argument MIME_type: MIME type viewer is registering for
Keyword argument with_file_type: Mac file type for the downloaded files Keyword argument with_file_type: Mac file type for the downloaded files
...@@ -310,9 +310,9 @@ class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_: ...@@ -310,9 +310,9 @@ class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_:
} }
def register_protocol(self, _object=None, _attributes={}, **_arguments): def register_protocol(self, _object=None, _attributes={}, **_arguments):
"""register protocol: Registers application as a handler for this protocol with a given prefix. The handler will receive OpenURL, or if that fails, GetURL event. """register protocol: Registers application as a handler for this protocol with a given prefix. The handler will receive OpenURL, or if that fails, GetURL event.
Required argument: Application sig Required argument: Application sig
Keyword argument for_protocol: protocol prefix: finger:, file, Keyword argument for_protocol: protocol prefix: finger:, file,
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: TRUE if registration has been successful Returns: TRUE if registration has been successful
""" """
...@@ -336,7 +336,7 @@ class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_: ...@@ -336,7 +336,7 @@ class WorldWideWeb_suite_2c__as_defined_in_Spyglass_spec_2e_:
} }
def unregister_protocol(self, _object=None, _attributes={}, **_arguments): def unregister_protocol(self, _object=None, _attributes={}, **_arguments):
"""unregister protocol: reverses the effects of register protocol """unregister protocol: reverses the effects of register protocol
Required argument: Application sig. Required argument: Application sig.
Keyword argument for_protocol: protocol prefix. If none, unregister for all protocols Keyword argument for_protocol: protocol prefix. If none, unregister for all protocols
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
......
...@@ -396,7 +396,7 @@ class linked(aetools.NProperty): ...@@ -396,7 +396,7 @@ class linked(aetools.NProperty):
which = 'LINK' which = 'LINK'
want = 'bool' want = 'bool'
class link_index(aetools.NProperty): class link_index(aetools.NProperty):
"""link index - the index of the source file in its targets link order (-1 if source file is not in link order) """ """link index - the index of the source file in its targets link order (-1 if source file is not in link order) """
which = 'LIDX' which = 'LIDX'
want = 'long' want = 'long'
class modified_date(aetools.NProperty): class modified_date(aetools.NProperty):
...@@ -424,7 +424,7 @@ class weak_link(aetools.NProperty): ...@@ -424,7 +424,7 @@ class weak_link(aetools.NProperty):
which = 'WEAK' which = 'WEAK'
want = 'bool' want = 'bool'
class init_before(aetools.NProperty): class init_before(aetools.NProperty):
"""init before - is the initialize before flag set for this shared library? """ """init before - is the initialize before flag set for this shared library? """
which = 'INIT' which = 'INIT'
want = 'bool' want = 'bool'
class merge_output(aetools.NProperty): class merge_output(aetools.NProperty):
......
...@@ -791,7 +791,7 @@ class Metrowerks_Shell_Suite_Events: ...@@ -791,7 +791,7 @@ class Metrowerks_Shell_Suite_Events:
class Access_Paths(aetools.ComponentItem): class Access_Paths(aetools.ComponentItem):
"""Access Paths - Contains the definitions of a projects access (search) paths. """ """Access Paths - Contains the definitions of a projects access (search) paths. """
want = 'PATH' want = 'PATH'
class User_Paths(aetools.NProperty): class User_Paths(aetools.NProperty):
"""User Paths - To add an access path for the source files. """ """User Paths - To add an access path for the source files. """
...@@ -994,7 +994,7 @@ class Launch_Apps_on_Open(aetools.NProperty): ...@@ -994,7 +994,7 @@ class Launch_Apps_on_Open(aetools.NProperty):
which = 'Dg03' which = 'Dg03'
want = 'bool' want = 'bool'
class Confirm_Kill(aetools.NProperty): class Confirm_Kill(aetools.NProperty):
"""Confirm Kill - Confirm the killing of the process. """ """Confirm Kill - Confirm the killing of the process. """
which = 'Dg04' which = 'Dg04'
want = 'bool' want = 'bool'
class Stop_at_Main(aetools.NProperty): class Stop_at_Main(aetools.NProperty):
...@@ -1006,7 +1006,7 @@ class Select_Stack_Crawl(aetools.NProperty): ...@@ -1006,7 +1006,7 @@ class Select_Stack_Crawl(aetools.NProperty):
which = 'Dg06' which = 'Dg06'
want = 'bool' want = 'bool'
class Dont_Step_in_Runtime(aetools.NProperty): class Dont_Step_in_Runtime(aetools.NProperty):
"""Dont Step in Runtime - Dont step into runtime code when debugging. """ """Dont Step in Runtime - Dont step into runtime code when debugging. """
which = 'Dg07' which = 'Dg07'
want = 'bool' want = 'bool'
class Auto_Target_Libraries(aetools.NProperty): class Auto_Target_Libraries(aetools.NProperty):
...@@ -1043,7 +1043,7 @@ class Temp_breakpoint_names(aetools.NProperty): ...@@ -1043,7 +1043,7 @@ class Temp_breakpoint_names(aetools.NProperty):
which = 'Dt14' which = 'Dt14'
want = 'ctxt' want = 'ctxt'
class Cache_symbolics(aetools.NProperty): class Cache_symbolics(aetools.NProperty):
"""Cache symbolics - Cache symbolics between runs when executable doesnt change, else release symbolics files after killing process. """ """Cache symbolics - Cache symbolics between runs when executable doesnt change, else release symbolics files after killing process. """
which = 'Dt15' which = 'Dt15'
want = 'bool' want = 'bool'
class Temp_Breakpoint_Type(aetools.NProperty): class Temp_Breakpoint_Type(aetools.NProperty):
...@@ -1071,7 +1071,7 @@ class Flash_Delay(aetools.NProperty): ...@@ -1071,7 +1071,7 @@ class Flash_Delay(aetools.NProperty):
which = 'ED01' which = 'ED01'
want = 'long' want = 'long'
class Dynamic_Scroll(aetools.NProperty): class Dynamic_Scroll(aetools.NProperty):
"""Dynamic Scroll - Display a windows contents as you move the scroll box. """ """Dynamic Scroll - Display a windows contents as you move the scroll box. """
which = 'ED02' which = 'ED02'
want = 'bool' want = 'bool'
class Balance(aetools.NProperty): class Balance(aetools.NProperty):
...@@ -1175,11 +1175,11 @@ class Full_Screen_Zoom(aetools.NProperty): ...@@ -1175,11 +1175,11 @@ class Full_Screen_Zoom(aetools.NProperty):
which = 'EX07' which = 'EX07'
want = 'bool' want = 'bool'
class Recent_Editor_Count(aetools.NProperty): class Recent_Editor_Count(aetools.NProperty):
"""Recent Editor Count - Maximum number of editor documents to show in the Open Recent menu """ """Recent Editor Count - Maximum number of editor documents to show in the Open Recent menu """
which = 'EX16' which = 'EX16'
want = 'shor' want = 'shor'
class Recent_Project_Count(aetools.NProperty): class Recent_Project_Count(aetools.NProperty):
"""Recent Project Count - Maximum number of project documents to show in the Open Recent menu """ """Recent Project Count - Maximum number of project documents to show in the Open Recent menu """
which = 'EX17' which = 'EX17'
want = 'shor' want = 'shor'
class Use_Editor_Extensions(aetools.NProperty): class Use_Editor_Extensions(aetools.NProperty):
...@@ -1294,7 +1294,7 @@ class origin(aetools.NProperty): ...@@ -1294,7 +1294,7 @@ class origin(aetools.NProperty):
which = 'Orig' which = 'Orig'
want = 'PPrm' want = 'PPrm'
class root(aetools.NProperty): class root(aetools.NProperty):
"""root - Name of the root of the relative path. Pre-defined values are Absolute, Project, CodeWarrior, and System. Anything else is a user-defined root. """ """root - Name of the root of the relative path. Pre-defined values are Absolute, Project, CodeWarrior, and System. Anything else is a user-defined root. """
which = 'Root' which = 'Root'
want = 'TEXT' want = 'TEXT'
class recursive(aetools.NProperty): class recursive(aetools.NProperty):
...@@ -1325,14 +1325,14 @@ class filetype(aetools.NProperty): ...@@ -1325,14 +1325,14 @@ class filetype(aetools.NProperty):
"""filetype - What kind of file is this ? """ """filetype - What kind of file is this ? """
which = 'SrcT' which = 'SrcT'
want = 'SrcT' want = 'SrcT'
# repeated property name The files name # repeated property name The files name
# repeated property disk_file The files location on disk # repeated property disk_file The files location on disk
class codesize(aetools.NProperty): class codesize(aetools.NProperty):
"""codesize - The size of this files code. """ """codesize - The size of this files code. """
which = 'CSiz' which = 'CSiz'
want = 'long' want = 'long'
class datasize(aetools.NProperty): class datasize(aetools.NProperty):
"""datasize - The size of this files data. """ """datasize - The size of this files data. """
which = 'DSiz' which = 'DSiz'
want = 'long' want = 'long'
class up_to_date(aetools.NProperty): class up_to_date(aetools.NProperty):
...@@ -1476,7 +1476,7 @@ class String_Color(aetools.NProperty): ...@@ -1476,7 +1476,7 @@ class String_Color(aetools.NProperty):
# repeated property Custom_Color_4 The color for the fourth set of custom keywords. # repeated property Custom_Color_4 The color for the fourth set of custom keywords.
class Target_Settings(aetools.ComponentItem): class Target_Settings(aetools.ComponentItem):
"""Target Settings - Contains the definitions of a projects target. """ """Target Settings - Contains the definitions of a projects target. """
want = 'TARG' want = 'TARG'
class Linker(aetools.NProperty): class Linker(aetools.NProperty):
"""Linker - The name of the current linker. """ """Linker - The name of the current linker. """
...@@ -1495,11 +1495,11 @@ class Target_Name(aetools.NProperty): ...@@ -1495,11 +1495,11 @@ class Target_Name(aetools.NProperty):
which = 'TA10' which = 'TA10'
want = 'TEXT' want = 'TEXT'
class Output_Directory_Path(aetools.NProperty): class Output_Directory_Path(aetools.NProperty):
"""Output Directory Path - Path to output directory. Usage of this property is deprecated. Use the Output Directory Location property instead. """ """Output Directory Path - Path to output directory. Usage of this property is deprecated. Use the Output Directory Location property instead. """
which = 'TA11' which = 'TA11'
want = 'TEXT' want = 'TEXT'
class Output_Directory_Origin(aetools.NProperty): class Output_Directory_Origin(aetools.NProperty):
"""Output Directory Origin - Origin of path to output directory. Usage of this property is deprecated. Use the Output Directory Location property instead. """ """Output Directory Origin - Origin of path to output directory. Usage of this property is deprecated. Use the Output Directory Location property instead. """
which = 'TA12' which = 'TA12'
want = 'PPrm' want = 'PPrm'
class Output_Directory_Location(aetools.NProperty): class Output_Directory_Location(aetools.NProperty):
...@@ -2043,14 +2043,14 @@ _Enum_SrcT = { ...@@ -2043,14 +2043,14 @@ _Enum_SrcT = {
_Enum_PPrm = { _Enum_PPrm = {
'absolute' : 'Abso', # An absolute path name, including volume name. 'absolute' : 'Abso', # An absolute path name, including volume name.
'project_relative' : 'PRel', # A path relative to the current projects folder. 'project_relative' : 'PRel', # A path relative to the current projects folder.
'shell_relative' : 'SRel', # A path relative to the CodeWarrior folder. 'shell_relative' : 'SRel', # A path relative to the CodeWarrior folder.
'system_relative' : 'YRel', # A path relative to the system folder 'system_relative' : 'YRel', # A path relative to the system folder
'root_relative' : 'RRel', # 'root_relative' : 'RRel', #
} }
_Enum_DbSA = { _Enum_DbSA = {
'No_Action' : 'DSA1', # Dont do anything to non-debug windows 'No_Action' : 'DSA1', # Dont do anything to non-debug windows
'Hide_Windows' : 'DSA2', # Hide non-debugging windows 'Hide_Windows' : 'DSA2', # Hide non-debugging windows
'Collapse_Windows' : 'DSA3', # Collapse non-debugging windows 'Collapse_Windows' : 'DSA3', # Collapse non-debugging windows
'Close_Windows' : 'DSA4', # Close non-debugging windows 'Close_Windows' : 'DSA4', # Close non-debugging windows
...@@ -2103,9 +2103,9 @@ _Enum_BXbr = { ...@@ -2103,9 +2103,9 @@ _Enum_BXbr = {
} }
_Enum_STKd = { _Enum_STKd = {
'Absolute_Path' : 'STK0', # The path property is an absolute path to the location of the source tree. 'Absolute_Path' : 'STK0', # The path property is an absolute path to the location of the source tree.
'Registry_Key' : 'STK1', # The path property is the name of a registry key that contains the path to the root. 'Registry_Key' : 'STK1', # The path property is the name of a registry key that contains the path to the root.
'Environment_Variable' : 'STK2', # The path property is the name of an environment variable that contains the path to the root. 'Environment_Variable' : 'STK2', # The path property is the name of an environment variable that contains the path to the root.
} }
_Enum_PthF = { _Enum_PthF = {
......
...@@ -102,7 +102,7 @@ class Standard_Suite_Events: ...@@ -102,7 +102,7 @@ class Standard_Suite_Events:
def make(self, _no_object=None, _attributes={}, **_arguments): def make(self, _no_object=None, _attributes={}, **_arguments):
"""make: make a new element """make: make a new element
Keyword argument new: the class of the new elementkeyword 'new' is optional in AppleScript Keyword argument new: the class of the new elementkeyword 'new' is optional in AppleScript
Keyword argument as: the desired types for the data, in order of preference Keyword argument as: the desired types for the data, in order of preference
Keyword argument at: the location at which to insert the element Keyword argument at: the location at which to insert the element
Keyword argument with_data: the initial data for the element Keyword argument with_data: the initial data for the element
......
...@@ -212,7 +212,7 @@ class folder(aetools.ComponentItem): ...@@ -212,7 +212,7 @@ class folder(aetools.ComponentItem):
folders = folder folders = folder
class desktop_2d_object(aetools.ComponentItem): class desktop_2d_object(aetools.ComponentItem):
"""desktop-object - Desktop-object is the class of the ³desktop² object """ """desktop-object - Desktop-object is the class of the –desktop” object """
want = 'cdsk' want = 'cdsk'
class startup_disk(aetools.NProperty): class startup_disk(aetools.NProperty):
"""startup disk - the startup disk """ """startup disk - the startup disk """
...@@ -242,7 +242,7 @@ class trash(aetools.NProperty): ...@@ -242,7 +242,7 @@ class trash(aetools.NProperty):
# element 'dsut' as ['indx', 'name'] # element 'dsut' as ['indx', 'name']
class trash_2d_object(aetools.ComponentItem): class trash_2d_object(aetools.ComponentItem):
"""trash-object - Trash-object is the class of the ³trash² object """ """trash-object - Trash-object is the class of the –trash” object """
want = 'ctrs' want = 'ctrs'
class warns_before_emptying(aetools.NProperty): class warns_before_emptying(aetools.NProperty):
"""warns before emptying - Display a dialog when emptying the trash? """ """warns before emptying - Display a dialog when emptying the trash? """
......
...@@ -24,7 +24,7 @@ class properties(aetools.NProperty): ...@@ -24,7 +24,7 @@ class properties(aetools.NProperty):
which = 'qpro' which = 'qpro'
want = 'reco' want = 'reco'
class clipboard(aetools.NProperty): class clipboard(aetools.NProperty):
"""clipboard - the Finder¹s clipboard window """ """clipboard - the FinderÕs clipboard window """
which = 'pcli' which = 'pcli'
want = 'obj ' want = 'obj '
class largest_free_block(aetools.NProperty): class largest_free_block(aetools.NProperty):
...@@ -32,11 +32,11 @@ class largest_free_block(aetools.NProperty): ...@@ -32,11 +32,11 @@ class largest_free_block(aetools.NProperty):
which = 'mfre' which = 'mfre'
want = 'long' want = 'long'
class name(aetools.NProperty): class name(aetools.NProperty):
"""name - the Finder¹s name """ """name - the FinderÕs name """
which = 'pnam' which = 'pnam'
want = 'itxt' want = 'itxt'
class visible(aetools.NProperty): class visible(aetools.NProperty):
"""visible - Is the Finder¹s layer visible? """ """visible - Is the FinderÕs layer visible? """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
class frontmost(aetools.NProperty): class frontmost(aetools.NProperty):
...@@ -48,7 +48,7 @@ class selection(aetools.NProperty): ...@@ -48,7 +48,7 @@ class selection(aetools.NProperty):
which = 'sele' which = 'sele'
want = 'obj ' want = 'obj '
class insertion_location(aetools.NProperty): class insertion_location(aetools.NProperty):
"""insertion location - the container in which a new folder would appear if ³New Folder² was selected """ """insertion location - the container in which a new folder would appear if –New Folder” was selected """
which = 'pins' which = 'pins'
want = 'obj ' want = 'obj '
class file_sharing(aetools.NProperty): class file_sharing(aetools.NProperty):
...@@ -68,7 +68,7 @@ class version(aetools.NProperty): ...@@ -68,7 +68,7 @@ class version(aetools.NProperty):
which = 'vers' which = 'vers'
want = 'itxt' want = 'itxt'
class about_this_computer(aetools.NProperty): class about_this_computer(aetools.NProperty):
"""about this computer - the ³About this Computer² dialog and the list of running processes displayed in it """ """about this computer - the –About this Computer” dialog and the list of running processes displayed in it """
which = 'abbx' which = 'abbx'
want = 'obj ' want = 'obj '
class desktop(aetools.NProperty): class desktop(aetools.NProperty):
...@@ -195,7 +195,7 @@ class internet_location(aetools.ComponentItem): ...@@ -195,7 +195,7 @@ class internet_location(aetools.ComponentItem):
internet_locations = internet_location internet_locations = internet_location
class information_window(aetools.ComponentItem): class information_window(aetools.ComponentItem):
"""information window - An information window (opened by ³Get Info²) """ """information window - An information window (opened by –Get Info”) """
want = 'iwnd' want = 'iwnd'
class comment(aetools.NProperty): class comment(aetools.NProperty):
"""comment - the comment """ """comment - the comment """
...@@ -359,7 +359,7 @@ class protected(aetools.NProperty): ...@@ -359,7 +359,7 @@ class protected(aetools.NProperty):
want = 'bool' want = 'bool'
class trash_2d_object(aetools.ComponentItem): class trash_2d_object(aetools.ComponentItem):
"""trash-object - Trash-object is the class of the ³trash² object """ """trash-object - Trash-object is the class of the –trash” object """
want = 'ctrs' want = 'ctrs'
class preferences(aetools.ComponentItem): class preferences(aetools.ComponentItem):
......
...@@ -39,18 +39,18 @@ class stationery(aetools.NProperty): ...@@ -39,18 +39,18 @@ class stationery(aetools.NProperty):
which = 'pspd' which = 'pspd'
want = 'bool' want = 'bool'
class product_version(aetools.NProperty): class product_version(aetools.NProperty):
"""product version - the version of the product (visible at the top of the Get Info window) """ """product version - the version of the product (visible at the top of the Get Info window) """
which = 'ver2' which = 'ver2'
want = 'itxt' want = 'itxt'
class version(aetools.NProperty): class version(aetools.NProperty):
"""version - the version of the file (visible at the bottom of the Get Info window) """ """version - the version of the file (visible at the bottom of the Get Info window) """
which = 'vers' which = 'vers'
want = 'itxt' want = 'itxt'
files = file files = file
class alias_file(aetools.ComponentItem): class alias_file(aetools.ComponentItem):
"""alias file - An alias file (created with Make Alias) """ """alias file - An alias file (created with Make Alias) """
want = 'alia' want = 'alia'
class original_item(aetools.NProperty): class original_item(aetools.NProperty):
"""original item - the original item pointed to by the alias """ """original item - the original item pointed to by the alias """
......
...@@ -145,7 +145,7 @@ class application(aetools.ComponentItem): ...@@ -145,7 +145,7 @@ class application(aetools.ComponentItem):
"""application - The Finder """ """application - The Finder """
want = 'capp' want = 'capp'
class clipboard(aetools.NProperty): class clipboard(aetools.NProperty):
"""clipboard - the Finders clipboard window """ """clipboard - the Finders clipboard window """
which = 'pcli' which = 'pcli'
want = 'obj ' want = 'obj '
class largest_free_block(aetools.NProperty): class largest_free_block(aetools.NProperty):
...@@ -153,11 +153,11 @@ class largest_free_block(aetools.NProperty): ...@@ -153,11 +153,11 @@ class largest_free_block(aetools.NProperty):
which = 'mfre' which = 'mfre'
want = 'long' want = 'long'
class name(aetools.NProperty): class name(aetools.NProperty):
"""name - the Finders name """ """name - the Finders name """
which = 'pnam' which = 'pnam'
want = 'itxt' want = 'itxt'
class visible(aetools.NProperty): class visible(aetools.NProperty):
"""visible - Is the Finders layer visible? """ """visible - Is the Finders layer visible? """
which = 'pvis' which = 'pvis'
want = 'bool' want = 'bool'
class frontmost(aetools.NProperty): class frontmost(aetools.NProperty):
...@@ -169,7 +169,7 @@ class selection(aetools.NProperty): ...@@ -169,7 +169,7 @@ class selection(aetools.NProperty):
which = 'sele' which = 'sele'
want = 'obj ' want = 'obj '
class insertion_location(aetools.NProperty): class insertion_location(aetools.NProperty):
"""insertion location - the container in which a new folder would appear if New Folder was selected """ """insertion location - the container in which a new folder would appear if New Folder was selected """
which = 'pins' which = 'pins'
want = 'obj ' want = 'obj '
class file_sharing(aetools.NProperty): class file_sharing(aetools.NProperty):
...@@ -189,7 +189,7 @@ class version(aetools.NProperty): ...@@ -189,7 +189,7 @@ class version(aetools.NProperty):
which = 'vers' which = 'vers'
want = 'itxt' want = 'itxt'
class about_this_computer(aetools.NProperty): class about_this_computer(aetools.NProperty):
"""about this computer - the About this Computer dialog and the list of running processes displayed in it """ """about this computer - the About this Computer dialog and the list of running processes displayed in it """
which = 'abbx' which = 'abbx'
want = 'obj ' want = 'obj '
class desktop(aetools.NProperty): class desktop(aetools.NProperty):
...@@ -235,35 +235,35 @@ class system_folder(aetools.NProperty): ...@@ -235,35 +235,35 @@ class system_folder(aetools.NProperty):
which = 'macs' which = 'macs'
want = 'obj ' want = 'obj '
class apple_menu_items_folder(aetools.NProperty): class apple_menu_items_folder(aetools.NProperty):
"""apple menu items folder - the special folder named Apple Menu Items, the contents of which appear in the Apple menu """ """apple menu items folder - the special folder named Apple Menu Items, the contents of which appear in the Apple menu """
which = 'amnu' which = 'amnu'
want = 'obj ' want = 'obj '
class control_panels_folder(aetools.NProperty): class control_panels_folder(aetools.NProperty):
"""control panels folder - the special folder named Control Panels """ """control panels folder - the special folder named Control Panels """
which = 'ctrl' which = 'ctrl'
want = 'obj ' want = 'obj '
class extensions_folder(aetools.NProperty): class extensions_folder(aetools.NProperty):
"""extensions folder - the special folder named Extensions """ """extensions folder - the special folder named Extensions """
which = 'extn' which = 'extn'
want = 'obj ' want = 'obj '
class fonts_folder(aetools.NProperty): class fonts_folder(aetools.NProperty):
"""fonts folder - the special folder named Fonts """ """fonts folder - the special folder named Fonts """
which = 'font' which = 'font'
want = 'obj ' want = 'obj '
class preferences_folder(aetools.NProperty): class preferences_folder(aetools.NProperty):
"""preferences folder - the special folder named Preferences """ """preferences folder - the special folder named Preferences """
which = 'pref' which = 'pref'
want = 'obj ' want = 'obj '
class shutdown_items_folder(aetools.NProperty): class shutdown_items_folder(aetools.NProperty):
"""shutdown items folder - the special folder named Shutdown Items """ """shutdown items folder - the special folder named Shutdown Items """
which = 'shdf' which = 'shdf'
want = 'obj ' want = 'obj '
class startup_items_folder(aetools.NProperty): class startup_items_folder(aetools.NProperty):
"""startup items folder - the special folder named Startup Items """ """startup items folder - the special folder named Startup Items """
which = 'strt' which = 'strt'
want = 'obj ' want = 'obj '
class temporary_items_folder(aetools.NProperty): class temporary_items_folder(aetools.NProperty):
"""temporary items folder - the special folder named Temporary Items (invisible) """ """temporary items folder - the special folder named Temporary Items (invisible) """
which = 'temp' which = 'temp'
want = 'obj ' want = 'obj '
import Earlier_terms import Earlier_terms
......
...@@ -79,7 +79,7 @@ class Finder_items_Events: ...@@ -79,7 +79,7 @@ class Finder_items_Events:
def empty(self, _object=None, _attributes={}, **_arguments): def empty(self, _object=None, _attributes={}, **_arguments):
"""empty: Empty the trash """empty: Empty the trash
Required argument: ³empty² and ³empty trash² both do the same thing Required argument: –empty” and –empty trash” both do the same thing
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'fndr' _code = 'fndr'
...@@ -227,7 +227,7 @@ class description(aetools.NProperty): ...@@ -227,7 +227,7 @@ class description(aetools.NProperty):
which = 'dscr' which = 'dscr'
want = 'itxt' want = 'itxt'
class comment(aetools.NProperty): class comment(aetools.NProperty):
"""comment - the comment of the item, displayed in the ³Get Info² window """ """comment - the comment of the item, displayed in the –Get Info” window """
which = 'comt' which = 'comt'
want = 'itxt' want = 'itxt'
class size(aetools.NProperty): class size(aetools.NProperty):
......
...@@ -59,7 +59,7 @@ class locked_obsolete(aetools.NProperty): ...@@ -59,7 +59,7 @@ class locked_obsolete(aetools.NProperty):
want = 'bool' want = 'bool'
class information_window(aetools.ComponentItem): class information_window(aetools.ComponentItem):
"""information window - An information window (opened by Get Info) """ """information window - An information window (opened by Get Info) """
want = 'iwnd' want = 'iwnd'
class creation_date_obsolete(aetools.NProperty): class creation_date_obsolete(aetools.NProperty):
"""creation date obsolete - the date on which the item was created (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """ """creation date obsolete - the date on which the item was created (DEPRECATED - for use with scripts compiled before Finder 8.0. Will be removed in the next release) """
...@@ -87,7 +87,7 @@ class sharing_window(aetools.NProperty): ...@@ -87,7 +87,7 @@ class sharing_window(aetools.NProperty):
want = 'obj ' want = 'obj '
class sharing_window(aetools.ComponentItem): class sharing_window(aetools.ComponentItem):
"""sharing window - A sharing window (opened by Sharing) """ """sharing window - A sharing window (opened by Sharing) """
want = 'swnd' want = 'swnd'
class sharable_container(aetools.NProperty): class sharable_container(aetools.NProperty):
"""sharable container - the sharable container from which the window was opened """ """sharable container - the sharable container from which the window was opened """
......
...@@ -163,7 +163,7 @@ class small_4_bit_icon(aetools.NProperty): ...@@ -163,7 +163,7 @@ class small_4_bit_icon(aetools.NProperty):
want = 'ics4' want = 'ics4'
class alias_list(aetools.ComponentItem): class alias_list(aetools.ComponentItem):
"""alias list - A list of aliases. Use as alias list when a list of aliases is needed (instead of a list of file system item references). """ """alias list - A list of aliases. Use as alias list when a list of aliases is needed (instead of a list of file system item references). """
want = 'alst' want = 'alst'
preferences._propdict = { preferences._propdict = {
'window' : window, 'window' : window,
......
...@@ -162,7 +162,7 @@ class uses_relative_dates(aetools.NProperty): ...@@ -162,7 +162,7 @@ class uses_relative_dates(aetools.NProperty):
container_windows = container_window container_windows = container_window
class information_window(aetools.ComponentItem): class information_window(aetools.ComponentItem):
"""information window - An information window (opened by ³Get Info²) """ """information window - An information window (opened by –Get Info”) """
want = 'iwnd' want = 'iwnd'
class current_panel(aetools.NProperty): class current_panel(aetools.NProperty):
"""current panel - the current panel in the information window """ """current panel - the current panel in the information window """
...@@ -217,11 +217,11 @@ class warns_before_emptying(aetools.NProperty): ...@@ -217,11 +217,11 @@ class warns_before_emptying(aetools.NProperty):
which = 'warn' which = 'warn'
want = 'bool' want = 'bool'
class product_version(aetools.NProperty): class product_version(aetools.NProperty):
"""product version - the version of the product (visible at the top of the ³Get Info² window) """ """product version - the version of the product (visible at the top of the –Get Info” window) """
which = 'ver2' which = 'ver2'
want = 'itxt' want = 'itxt'
class version(aetools.NProperty): class version(aetools.NProperty):
"""version - the version of the file (visible at the bottom of the ³Get Info² window) """ """version - the version of the file (visible at the bottom of the –Get Info” window) """
which = 'vers' which = 'vers'
want = 'itxt' want = 'itxt'
...@@ -238,7 +238,7 @@ class clipping_window(aetools.ComponentItem): ...@@ -238,7 +238,7 @@ class clipping_window(aetools.ComponentItem):
clipping_windows = clipping_window clipping_windows = clipping_window
class content_space(aetools.ComponentItem): class content_space(aetools.ComponentItem):
"""content space - All windows, including the desktop window (³Window² does not include the desktop window) """ """content space - All windows, including the desktop window (–Window” does not include the desktop window) """
want = 'dwnd' want = 'dwnd'
content_spaces = content_space content_spaces = content_space
......
"""Suite Mozilla suite: Experimental Mozilla suite """Suite Mozilla suite: Experimental Mozilla suite
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -20,7 +20,7 @@ class Mozilla_suite_Events: ...@@ -20,7 +20,7 @@ class Mozilla_suite_Events:
def Read_help_file(self, _object, _attributes={}, **_arguments): def Read_help_file(self, _object, _attributes={}, **_arguments):
"""Read help file: Reads in the help file (file should be in the help file format) """Read help file: Reads in the help file (file should be in the help file format)
Required argument: undocumented, typecode 'alis' Required argument: undocumented, typecode 'alis'
Keyword argument with_index: Index to the help file. Defaults to DEFAULT) Keyword argument with_index: Index to the help file. Defaults to DEFAULT)
Keyword argument search_text: Optional text to search for Keyword argument search_text: Optional text to search for
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
...@@ -88,7 +88,7 @@ class Mozilla_suite_Events: ...@@ -88,7 +88,7 @@ class Mozilla_suite_Events:
def Get_workingURL(self, _no_object=None, _attributes={}, **_arguments): def Get_workingURL(self, _no_object=None, _attributes={}, **_arguments):
"""Get workingURL: Get the path to the running application in URL format. This will allow a script to construct a relative URL """Get workingURL: Get the path to the running application in URL format. This will allow a script to construct a relative URL
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Will return text of the from FILE://foo/applicationname Returns: Will return text of the from FILE://foo/applicationname
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'wurl' _subcode = 'wurl'
...@@ -127,7 +127,7 @@ class Mozilla_suite_Events: ...@@ -127,7 +127,7 @@ class Mozilla_suite_Events:
def Get_Import_Data(self, _no_object=None, _attributes={}, **_arguments): def Get_Import_Data(self, _no_object=None, _attributes={}, **_arguments):
"""Get Import Data: Returns a structure containing information that is of use to an external module in importing data from an external mail application into Communicator. """Get Import Data: Returns a structure containing information that is of use to an external module in importing data from an external mail application into Communicator.
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: vRefNum and dirID of profile folder (2+4 bytes), vRefNum and DirID of the local mail folder (2+4 bytes), window type of front window (0 if none, Brwz browser, Addr addressbook, Mesg messenger, etc., 4 bytes) Returns: vRefNum and dirID of profile folder (2+4 bytes), vRefNum and DirID of the local mail folder (2+4 bytes), window type of front window (0 if none, Brwz browser, Addr addressbook, Mesg messenger, etc., 4 bytes)
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'Impt' _subcode = 'Impt'
...@@ -147,7 +147,7 @@ class Mozilla_suite_Events: ...@@ -147,7 +147,7 @@ class Mozilla_suite_Events:
def Get_Profile_Name(self, _no_object=None, _attributes={}, **_arguments): def Get_Profile_Name(self, _no_object=None, _attributes={}, **_arguments):
"""Get Profile Name: Get the current User Profile """Get Profile Name: Get the current User Profile
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: Name of the current profile, like Joe Bloggs. This is the name of the profile folder in the Netscape Users folder. Returns: Name of the current profile, like Joe Bloggs. This is the name of the profile folder in the Netscape Users folder.
""" """
_code = 'MOSS' _code = 'MOSS'
_subcode = 'upro' _subcode = 'upro'
......
"""Suite PowerPlant: """Suite PowerPlant:
Level 0, version 0 Level 0, version 0
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -42,7 +42,7 @@ class PowerPlant_Events: ...@@ -42,7 +42,7 @@ class PowerPlant_Events:
} }
def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments): def SwitchTellTarget(self, _no_object=None, _attributes={}, **_arguments):
"""SwitchTellTarget: Makes an object the focus of AppleEvents """SwitchTellTarget: Makes an object the focus of AppleEvents
Keyword argument to: reference to new focus of AppleEvents Keyword argument to: reference to new focus of AppleEvents
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
......
"""Suite Required suite: """Suite Required suite:
Level 0, version 0 Level 0, version 0
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
......
"""Suite Standard Suite: Common terms for most applications """Suite Standard Suite: Common terms for most applications
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -79,7 +79,7 @@ class Standard_Suite_Events: ...@@ -79,7 +79,7 @@ class Standard_Suite_Events:
} }
def set(self, _object, _attributes={}, **_arguments): def set(self, _object, _attributes={}, **_arguments):
"""set: Set an objects data """set: Set an objects data
Required argument: the object to change Required argument: the object to change
Keyword argument to: the new value Keyword argument to: the new value
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
...@@ -104,7 +104,7 @@ class application(aetools.ComponentItem): ...@@ -104,7 +104,7 @@ class application(aetools.ComponentItem):
"""application - An application program """ """application - An application program """
want = 'capp' want = 'capp'
class alert_application(aetools.NProperty): class alert_application(aetools.NProperty):
"""alert application - Most of the alerts will be sent to this application using yet unspecified AE interface. We need a few alert boxes: alert, confirm and notify. Any ideas on how to design this event? mailto:atotic@netscape.com. Id like to conform to the standard. """ """alert application - Most of the alerts will be sent to this application using yet unspecified AE interface. We need a few alert boxes: alert, confirm and notify. Any ideas on how to design this event? mailto:atotic@netscape.com. Id like to conform to the standard. """
which = 'ALAP' which = 'ALAP'
want = 'type' want = 'type'
class kiosk_mode(aetools.NProperty): class kiosk_mode(aetools.NProperty):
...@@ -169,7 +169,7 @@ class URL(aetools.NProperty): ...@@ -169,7 +169,7 @@ class URL(aetools.NProperty):
which = 'curl' which = 'curl'
want = 'TEXT' want = 'TEXT'
class unique_ID(aetools.NProperty): class unique_ID(aetools.NProperty):
"""unique ID - Windows unique ID (a bridge between WWW! suite window ids and standard AE windows) """ """unique ID - Windows unique ID (a bridge between WWW! suite window ids and standard AE windows) """
which = 'wiid' which = 'wiid'
want = 'long' want = 'long'
class busy(aetools.NProperty): class busy(aetools.NProperty):
......
"""Suite Standard URL suite: Mac URL standard, supported by many apps """Suite Standard URL suite: Mac URL standard, supported by many apps
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -22,6 +23,7 @@ class Standard_URL_suite_Events: ...@@ -22,6 +23,7 @@ class Standard_URL_suite_Events:
def GetURL(self, _object, _attributes={}, **_arguments): def GetURL(self, _object, _attributes={}, **_arguments):
"""GetURL: Loads the URL (optionally to disk) """GetURL: Loads the URL (optionally to disk)
Required argument: The url Required argument: The url
Keyword argument to: file the URL should be loaded into Keyword argument to: file the URL should be loaded into
Keyword argument inside: Window the URL should be loaded to Keyword argument inside: Window the URL should be loaded to
......
"""Suite Text: """Suite Text:
Level 0, version 0 Level 0, version 0
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -42,7 +42,7 @@ class justbehind(aetools.NProperty): ...@@ -42,7 +42,7 @@ class justbehind(aetools.NProperty):
# element 'stys' as ['indx', 'name'] # element 'stys' as ['indx', 'name']
class styleset(aetools.ComponentItem): class styleset(aetools.ComponentItem):
"""styleset - A style set that may be used repeatedly in text objects. """ """styleset - A style set that may be used repeatedly in text objects. """
want = 'stys' want = 'stys'
class name(aetools.NProperty): class name(aetools.NProperty):
"""name - style name """ """name - style name """
......
"""Suite WorldWideWeb suite, as defined in Spyglass spec.: """Suite WorldWideWeb suite, as defined in Spyglass spec.:
Level 1, version 1 Level 1, version 1
Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator
AETE/AEUT resource version 1/0, language 0, script 0 AETE/AEUT resource version 1/0, language 0, script 0
""" """
...@@ -212,7 +212,7 @@ class WorldWideWeb_suite_Events: ...@@ -212,7 +212,7 @@ class WorldWideWeb_suite_Events:
return _arguments['----'] return _arguments['----']
def register_URL_echo(self, _object=None, _attributes={}, **_arguments): def register_URL_echo(self, _object=None, _attributes={}, **_arguments):
"""register URL echo: Registers the echo application. Each download from now on will be echoed to this application. """register URL echo: Registers the echo application. Each download from now on will be echoed to this application.
Required argument: Application signature Required argument: Application signature
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
...@@ -257,7 +257,7 @@ class WorldWideWeb_suite_Events: ...@@ -257,7 +257,7 @@ class WorldWideWeb_suite_Events:
} }
def register_viewer(self, _object, _attributes={}, **_arguments): def register_viewer(self, _object, _attributes={}, **_arguments):
"""register viewer: Registers an application as a special viewer for this MIME type. The application will be launched with ViewDoc events """register viewer: Registers an application as a special viewer for this MIME type. The application will be launched with ViewDoc events
Required argument: Application sig Required argument: Application sig
Keyword argument MIME_type: MIME type viewer is registering for Keyword argument MIME_type: MIME type viewer is registering for
Keyword argument with_file_type: Mac file type for the downloaded files Keyword argument with_file_type: Mac file type for the downloaded files
...@@ -310,9 +310,9 @@ class WorldWideWeb_suite_Events: ...@@ -310,9 +310,9 @@ class WorldWideWeb_suite_Events:
} }
def register_protocol(self, _object=None, _attributes={}, **_arguments): def register_protocol(self, _object=None, _attributes={}, **_arguments):
"""register protocol: Registers application as a handler for this protocol with a given prefix. The handler will receive OpenURL, or if that fails, GetURL event. """register protocol: Registers application as a handler for this protocol with a given prefix. The handler will receive OpenURL, or if that fails, GetURL event.
Required argument: Application sig Required argument: Application sig
Keyword argument for_protocol: protocol prefix: finger:, file, Keyword argument for_protocol: protocol prefix: finger:, file,
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: TRUE if registration has been successful Returns: TRUE if registration has been successful
""" """
...@@ -336,7 +336,7 @@ class WorldWideWeb_suite_Events: ...@@ -336,7 +336,7 @@ class WorldWideWeb_suite_Events:
} }
def unregister_protocol(self, _object=None, _attributes={}, **_arguments): def unregister_protocol(self, _object=None, _attributes={}, **_arguments):
"""unregister protocol: reverses the effects of register protocol """unregister protocol: reverses the effects of register protocol
Required argument: Application sig. Required argument: Application sig.
Keyword argument for_protocol: protocol prefix. If none, unregister for all protocols Keyword argument for_protocol: protocol prefix. If none, unregister for all protocols
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
......
""" """
Package generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator Package generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator-map:Netscape Communicator
Resource aete resid 0 Resource aete resid 0
""" """
import aetools import aetools
......
...@@ -129,7 +129,7 @@ class AppleScript_Suite_Events: ...@@ -129,7 +129,7 @@ class AppleScript_Suite_Events:
return _arguments['----'] return _arguments['----']
def tell(self, _no_object=None, _attributes={}, **_arguments): def tell(self, _no_object=None, _attributes={}, **_arguments):
"""tell: Record or log a tell statement """tell: Record or log a tell statement
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'ascr' _code = 'ascr'
...@@ -148,7 +148,7 @@ class AppleScript_Suite_Events: ...@@ -148,7 +148,7 @@ class AppleScript_Suite_Events:
return _arguments['----'] return _arguments['----']
def end_tell(self, _no_object=None, _attributes={}, **_arguments): def end_tell(self, _no_object=None, _attributes={}, **_arguments):
"""end tell: Record or log an end tell statement """end tell: Record or log an end tell statement
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
""" """
_code = 'ascr' _code = 'ascr'
...@@ -229,7 +229,7 @@ class AppleScript_Suite_Events: ...@@ -229,7 +229,7 @@ class AppleScript_Suite_Events:
} }
def Call_a5_subroutine(self, _object=None, _attributes={}, **_arguments): def Call_a5_subroutine(self, _object=None, _attributes={}, **_arguments):
"""Callsubroutine: A subroutine call """Callsubroutine: A subroutine call
Required argument: anything Required argument: anything
Keyword argument at: a preposition Keyword argument at: a preposition
Keyword argument _from: a preposition Keyword argument _from: a preposition
...@@ -299,7 +299,7 @@ class AppleScript_Suite_Events: ...@@ -299,7 +299,7 @@ class AppleScript_Suite_Events:
return _arguments['----'] return _arguments['----']
def _ad_(self, _object, _attributes={}, **_arguments): def _ad_(self, _object, _attributes={}, **_arguments):
""": Inequality """: Inequality
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
...@@ -488,7 +488,7 @@ class AppleScript_Suite_Events: ...@@ -488,7 +488,7 @@ class AppleScript_Suite_Events:
return _arguments['----'] return _arguments['----']
def _b3_(self, _object, _attributes={}, **_arguments): def _b3_(self, _object, _attributes={}, **_arguments):
""": Greater than or equal to """: Greater than or equal to
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
...@@ -530,7 +530,7 @@ class AppleScript_Suite_Events: ...@@ -530,7 +530,7 @@ class AppleScript_Suite_Events:
return _arguments['----'] return _arguments['----']
def _b2_(self, _object, _attributes={}, **_arguments): def _b2_(self, _object, _attributes={}, **_arguments):
""": Less than or equal to """: Less than or equal to
Required argument: an AE object reference Required argument: an AE object reference
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: anything Returns: anything
...@@ -820,7 +820,7 @@ class name(aetools.NProperty): ...@@ -820,7 +820,7 @@ class name(aetools.NProperty):
which = 'pnam' which = 'pnam'
want = 'TEXT' want = 'TEXT'
class parent(aetools.NProperty): class parent(aetools.NProperty):
"""parent - its parent, i.e. the script that will handle events that this script doesnt """ """parent - its parent, i.e. the script that will handle events that this script doesnt """
which = 'pare' which = 'pare'
want = 'scpt' want = 'scpt'
......
...@@ -429,7 +429,7 @@ class Standard_Suite_Events: ...@@ -429,7 +429,7 @@ class Standard_Suite_Events:
Required argument: the object class about which information is requested Required argument: the object class about which information is requested
Keyword argument _in: the human language and script system in which to return information Keyword argument _in: the human language and script system in which to return information
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
Returns: a record containing the object¹s properties and elements Returns: a record containing the objectÕs properties and elements
""" """
_code = 'core' _code = 'core'
_subcode = 'qobj' _subcode = 'qobj'
...@@ -459,7 +459,7 @@ class frontmost(aetools.NProperty): ...@@ -459,7 +459,7 @@ class frontmost(aetools.NProperty):
which = 'pisf' which = 'pisf'
want = 'bool' want = 'bool'
class selection(aetools.NProperty): class selection(aetools.NProperty):
"""selection - the selection visible to the user. Use the Œselect¹ command to set a new selection; use Œcontents of selection¹ to get or change information in the document. """ """selection - the selection visible to the user. Use the •selectÕ command to set a new selection; use •contents of selectionÕ to get or change information in the document. """
which = 'sele' which = 'sele'
want = 'csel' want = 'csel'
class clipboard(aetools.NProperty): class clipboard(aetools.NProperty):
...@@ -500,10 +500,10 @@ class alias(aetools.ComponentItem): ...@@ -500,10 +500,10 @@ class alias(aetools.ComponentItem):
aliases = alias aliases = alias
class selection_2d_object(aetools.ComponentItem): class selection_2d_object(aetools.ComponentItem):
"""selection-object - A way to refer to the state of the current of the selection. Use the Œselect¹ command to make a new selection. """ """selection-object - A way to refer to the state of the current of the selection. Use the •selectÕ command to make a new selection. """
want = 'csel' want = 'csel'
class contents(aetools.NProperty): class contents(aetools.NProperty):
"""contents - the information currently selected. Use Œcontents of selection¹ to get or change information in a document. """ """contents - the information currently selected. Use •contents of selectionÕ to get or change information in a document. """
which = 'pcnt' which = 'pcnt'
want = '****' want = '****'
...@@ -615,11 +615,11 @@ class _3d_(aetools.NComparison): ...@@ -615,11 +615,11 @@ class _3d_(aetools.NComparison):
class _3e_(aetools.NComparison): class _3e_(aetools.NComparison):
"""> - Greater than """ """> - Greater than """
class _b3_(aetools.NComparison): class _b3_(aetools.NComparison):
"""„ - Greater than or equal to """ """³ - Greater than or equal to """
class _3c_(aetools.NComparison): class _3c_(aetools.NComparison):
"""< - Less than """ """< - Less than """
class _b2_(aetools.NComparison): class _b2_(aetools.NComparison):
"""¾ - Less than or equal to """ """² - Less than or equal to """
_Enum_savo = { _Enum_savo = {
'yes' : 'yes ', # Save objects now 'yes' : 'yes ', # Save objects now
'no' : 'no ', # Do not save objects 'no' : 'no ', # Do not save objects
......
...@@ -70,7 +70,7 @@ table._propdict = { ...@@ -70,7 +70,7 @@ table._propdict = {
table._elemdict = { table._elemdict = {
} }
_Enum_prtn = { _Enum_prtn = {
'read_only' : 'nmod', # Cant change values or formulas 'read_only' : 'nmod', # Cant change values or formulas
'formulas_protected' : 'fpro', # Can changes values but not formulas 'formulas_protected' : 'fpro', # Can changes values but not formulas
'read_2f_write' : 'modf', # Can change values and formulas 'read_2f_write' : 'modf', # Can change values and formulas
} }
......
...@@ -75,7 +75,7 @@ class uniform_styles(aetools.NProperty): ...@@ -75,7 +75,7 @@ class uniform_styles(aetools.NProperty):
# element 'cwor' as ['indx'] # element 'cwor' as ['indx']
class text_flow(aetools.ComponentItem): class text_flow(aetools.ComponentItem):
"""text flow - A contiguous block of text. Page layout applications call this a story. """ """text flow - A contiguous block of text. Page layout applications call this a story. """
want = 'cflo' want = 'cflo'
# repeated property _3c_inheritance_3e_ inherits some of its properties from this class # repeated property _3c_inheritance_3e_ inherits some of its properties from this class
class name(aetools.NProperty): class name(aetools.NProperty):
......
...@@ -704,7 +704,7 @@ kFAEditCommand = FOUR_CHAR_CODE('edfa') ...@@ -704,7 +704,7 @@ kFAEditCommand = FOUR_CHAR_CODE('edfa')
kFAFileParam = FOUR_CHAR_CODE('faal') kFAFileParam = FOUR_CHAR_CODE('faal')
kFAIndexParam = FOUR_CHAR_CODE('indx') kFAIndexParam = FOUR_CHAR_CODE('indx')
kAEInternetSuite = FOUR_CHAR_CODE('gurl') kAEInternetSuite = FOUR_CHAR_CODE('gurl')
kAEISWebStarSuite = FOUR_CHAR_CODE('WWW') kAEISWebStarSuite = FOUR_CHAR_CODE('WWW')
kAEISGetURL = FOUR_CHAR_CODE('gurl') kAEISGetURL = FOUR_CHAR_CODE('gurl')
KAEISHandleCGI = FOUR_CHAR_CODE('sdoc') KAEISHandleCGI = FOUR_CHAR_CODE('sdoc')
cURL = FOUR_CHAR_CODE('url ') cURL = FOUR_CHAR_CODE('url ')
......
...@@ -277,35 +277,35 @@ kGuestUserIcon = FOUR_CHAR_CODE('gusr') ...@@ -277,35 +277,35 @@ kGuestUserIcon = FOUR_CHAR_CODE('gusr')
kUserIcon = FOUR_CHAR_CODE('user') kUserIcon = FOUR_CHAR_CODE('user')
kOwnerIcon = FOUR_CHAR_CODE('susr') kOwnerIcon = FOUR_CHAR_CODE('susr')
kGroupIcon = FOUR_CHAR_CODE('grup') kGroupIcon = FOUR_CHAR_CODE('grup')
kAppleExtrasFolderIcon = FOUR_CHAR_CODE('aex') kAppleExtrasFolderIcon = FOUR_CHAR_CODE('aex')
kAppleMenuFolderIcon = FOUR_CHAR_CODE('amnu') kAppleMenuFolderIcon = FOUR_CHAR_CODE('amnu')
kApplicationsFolderIcon = FOUR_CHAR_CODE('apps') kApplicationsFolderIcon = FOUR_CHAR_CODE('apps')
kApplicationSupportFolderIcon = FOUR_CHAR_CODE('asup') kApplicationSupportFolderIcon = FOUR_CHAR_CODE('asup')
kAssistantsFolderIcon = FOUR_CHAR_CODE('ast') kAssistantsFolderIcon = FOUR_CHAR_CODE('ast')
kContextualMenuItemsFolderIcon = FOUR_CHAR_CODE('cmnu') kContextualMenuItemsFolderIcon = FOUR_CHAR_CODE('cmnu')
kControlPanelDisabledFolderIcon = FOUR_CHAR_CODE('ctrD') kControlPanelDisabledFolderIcon = FOUR_CHAR_CODE('ctrD')
kControlPanelFolderIcon = FOUR_CHAR_CODE('ctrl') kControlPanelFolderIcon = FOUR_CHAR_CODE('ctrl')
kControlStripModulesFolderIcon = FOUR_CHAR_CODE('sdv') kControlStripModulesFolderIcon = FOUR_CHAR_CODE('sdv')
kDocumentsFolderIcon = FOUR_CHAR_CODE('docs') kDocumentsFolderIcon = FOUR_CHAR_CODE('docs')
kExtensionsDisabledFolderIcon = FOUR_CHAR_CODE('extD') kExtensionsDisabledFolderIcon = FOUR_CHAR_CODE('extD')
kExtensionsFolderIcon = FOUR_CHAR_CODE('extn') kExtensionsFolderIcon = FOUR_CHAR_CODE('extn')
kFavoritesFolderIcon = FOUR_CHAR_CODE('favs') kFavoritesFolderIcon = FOUR_CHAR_CODE('favs')
kFontsFolderIcon = FOUR_CHAR_CODE('font') kFontsFolderIcon = FOUR_CHAR_CODE('font')
kHelpFolderIcon = FOUR_CHAR_CODE('hlp') kHelpFolderIcon = FOUR_CHAR_CODE('hlp')
kInternetFolderIcon = FOUR_CHAR_CODE('int') kInternetFolderIcon = FOUR_CHAR_CODE('int')
kInternetPlugInFolderIcon = FOUR_CHAR_CODE('net') kInternetPlugInFolderIcon = FOUR_CHAR_CODE('net')
kLocalesFolderIcon = FOUR_CHAR_CODE('loc') kLocalesFolderIcon = FOUR_CHAR_CODE('loc')
kMacOSReadMeFolderIcon = FOUR_CHAR_CODE('mor') kMacOSReadMeFolderIcon = FOUR_CHAR_CODE('mor')
kPreferencesFolderIcon = FOUR_CHAR_CODE('prf') kPreferencesFolderIcon = FOUR_CHAR_CODE('prf')
kPrinterDescriptionFolderIcon = FOUR_CHAR_CODE('ppdf') kPrinterDescriptionFolderIcon = FOUR_CHAR_CODE('ppdf')
kPrinterDriverFolderIcon = FOUR_CHAR_CODE('prd') kPrinterDriverFolderIcon = FOUR_CHAR_CODE('prd')
kPrintMonitorFolderIcon = FOUR_CHAR_CODE('prnt') kPrintMonitorFolderIcon = FOUR_CHAR_CODE('prnt')
kRecentApplicationsFolderIcon = FOUR_CHAR_CODE('rapp') kRecentApplicationsFolderIcon = FOUR_CHAR_CODE('rapp')
kRecentDocumentsFolderIcon = FOUR_CHAR_CODE('rdoc') kRecentDocumentsFolderIcon = FOUR_CHAR_CODE('rdoc')
kRecentServersFolderIcon = FOUR_CHAR_CODE('rsrv') kRecentServersFolderIcon = FOUR_CHAR_CODE('rsrv')
kScriptingAdditionsFolderIcon = FOUR_CHAR_CODE('scr') kScriptingAdditionsFolderIcon = FOUR_CHAR_CODE('scr')
kSharedLibrariesFolderIcon = FOUR_CHAR_CODE('lib') kSharedLibrariesFolderIcon = FOUR_CHAR_CODE('lib')
kScriptsFolderIcon = FOUR_CHAR_CODE('scr') kScriptsFolderIcon = FOUR_CHAR_CODE('scr')
kShutdownItemsDisabledFolderIcon = FOUR_CHAR_CODE('shdD') kShutdownItemsDisabledFolderIcon = FOUR_CHAR_CODE('shdD')
kShutdownItemsFolderIcon = FOUR_CHAR_CODE('shdf') kShutdownItemsFolderIcon = FOUR_CHAR_CODE('shdf')
kSpeakableItemsFolder = FOUR_CHAR_CODE('spki') kSpeakableItemsFolder = FOUR_CHAR_CODE('spki')
...@@ -313,13 +313,13 @@ kStartupItemsDisabledFolderIcon = FOUR_CHAR_CODE('strD') ...@@ -313,13 +313,13 @@ kStartupItemsDisabledFolderIcon = FOUR_CHAR_CODE('strD')
kStartupItemsFolderIcon = FOUR_CHAR_CODE('strt') kStartupItemsFolderIcon = FOUR_CHAR_CODE('strt')
kSystemExtensionDisabledFolderIcon = FOUR_CHAR_CODE('macD') kSystemExtensionDisabledFolderIcon = FOUR_CHAR_CODE('macD')
kSystemFolderIcon = FOUR_CHAR_CODE('macs') kSystemFolderIcon = FOUR_CHAR_CODE('macs')
kTextEncodingsFolderIcon = FOUR_CHAR_CODE('tex') kTextEncodingsFolderIcon = FOUR_CHAR_CODE('tex')
kAppearanceFolderIcon = FOUR_CHAR_CODE('appr') kAppearanceFolderIcon = FOUR_CHAR_CODE('appr')
kUtilitiesFolderIcon = FOUR_CHAR_CODE('uti') kUtilitiesFolderIcon = FOUR_CHAR_CODE('uti')
kVoicesFolderIcon = FOUR_CHAR_CODE('fvoc') kVoicesFolderIcon = FOUR_CHAR_CODE('fvoc')
kColorSyncFolderIcon = FOUR_CHAR_CODE('prof') kColorSyncFolderIcon = FOUR_CHAR_CODE('prof')
kInternetSearchSitesFolderIcon = FOUR_CHAR_CODE('issf') kInternetSearchSitesFolderIcon = FOUR_CHAR_CODE('issf')
kUsersFolderIcon = FOUR_CHAR_CODE('usr') kUsersFolderIcon = FOUR_CHAR_CODE('usr')
kAppleScriptBadgeIcon = FOUR_CHAR_CODE('scrp') kAppleScriptBadgeIcon = FOUR_CHAR_CODE('scrp')
kLockedBadgeIcon = FOUR_CHAR_CODE('lbdg') kLockedBadgeIcon = FOUR_CHAR_CODE('lbdg')
kMountedBadgeIcon = FOUR_CHAR_CODE('mbdg') kMountedBadgeIcon = FOUR_CHAR_CODE('mbdg')
......
...@@ -316,7 +316,7 @@ telBadProcID = -10110 #invalid procID ...@@ -316,7 +316,7 @@ telBadProcID = -10110 #invalid procID
telDeviceNotFound = -10109 #device not found telDeviceNotFound = -10109 #device not found
telBadCodeResource = -10108 #code resource not found telBadCodeResource = -10108 #code resource not found
telInitFailed = -10107 #initialization failed telInitFailed = -10107 #initialization failed
telNoCommFolder = -10106 #Communications/Extensions not found telNoCommFolder = -10106 #Communications/Extensions not found
telUnknownErr = -10103 #unable to set config telUnknownErr = -10103 #unable to set config
telNoSuchTool = -10102 #unable to find tool with name specified telNoSuchTool = -10102 #unable to find tool with name specified
telBadFunction = -10091 #bad msgCode specified telBadFunction = -10091 #bad msgCode specified
...@@ -626,7 +626,7 @@ kDMDriverNotDisplayMgrAwareErr = -6228 #Video Driver does not support display ma ...@@ -626,7 +626,7 @@ kDMDriverNotDisplayMgrAwareErr = -6228 #Video Driver does not support display ma
kDMSWNotInitializedErr = -6227 #Required software not initialized (eg windowmanager or display mgr). kDMSWNotInitializedErr = -6227 #Required software not initialized (eg windowmanager or display mgr).
kSysSWTooOld = -6226 #Missing critical pieces of System Software. kSysSWTooOld = -6226 #Missing critical pieces of System Software.
kDMMirroringNotOn = -6225 #Returned by all calls that need mirroring to be on to do their thing. kDMMirroringNotOn = -6225 #Returned by all calls that need mirroring to be on to do their thing.
kDMCantBlock = -6224 #Mirroring is already on, cant Block now (call DMUnMirror() first). kDMCantBlock = -6224 #Mirroring is already on, cant Block now (call DMUnMirror() first).
kDMMirroringBlocked = -6223 #DMBlockMirroring() has been called. kDMMirroringBlocked = -6223 #DMBlockMirroring() has been called.
kDMWrongNumberOfDisplays = -6222 #Can only handle 2 displays for now. kDMWrongNumberOfDisplays = -6222 #Can only handle 2 displays for now.
kDMMirroringOnAlready = -6221 #Returned by all calls that need mirroring to be off to do their thing. kDMMirroringOnAlready = -6221 #Returned by all calls that need mirroring to be off to do their thing.
...@@ -653,7 +653,7 @@ errCorruptWindowDescription = -5606 #tried to load a corrupt window description ...@@ -653,7 +653,7 @@ errCorruptWindowDescription = -5606 #tried to load a corrupt window description
errUnrecognizedWindowClass = -5605 #tried to create a window with a bad WindowClass errUnrecognizedWindowClass = -5605 #tried to create a window with a bad WindowClass
errWindowPropertyNotFound = -5604 #tried to get a nonexistent property errWindowPropertyNotFound = -5604 #tried to get a nonexistent property
errInvalidWindowProperty = -5603 #tried to access a property tag with private creator errInvalidWindowProperty = -5603 #tried to access a property tag with private creator
errWindowDoesNotHaveProxy = -5602 #tried to do something requiring a proxy to a window which doesnt have a proxy errWindowDoesNotHaveProxy = -5602 #tried to do something requiring a proxy to a window which doesnt have a proxy
errUnsupportedWindowAttributesForClass = -5601 #tried to create a window with WindowAttributes not supported by the WindowClass errUnsupportedWindowAttributesForClass = -5601 #tried to create a window with WindowAttributes not supported by the WindowClass
errInvalidWindowPtr = -5600 #tried to pass a bad WindowRef argument errInvalidWindowPtr = -5600 #tried to pass a bad WindowRef argument
gestaltLocationErr = -5553 #gestalt function ptr wasn't in sysheap gestaltLocationErr = -5553 #gestalt function ptr wasn't in sysheap
...@@ -847,7 +847,7 @@ kECANCELErr = -3273 # ...@@ -847,7 +847,7 @@ kECANCELErr = -3273 #
kEBADMSGErr = -3272 # kEBADMSGErr = -3272 #
kENOSRErr = -3271 # kENOSRErr = -3271 #
kETIMEErr = -3270 # kETIMEErr = -3270 #
kEPROTOErr = -3269 # fill out missing codes kEPROTOErr = -3269 # fill out missing codes
kEHOSTUNREACHErr = -3264 #No route to host kEHOSTUNREACHErr = -3264 #No route to host
kEHOSTDOWNErr = -3263 #Host is down kEHOSTDOWNErr = -3263 #Host is down
kECONNREFUSEDErr = -3260 #Connection refused kECONNREFUSEDErr = -3260 #Connection refused
...@@ -1043,7 +1043,7 @@ tsmTSHasNoMenuErr = -2513 #the text service has no menu ...@@ -1043,7 +1043,7 @@ tsmTSHasNoMenuErr = -2513 #the text service has no menu
tsmUseInputWindowErr = -2512 #not TSM aware because we are using input window tsmUseInputWindowErr = -2512 #not TSM aware because we are using input window
tsmDocumentOpenErr = -2511 #there are open documents tsmDocumentOpenErr = -2511 #there are open documents
tsmTextServiceNotFoundErr = -2510 #no text service found tsmTextServiceNotFoundErr = -2510 #no text service found
tsmCantOpenComponentErr = -2509 #cant open the component tsmCantOpenComponentErr = -2509 #cant open the component
tsmNoOpenTSErr = -2508 #no open text service tsmNoOpenTSErr = -2508 #no open text service
tsmDocNotActiveErr = -2507 #document is NOT active tsmDocNotActiveErr = -2507 #document is NOT active
tsmTSMDocBusyErr = -2506 #document is still active tsmTSMDocBusyErr = -2506 #document is still active
...@@ -1076,9 +1076,9 @@ kernelOptionsErr = -2403 #kernelOptionsErr ...@@ -1076,9 +1076,9 @@ kernelOptionsErr = -2403 #kernelOptionsErr
kernelCanceledErr = -2402 #kernelCanceledErr kernelCanceledErr = -2402 #kernelCanceledErr
kernelIncompleteErr = -2401 #kernelIncompleteErr kernelIncompleteErr = -2401 #kernelIncompleteErr
badCallOrderErr = -2209 #Usually due to a status call being called prior to being setup first badCallOrderErr = -2209 #Usually due to a status call being called prior to being setup first
noDMAErr = -2208 #Cant do DMA digitizing (i.e. can't go to requested dest noDMAErr = -2208 #Cant do DMA digitizing (i.e. can't go to requested dest
badDepthErr = -2207 #Cant digitize into this depth badDepthErr = -2207 #Cant digitize into this depth
notExactSizeErr = -2206 #Cant do exact size requested notExactSizeErr = -2206 #Cant do exact size requested
noMoreKeyColorsErr = -2205 #all key indexes in use noMoreKeyColorsErr = -2205 #all key indexes in use
notExactMatrixErr = -2204 #warning of bad matrix, digitizer did its best notExactMatrixErr = -2204 #warning of bad matrix, digitizer did its best
matrixErr = -2203 #bad matrix, digitizer did nothing matrixErr = -2203 #bad matrix, digitizer did nothing
...@@ -1428,7 +1428,7 @@ rcDBValue = -801 #rcDBValue ...@@ -1428,7 +1428,7 @@ rcDBValue = -801 #rcDBValue
rcDBNull = -800 #rcDBNull rcDBNull = -800 #rcDBNull
noMMUErr = -626 #no MMU present noMMUErr = -626 #no MMU present
cannotDeferErr = -625 #unable to defer additional functions cannotDeferErr = -625 #unable to defer additional functions
interruptsMaskedErr = -624 #dont call with interrupts masked interruptsMaskedErr = -624 #dont call with interrupts masked
notLockedErr = -623 #specified range of memory is not locked notLockedErr = -623 #specified range of memory is not locked
cannotMakeContiguousErr = -622 #cannot make specified range contiguous cannotMakeContiguousErr = -622 #cannot make specified range contiguous
notHeldErr = -621 #specified range of memory is not held notHeldErr = -621 #specified range of memory is not held
...@@ -1708,10 +1708,10 @@ writErr = -20 #I/O System Errors ...@@ -1708,10 +1708,10 @@ writErr = -20 #I/O System Errors
readErr = -19 #I/O System Errors readErr = -19 #I/O System Errors
statusErr = -18 #I/O System Errors statusErr = -18 #I/O System Errors
controlErr = -17 #I/O System Errors controlErr = -17 #I/O System Errors
dsExtensionsDisabled = -13 #say Extensions Disabled dsExtensionsDisabled = -13 #say Extensions Disabled
dsHD20Installed = -12 #say HD20 Startup dsHD20Installed = -12 #say HD20 Startup
dsDisassemblerInstalled = -11 #say Disassembler Installed dsDisassemblerInstalled = -11 #say Disassembler Installed
dsMacsBugInstalled = -10 #say MacsBug Installed dsMacsBugInstalled = -10 #say MacsBug Installed
seNoDB = -8 #no debugger installed to handle debugger command seNoDB = -8 #no debugger installed to handle debugger command
SlpTypeErr = -5 #invalid queue element SlpTypeErr = -5 #invalid queue element
unimpErr = -4 #unimplemented core routine unimpErr = -4 #unimplemented core routine
......
...@@ -14,9 +14,9 @@ class _modulebrowser: ...@@ -14,9 +14,9 @@ class _modulebrowser:
#self.window.bevelbox = W.BevelBox((0, 0, 0, 56)) #self.window.bevelbox = W.BevelBox((0, 0, 0, 56))
self.window.openbutton = W.Button((10, 8, 80, 16), "Open", self.openbuttonhit) self.window.openbutton = W.Button((10, 8, 80, 16), "Open", self.openbuttonhit)
self.window.browsebutton = W.Button((100, 8, 80, 16), "Browse", self.browsebuttonhit) self.window.browsebutton = W.Button((100, 8, 80, 16), "Browse", self.browsebuttonhit)
self.window.reloadbutton = W.Button((10, 32, 80, 16), "Reload", self.reloadbuttonhit) self.window.reloadbutton = W.Button((10, 32, 80, 16), "Reload", self.reloadbuttonhit)
self.window.openotherbutton = W.Button((100, 32, 80, 16), "Open other", self.openother) self.window.openotherbutton = W.Button((100, 32, 80, 16), "Open other", self.openother)
self.window.openbutton.enable(0) self.window.openbutton.enable(0)
self.window.reloadbutton.enable(0) self.window.reloadbutton.enable(0)
...@@ -81,7 +81,7 @@ class _modulebrowser: ...@@ -81,7 +81,7 @@ class _modulebrowser:
file, path, description = imp.find_module(modname) file, path, description = imp.find_module(modname)
except ImportError: except ImportError:
W.SetCursor("arrow") W.SetCursor("arrow")
W.Message("Cant find file for module %s." W.Message("Cant find file for module %s."
% modname) % modname)
else: else:
self.openscript(path, modname) self.openscript(path, modname)
...@@ -93,7 +93,7 @@ class _modulebrowser: ...@@ -93,7 +93,7 @@ class _modulebrowser:
elif path[-4:] in ['.pyc', '.pyo']: elif path[-4:] in ['.pyc', '.pyo']:
W.getapplication().openscript(path[:-1], modname=modname) W.getapplication().openscript(path[:-1], modname=modname)
else: else:
W.Message("Cant edit %s; it might be a shared library or a .pyc file." W.Message("Cant edit %s; it might be a shared library or a .pyc file."
% modname) % modname)
def openother(self): def openother(self):
...@@ -106,9 +106,9 @@ class _modulebrowser: ...@@ -106,9 +106,9 @@ class _modulebrowser:
file, path, description = imp.find_module(modname) file, path, description = imp.find_module(modname)
except ImportError: except ImportError:
if modname in sys.builtin_module_names: if modname in sys.builtin_module_names:
alerttext = "%s is a builtin module, which you cant edit." % modname alerttext = "%s is a builtin module, which you cant edit." % modname
else: else:
alerttext = "No module named %s." % modname alerttext = "No module named %s." % modname
raise W.AlertError, alerttext raise W.AlertError, alerttext
self.openscript(path, modname) self.openscript(path, modname)
......
...@@ -38,7 +38,7 @@ def double_repr(key, value, truncvalue = 0, ...@@ -38,7 +38,7 @@ def double_repr(key, value, truncvalue = 0,
value = _repr(value) value = _repr(value)
'' + value # test to see if it is a string, in case a __repr__ method is buggy '' + value # test to see if it is a string, in case a __repr__ method is buggy
except: except:
value = ' exception in repr()' value = ' exception in repr()'
if truncvalue: if truncvalue:
return key + '\t' + value[:255] return key + '\t' + value[:255]
return key + '\t' + value return key + '\t' + value
...@@ -360,7 +360,7 @@ INDEXING_TYPES = ( ...@@ -360,7 +360,7 @@ INDEXING_TYPES = (
def unpack_object(object, indent = 0): def unpack_object(object, indent = 0):
tp = type(object) tp = type(object)
if tp in SIMPLE_TYPES and tp is not types.NoneType: if tp in SIMPLE_TYPES and tp is not types.NoneType:
raise TypeError, 'cant browse simple type: %s' % tp.__name__ raise TypeError, 'cant browse simple type: %s' % tp.__name__
elif tp == types.DictionaryType: elif tp == types.DictionaryType:
return unpack_dict(object, indent) return unpack_dict(object, indent)
elif tp in (types.TupleType, types.ListType): elif tp in (types.TupleType, types.ListType):
......
...@@ -156,8 +156,8 @@ class PyConsole(W.Window): ...@@ -156,8 +156,8 @@ class PyConsole(W.Window):
def makenamespacemenu(self, *args): def makenamespacemenu(self, *args):
W.SetCursor('watch') W.SetCursor('watch')
namespacelist = self.getnamespacelist() namespacelist = self.getnamespacelist()
self.namespacemenu.set([("Clear window", self.clearbuffer), ("Font settings", self.dofontsettings), self.namespacemenu.set([("Clear window", self.clearbuffer), ("Font settings", self.dofontsettings),
["Namespace"] + namespacelist, ("Browse namespace", self.browsenamespace)]) ["Namespace"] + namespacelist, ("Browse namespace", self.browsenamespace)])
currentname = self.consoletext._namespace["__name__"] currentname = self.consoletext._namespace["__name__"]
for i in range(len(namespacelist)): for i in range(len(namespacelist)):
if namespacelist[i][0] == currentname: if namespacelist[i][0] == currentname:
...@@ -264,7 +264,7 @@ class PyOutput: ...@@ -264,7 +264,7 @@ class PyOutput:
tabbable = 0) tabbable = 0)
self.w.outputtext = OutputTextWidget((-1, -1, -14, 1), inset = (6, 5), self.w.outputtext = OutputTextWidget((-1, -1, -14, 1), inset = (6, 5),
fontsettings = self.fontsettings, tabsettings = self.tabsettings, readonly = 1) fontsettings = self.fontsettings, tabsettings = self.tabsettings, readonly = 1)
menuitems = [("Clear window", self.clearbuffer), ("Font settings", self.dofontsettings)] menuitems = [("Clear window", self.clearbuffer), ("Font settings", self.dofontsettings)]
self.w.popupmenu = W.PopupMenu((-15, -1, 16, 16), menuitems) self.w.popupmenu = W.PopupMenu((-15, -1, 16, 16), menuitems)
self.w._bary = W.Scrollbar((-15, 14, 16, -14), self.w.outputtext.vscroll, max = 32767) self.w._bary = W.Scrollbar((-15, 14, 16, -14), self.w.outputtext.vscroll, max = 32767)
......
...@@ -72,7 +72,7 @@ class Debugger(bdb.Bdb): ...@@ -72,7 +72,7 @@ class Debugger(bdb.Bdb):
self.botframe = bottomframe self.botframe = bottomframe
if running: if running:
self.set_continue() self.set_continue()
self.reason = 'Running' self.reason = 'Running'
self.setstate('running') self.setstate('running')
else: else:
self.set_step() self.set_step()
...@@ -187,7 +187,7 @@ class Debugger(bdb.Bdb): ...@@ -187,7 +187,7 @@ class Debugger(bdb.Bdb):
def makeoptionsmenu(self): def makeoptionsmenu(self):
options = [('Clear breakpoints', self.w.panes.bottom.src.source.clearbreakpoints), options = [('Clear breakpoints', self.w.panes.bottom.src.source.clearbreakpoints),
('Clear all breakpoints', self.clear_all_breaks), ('Clear all breakpoints', self.clear_all_breaks),
('Edit breakpoints', self.edit_breaks), '-', ('Edit breakpoints', self.edit_breaks), '-',
(self.tracemagic and (self.tracemagic and
'Disable __magic__ tracing' or 'Enable __magic__ tracing', self.togglemagic)] 'Disable __magic__ tracing' or 'Enable __magic__ tracing', self.togglemagic)]
self.w.panes.bottom.src.optionsmenu.set(options) self.w.panes.bottom.src.optionsmenu.set(options)
...@@ -318,7 +318,7 @@ class Debugger(bdb.Bdb): ...@@ -318,7 +318,7 @@ class Debugger(bdb.Bdb):
def running(self): def running(self):
W.SetCursor('watch') W.SetCursor('watch')
self.reason = 'Running' self.reason = 'Running'
self.setstate('running') self.setstate('running')
#self.w.panes.bottom.src.source.set('') #self.w.panes.bottom.src.source.set('')
#self.w.panes.browserpanes.stacklist.stack.set([]) #self.w.panes.browserpanes.stacklist.stack.set([])
...@@ -350,7 +350,7 @@ class Debugger(bdb.Bdb): ...@@ -350,7 +350,7 @@ class Debugger(bdb.Bdb):
try: try:
f, filename, (suff, mode, dummy) = imp.find_module(modname) f, filename, (suff, mode, dummy) = imp.find_module(modname)
except ImportError: except ImportError:
self.w.panes.bottom.src.source.set('cant find file') self.w.panes.bottom.src.source.set('cant find file')
else: else:
if f: if f:
f.close() f.close()
...@@ -360,9 +360,9 @@ class Debugger(bdb.Bdb): ...@@ -360,9 +360,9 @@ class Debugger(bdb.Bdb):
f.close() f.close()
self.w.panes.bottom.src.source.set(data, filename) self.w.panes.bottom.src.source.set(data, filename)
else: else:
self.w.panes.bottom.src.source.set('cant find file') self.w.panes.bottom.src.source.set('cant find file')
else: else:
self.w.panes.bottom.src.source.set('cant find file') self.w.panes.bottom.src.source.set('cant find file')
else: else:
self.w.panes.bottom.src.source.set(data, filename) self.w.panes.bottom.src.source.set(data, filename)
self.file = filename self.file = filename
...@@ -682,7 +682,7 @@ class BreakpointsViewer: ...@@ -682,7 +682,7 @@ class BreakpointsViewer:
self.w.panes.files = W.List(None, callback = self.filehit) #, flags = Lists.lOnlyOne) self.w.panes.files = W.List(None, callback = self.filehit) #, flags = Lists.lOnlyOne)
self.w.panes.gr = W.Group(None) self.w.panes.gr = W.Group(None)
self.w.panes.gr.breaks = W.List((0, 0, -130, 0), callback = self.linehit) #, flags = Lists.lOnlyOne) self.w.panes.gr.breaks = W.List((0, 0, -130, 0), callback = self.linehit) #, flags = Lists.lOnlyOne)
self.w.panes.gr.openbutton = W.Button((-80, 4, 0, 16), 'View', self.openbuttonhit) self.w.panes.gr.openbutton = W.Button((-80, 4, 0, 16), 'View', self.openbuttonhit)
self.w.panes.gr.deletebutton = W.Button((-80, 28, 0, 16), 'Delete', self.deletebuttonhit) self.w.panes.gr.deletebutton = W.Button((-80, 28, 0, 16), 'Delete', self.deletebuttonhit)
self.w.bind('<close>', self.close) self.w.bind('<close>', self.close)
...@@ -880,7 +880,7 @@ _debugger = None ...@@ -880,7 +880,7 @@ _debugger = None
def getdebugger(): def getdebugger():
if not __debug__: if not __debug__:
raise W.AlertError, "Cant debug in Optimize bytecode mode.\r(see Default startup options in EditPythonPreferences)" raise W.AlertError, "Cant debug in Optimize bytecode mode.\r(see Default startup options in EditPythonPreferences)"
global _debugger global _debugger
if _debugger is None: if _debugger is None:
_debugger = Debugger() _debugger = Debugger()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment