Commit Graph

3074 Commits

Author SHA1 Message Date
Martin v. Löwis ab0f947a21 Remove .cvsignore files, as they live in svn:ignore
properties now.
2005-10-30 22:01:41 +00:00
Fred Drake db390c1ad8 fix typos, mostly in comments 2005-10-28 14:39:47 +00:00
Georg Brandl 7eb4b7d177 Fix all wrong instances of "it's". 2005-07-22 21:49:32 +00:00
Tim Peters f5f32b4712 Whitespace normalization. 2005-07-17 23:16:17 +00:00
Jack Jansen d7b76e9f69 Fix for #1236090: FSSpec.as_pathname() crashes.
Turns out patch #1035255 was incomplete, it only patched _Filemodule.c
and not filesupport.py. So regenerating caused as_pathname() to go into
an infinite loop.
2005-07-12 21:25:05 +00:00
Jack Jansen 918a9e2f63 Updated (and regenerated) for name change in tp_init method arguments:
they are now _self, _args and _kwds.
2005-07-03 20:59:44 +00:00
Tim Peters e890682e52 Whitespace normalization. 2005-04-20 17:45:13 +00:00
Jack Jansen 6d22b56b7e Updated to work with current Python docs setup, and added a minimal README. 2005-04-17 21:30:52 +00:00
Tim Peters 5a9fb3c415 Whitespace normalization. 2005-01-07 16:01:32 +00:00
Jack Jansen 5a3c7c39db Oops, there was a tab in there. 2005-01-07 12:56:21 +00:00
Jack Jansen 30620ac641 Workaround for the fact that urllib2 doesn't default to "file:" urls. 2005-01-07 12:50:12 +00:00
Jack Jansen 64585988af Create the wrapper scripts for gcc/g++ too. 2005-01-01 22:33:36 +00:00
Jack Jansen 935ca1018e Just passing -undefined dynamic_lookup isn't enough: we also need to set
the MACOSX_DEPLOYMENT_TARGET environment variable to 10.3 when calling the
loader. And we do this with "env" because distutils apparently doesn't
understand environment variable assignments before command names.
2004-12-28 21:30:35 +00:00
Jack Jansen 078824e4f6 Added quotes around the destroot arguments, so empty destroot works. 2004-12-27 16:13:39 +00:00
Jack Jansen de2ecb8466 Updated version numbers. 2004-12-27 15:53:20 +00:00
Jack Jansen c77f6dfd92 Fix for #1091468: DESTROOTed frameworkinstalls fail. Added a --destroot
option to various tools, and do the right thing when we're doing a destroot
install.

Will backport to 2.4 and 2.3.
2004-12-27 15:51:03 +00:00
Jack Jansen 6116f07fdc A script to fix Apple-installed Python 2.3 (and a test whether the user
needs to run it in the Makefile).

After installing a newer framework Python the apple-installed Python can
no longer build extension modules, because they will inadvertantly be linked
against the newer framework. This script modifies lib/config/Makefile so
it will link extensions with "-undefined dynamic_lookup", which forestalls
this problem.

Will backport to 2.4 and 2.3.
2004-12-26 23:02:05 +00:00
Brett Cannon 98809b76ae Very minor grammatical fix and removal of a tab. 2004-12-06 06:01:13 +00:00
Raymond Hettinger ec6eb369d5 SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core
(Contributed by Bob Ippolito.)

This patch trims down the Python core on Darwin by making it
independent of CoreFoundation and CoreServices. It does this by:

Changed linker flags in configure/configure.in
Removed the unused PyMac_GetAppletScriptFile
Moved the implementation of PyMac_StrError to the MacOS module
Moved the implementation of PyMac_GetFullPathname to the
Carbon.File module
2004-11-05 07:02:59 +00:00
Tim Peters 182b5aca27 Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
Jack Jansen 122f87fa04 The interpreter popup was never filled with any data, fixed.
Fixes #775878.
2004-07-16 12:36:02 +00:00
Jack Jansen 6e3b425f3f Made preference window resizable (and do the most logical thing on resize) 2004-07-16 12:35:06 +00:00
Jack Jansen 31bca4ef12 Cleaned up list of interpreters. 2004-07-16 12:34:23 +00:00
Jack Jansen ad1654e03a After more than two years of puzzlement Jurjen Bos found the reason for
the double-scroll problem: when you pass a tracker function to TrackControl
you shouldn't call your hit function again afterwards. Fixes #711989.
2004-07-15 22:08:33 +00:00
Jack Jansen 4f9013759b - Added a note about fixversions.py
- Ran it.
2004-07-15 21:30:41 +00:00
Jack Jansen 7323f08422 A script to fix version strings in .plist files. 2004-07-15 16:03:55 +00:00
Jack Jansen ce17cf6da7 The CF inheritance could cause double frees of the underlying objects.
Fixed.
2004-07-15 14:25:48 +00:00
Jack Jansen d9e50f554f CFStringGetUnicode() returned an extra null character at the end of the string.
fixed.
2004-07-15 14:11:30 +00:00
Jack Jansen 3bfc28c12f Make CF module PEP253 based (finally). 2004-07-15 13:42:06 +00:00
Jack Jansen 75694501ca Get rid of incorrect use of OSAGetCurrentDialect. Fixes #884085. 2004-07-15 13:21:16 +00:00
Jack Jansen 0701bd64aa Fix for #860242: use correct names in the "save preferences" dialog. 2004-06-03 21:55:46 +00:00
Jack Jansen 30184f3611 - Fix for #862941: "run with commandline python" crashed. Fixed.
- Prefer to use pythonw (if it exists) for "run with commandline python".
2004-06-03 21:27:15 +00:00
Jack Jansen 76375745d5 On startup, attempt to set the working directory to $HOME.
Fixes #913581.
2004-06-03 14:15:50 +00:00
Jack Jansen 8d562e6b4f Very large scripts folders could crash the IDE, because it runs out
of Menu IDs (of which there are only 255 in Carbon). Fixed by stopping
examining the scripts folder when we allocate menu ID 200.

Fixes #959291. Need to backport.
2004-06-03 13:31:51 +00:00
Jack Jansen 29eb8c315d Do an actual test for xcodebuild, in stead of relying on the user to
uncomment the relevant section.
2004-06-02 20:06:38 +00:00
Jack Jansen 43285d4d3d CGMainDisplayID() doesn't exist on 10.1, so don't try to call it when
building for that platform.
2004-06-02 13:44:05 +00:00
Jack Jansen fe99927630 - Allow easy opening of experimental database, if pimp >= 0.4
- Allow easy access to the PackMan homepage, for even more databases.
2004-02-28 23:19:42 +00:00
Jack Jansen e7e9bf2727 kLsUnknownType and kLSUnknownCreator were ints in stead of OSTypes.
Reported by Bob Ippolito.
2004-02-24 21:49:10 +00:00
Jack Jansen 49be4cc861 Setup file to allow the QuickTime for 2.4 to be compiled
for MacPython 2.3 (and, hopefully, python 2.3 for windows too).
2004-02-24 21:25:31 +00:00
Walter Dörwald 70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Jack Jansen 69387e19ef More cases of input parameters passed by reference without const. 2004-01-11 22:52:12 +00:00
Jack Jansen ae57b7f843 Added support for APIs in QuickTimeMusic.h. This one is a bit dodgy:
the header file seems to be hand-written and missing the "const" keywords
for input parameters passed by reference.
2004-01-11 22:27:42 +00:00
Jack Jansen 2e5e6445e7 Added support for APIs in MediaHandlers.h. 2004-01-09 23:18:47 +00:00
Jack Jansen cb2117a83c Allow passing NULL pointers by passing None. This also works for the
factory functions, so you can call quicktime functions that are implemented
as methods on NULL too.

Still don't allow quicktime functions to return NULL pointers, though: I
think this always signals an error condition.
2004-01-04 22:33:33 +00:00
Jack Jansen 007b8eb7c4 Added interfaces for most of the stuff in QuickTimeComponents.h. 2004-01-03 17:23:27 +00:00
Jack Jansen 067782438e Added support for ImageCompression.h APIs. 2004-01-02 23:51:22 +00:00
Jack Jansen 59f7dc9b40 Updated for QuickTime 6.0, Universal Header 3.4.2. 2004-01-02 23:27:42 +00:00
Jack Jansen 0b565a6e42 - Renamed OSA.ComponentInstance to OSA.OSAComponentInstance. It is not
a real subtype of Cm.ComponentInstance right now, it turns out that is
too difficult.
- OSA.OSAComponentInstance initializer does accept a Cm.ComponentInstance
instance, though, so at least things are becoming useable.
2003-12-10 15:18:18 +00:00
Jack Jansen 2e20a63bc9 Make this module Python 2.3 compatible, and add a setup script that allows
it to be built for that python.
2003-12-09 15:06:18 +00:00
Jack Jansen 2af4ce8f30 Made this module compatible with Python2.3, and added a temporary setup
script that allows it to be built for that Python.
2003-12-09 14:51:21 +00:00
Just van Rossum 001734ca7f fixed long standing typo 2003-12-07 18:11:51 +00:00
Jack Jansen 67ff6d9930 Finished update to UH 3.4.2. 2003-12-06 00:00:17 +00:00
Jack Jansen da6081fccb Ported to Universal Headers 3.4.2. Qd and Qt remain to be done.
Completely untested.
2003-12-03 23:20:13 +00:00
Jack Jansen fe3fe4adb5 Adding an interface to the high-level Open Scripting Architecture,
by request of Donovan Preston. In return, he promised to use this
to create a Python OSA component, which would turn Python
into a first-class OSA scripting language (like AppleScript itself).
2003-12-03 22:34:19 +00:00
Jack Jansen 07f1dfa91c Blacklisting LSInit and LSTerm, which are deprecated. Partial fix for 853558. 2003-12-03 20:52:07 +00:00
Jack Jansen 7d0a609e6f An interface to the LaunchServices API. 2003-12-02 23:01:43 +00:00
Jack Jansen ac5d667e9f Fix (workaround, actually) for bug #844676: deselecting "show hidden" can
cause an index error. We now select the first package if this threatens
to happen. Will backport.
2003-11-27 23:19:33 +00:00
Jack Jansen 9cc4fcd649 Package Mnager error dialogs could refer to hidden packages, which was
confusing. To be on the safe side we always show hidden packages before
showing error dialogs. Will backport.
2003-11-27 23:12:17 +00:00
Jack Jansen a775dd176c the "idle" script has moved from Lib/idlelib to Tools/scripts. 2003-11-27 22:54:28 +00:00
Jack Jansen c09857ab78 Added some help to OSX/Dist/README.txt, plus all the information
from the OS9 readme that is still relevant.
Got rid of Distributions/readme.txt.
2003-11-20 13:50:28 +00:00
Jack Jansen 7107c1aff3 Got rid of macglue.h, replacing it by pymactoolbox.h where relevant.
Cleaned up various things in the toolbox modules.
2003-11-20 13:31:00 +00:00
Jack Jansen 3305d2487d Got rid of macglue.h, moved the little bit that remains relevant
to pymactoolbox.h (where it should have been in the first place).
2003-11-20 13:28:19 +00:00
Jack Jansen 8d902aba1c No longer used. 2003-11-20 13:27:33 +00:00
Jack Jansen eddc1449ba Getting rid of all the code inside #ifdef macintosh too. 2003-11-20 01:44:59 +00:00
Jack Jansen bc2fbc74ed Getting rid of one more TARGET_API_MAC_OSX. 2003-11-19 22:43:57 +00:00
Jack Jansen a53f4eba19 Getting rid of code conditional on TARGET_API_MAC_*. 2003-11-19 16:34:04 +00:00
Jack Jansen 9588770e25 PyDoc_STR is always defined nowadays (and has been for quite some time:-) 2003-11-19 16:18:02 +00:00
Jack Jansen e48cef7aba Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:
MacOS9isms.
2003-11-19 16:13:35 +00:00
Jack Jansen 37249c5524 WITHOUT_FRAMEWORKS conditional code bites the dust: this was for
pre-carbon MacOS9 support.
2003-11-19 15:32:46 +00:00
Jack Jansen f387e2d12b Gone: all this functionality is now in the Carbon.File and Folder modules. 2003-11-19 15:30:41 +00:00
Jack Jansen fb2765666f Getting rid of support for the ancient Apple MPW compiler. 2003-11-19 15:24:47 +00:00
Jack Jansen d338b6e317 Removing the obvious OS9-only documents§ 2003-11-19 14:54:25 +00:00
Jack Jansen 28ecf70db5 Getting rid of support for MacOS9 and earlier. This is the first step,
and the biggest in size, but probably the easiest. Hunting through the
source code comes next.
2003-11-19 14:34:18 +00:00
Jack Jansen 6045b9c935 Temporary fix for buildon on both Panther and Jaguar. 2003-11-19 13:56:40 +00:00
Jack Jansen 652b28c6f5 Moved various files over from the release23-maint branch. 2003-11-19 13:53:55 +00:00
Jack Jansen 42f3b9ae4a Upped version 2003-11-19 13:50:21 +00:00
Jack Jansen e41072378d Upped version numbers, and converted to UTF-16. 2003-11-19 13:49:28 +00:00
Jack Jansen 2586aa810e Upped. 2003-11-19 13:48:13 +00:00
Jack Jansen 9feabbdcd2 This file is utf-16, not utf-8 (or ascii). 2003-11-19 13:47:22 +00:00
Jack Jansen d48364e8b1 Forward port of various fixes that were initially only done on the
release23-maint branch:
- Remember the scroll position when rebuilding the browser (as we do far
too often). Fixes #824430.
- Allow for the documentation to be inside PythonIDE as well as in
the Python.app inside the framework (the original location for 2.3).
- Updated version numbers
- In PythonIDE, add the Tools/IDE directory as the second entry in
sys.path in stead of as the first, leaving PythonIDE.app/Contents/Resources
as the first one.
- The code for setting the working directory to $HOME was both incorrect
and in the wrong place, fixed.
- On OSX the default location for IDE scripts is now
$HOME/Library/Python/IDE-Scripts.
2003-11-19 13:45:26 +00:00
Jack Jansen 6bf31278ac Ported from 23maint branch: add icons to BuildApplet. 2003-11-19 13:37:22 +00:00
Jack Jansen c86c9de7d4 Added a site 2003-11-19 13:33:47 +00:00
Jack Jansen 47e8f16b1e Upped version 2003-11-19 13:33:19 +00:00
Just van Rossum 4e6b3c55d0 Fix for [ 782686 ]: new files used \r as the default line separator
instead of os.linesep.
2003-11-18 22:41:16 +00:00
Just van Rossum 7e94a9aae3 fix for bug [819860]: make sure the buffer gets emptied, even if WEInsert() fails 2003-10-12 19:27:24 +00:00
Jack Jansen d1f46c8970 Don't export the SPB type as "SPB", because it shadows the method SPB,
which is really important. This is a stopgap measure, as only the generated
C code is adapted. Fixes #776533.
2003-07-24 22:25:03 +00:00
Jack Jansen f31bd453a5 Added instructions on setting the proxy host. 2003-07-24 21:46:40 +00:00
Jack Jansen 18452a4bf2 MacPython-OS9 has its own copy of the interrupt handling code. Added PyErr_SetInterrupt() here too. 2003-07-23 11:39:28 +00:00
Jack Jansen 1fb83c155f Don't force boot-disk-only install, for reasons unknown it causes more
problems than it solves. In stead, put a warning near the top of the
welcome message. Fixes (or, rather works around) bug #764975.
2003-07-23 10:51:55 +00:00
Jack Jansen dffeaf4732 Scripts runs with pythonw no longer had full window manager access due
to the name change of Python.app/Contents/MacOS/python to
Python.app/Contents/MacOS/Python. Fixes #776116.
2003-07-23 10:49:17 +00:00
Jack Jansen 12cb99b33f Various tweaks to make the packages work better. Still not 100%, though. 2003-07-22 14:31:34 +00:00
Jack Jansen f7538163b0 Files used for the 2.3rc1+ binary installer. This one has the size problem
fixed. It also attempts to force boot-disk-only installs, but this seems to
lead to a problem that you have to deselect and reselect the installation disk.
If no-one comes up with a fix RSN I'll revert to the previous situation and
explain in the readme that you cannot install on a non-system-disk.
2003-07-22 13:45:26 +00:00
Jack Jansen 40b2e83924 We erronuously re-used the pimpinstaller object if there were multiple installs.
This lead to a duplication of error messages (and installs). Fixes #764615.
2003-07-21 22:11:07 +00:00
Jack Jansen a7203d1037 Because plistlib doesn't catch all possible errors that can
happen while parsing a plistfile feeding an ill-formatted file to
pimp may cause an exception. As a stopgap we use an unqualified except
and print an error message "Unspecified error, probably ill-formatted
database". Fixes #765621.
2003-07-21 22:03:14 +00:00
Fred Drake 8851c62b81 removed trailing tabs in several places, including after the final
newline
2003-07-07 17:38:26 +00:00
Jack Jansen dd614fdc51 Fixed lots of minor issues found by Edward Moy: incorrect version
strings, non-standard naming of things in bundles, etc.
2003-07-04 13:06:14 +00:00
Jack Jansen 276b2900b8 Added missing newline at end of file. 2003-07-04 12:05:25 +00:00
Jack Jansen 078afc86f2 Files used for 2.3b2 macpython binary distribution. 2003-07-04 11:06:36 +00:00
Jack Jansen 75132e84e1 Moved two sentences around to make them clearer. 2003-07-03 21:33:02 +00:00
Jack Jansen ebab26a709 Skip noticed that the document talks about "setting PythonLauncher as the
default application" but doesn't give a clue on how to do this. Refer to
Apple Help.
2003-07-02 22:09:30 +00:00
Jack Jansen 42fbc6961e Tooltip for tab/space consistency check was the wrong way around. Spotted
by Skip.
2003-07-02 22:08:28 +00:00
Jack Jansen e2ff8be761 Moved the IDE tutorial to a directory with a shorter name. The long
name was giving problems with some tar implementations.
2003-07-02 09:20:09 +00:00
Jack Jansen 01d49fa283 Slight clarification on running the examples from the Finder. 2003-06-29 00:24:12 +00:00
Jack Jansen d163b85a07 Suggest people visit www.python.org/packman if the default database
cannot be found.
2003-06-29 00:17:23 +00:00
Jack Jansen 006ebebe5a By default build docs, don't download them. 2003-06-28 23:38:04 +00:00
Jack Jansen d2544e32f5 Give compileall a -d option so it works correctly in the face of
DESTDIR being non-null.
2003-06-21 22:07:16 +00:00
Jack Jansen d7cccdd591 Added a field that allows the user to set sys.argv-style arguments
to the script. Fixes #757544.
2003-06-20 22:21:03 +00:00
Jack Jansen b6b988bceb Cop out, and set things to be group-writeable recursively. The various
xxxMODE flags don't cut it. Also set the umask to 2 before doing the
compileall on the destination system.
2003-06-20 21:40:57 +00:00
Jack Jansen 7c0d7ba99d Updated. 2003-06-20 15:14:08 +00:00
Jack Jansen c30d7c37ee At startup, test that PythonLauncher is the default application for files
of type .py, .pyw and .pyc. If not, post a warning.
2003-06-20 14:36:58 +00:00
Jack Jansen 94d09f84be Installation of PythonLauncher has been failing silently, probably since
the DESTDIR patch. Fixed.
2003-06-20 14:33:38 +00:00
Jack Jansen 8cf644df52 Install Demo and Tools too. 2003-06-19 22:45:37 +00:00
Jack Jansen 7b9a386ef9 MacPython-2.3 has progressed so far that building a set of Mac 2.3
extensions on top of Python 2.2 no longer seems feasible.
2003-06-19 22:44:57 +00:00
Jack Jansen a1b77584f2 Added a target frameworkinstallextras (OSX framework build specific,
and not part of a normal frameworkinstall) that installs Demo and Tools
and a readme file into /Applications/MacPython-2.3/Extras. This will
give people access to the demos and tools if they instal Python through
the binary installer.
2003-06-19 22:35:20 +00:00
Jack Jansen e53be4e855 dded notes on reporting bugs and becoming an active developer. 2003-06-19 21:25:44 +00:00
Jack Jansen 0b1b5adaee - Added a "community" section.
- Cleaned up the HTML.
2003-06-18 22:10:27 +00:00
Jack Jansen fc3542f678 - Create TMPDIR only if it doesn't exist yet
- Set the installer to use our permissions, not influenced by the umask.
2003-06-18 21:28:44 +00:00
Jack Jansen 53e54fd934 Make sure the files in the installer have group "admin", otherwise
administrators can still not add packages.
2003-06-17 14:36:54 +00:00
Jack Jansen 7006fa14d8 Allow passing a build directory on the command line. Also, if the
build directory is found to exist we don't clean it up. We also
use configure -C. All this lets us keep build directories, which
graeatly speeds up the process of debugging installers.
2003-06-16 15:12:16 +00:00
Jack Jansen e5370655dc Only fix up pathnames in installed scripts when needed, i.e. when not installing
to /. Pathnames are correct for installing to / since the DESTDIR patch.
2003-06-16 15:10:47 +00:00
Jack Jansen a93b3cc9c2 Added a note about FSRef tests failing on MacOS 8.6. 2003-06-16 13:57:09 +00:00
Jack Jansen e748f0358f This wasn't ansified. Fixed. 2003-06-16 13:56:05 +00:00
Jack Jansen 7327918631 Import EasyDialogs only when needed, so this works if there is no window
manager (if it isn't needed).
2003-06-16 13:55:21 +00:00
Jack Jansen d3295baad7 Patch #755147 by Brian Lenihan:
- Build idle from new location
- use ln -fsn when linking files.
2003-06-16 09:47:25 +00:00
Jack Jansen 880be6f1cf Use the new, now preferred, form of referring to object specifiers (through
the object, not the module).
2003-06-13 14:32:49 +00:00
Jack Jansen 2a97dcce09 Use splitlines() in stead of split() to split lines, and added a method
shortdescription() so the code to split off the first line of the
description isn't all over the place.
2003-06-01 20:03:43 +00:00
Jack Jansen ac8bd9175b Forgot the code to initialize the glue for the new CFObj_ routines. 2003-05-31 22:09:33 +00:00
Jack Jansen 9f0c5754a6 - Get the database from a different place.
- Added support for multi-line descriptions. Doesn't look nice
yet in Package Manager.
2003-05-29 22:07:27 +00:00
Jack Jansen 20b15bbc56 Example database for Package Manager. 2003-05-28 18:57:52 +00:00
Jack Jansen f7c822073e Alternate fix for #728744: use OSA and Apple Help Indexing Tool's idleStatus
indicator to wait for the help indexing to finish.
2003-05-27 22:47:55 +00:00
Jack Jansen 4eb45e7804 Added functions CFObj_New and CFObj_Convert, general functions to convert
between CF objects and their Python representation. Fixes 734695.
2003-05-27 21:39:58 +00:00
Jack Jansen 31fa845c01 Added Help menu. Fixes #731635 2003-05-27 14:10:37 +00:00
Jack Jansen 9592fe9a49 Fixed the DESTDIR modifications to also allow MacOSX framework builds
to be installed to a different location. This should make the OSX binary
installer building a lot simpler.
2003-05-25 22:01:32 +00:00
Jack Jansen 8ba0e80117 Added a --python option, which sets the python to be used in the #! line
in the bootstrap script of the applet.
2003-05-25 22:00:17 +00:00
Just van Rossum 8d97b9bd36 fixed some DeprecationWarnings 2003-05-25 20:44:37 +00:00
Just van Rossum 0ed39577dd modernized ColorPicker somewhat 2003-05-24 20:14:24 +00:00
Jack Jansen bc06feae9c Pydoc also needs its #! line massaged. Fixes #733199. 2003-05-09 15:09:50 +00:00
Jack Jansen a226b5723a Pass DIRMODE and FILEMODE to Mac/OSX/Makefile on framework builds (and
honor them). Use this when building the MacOSX binary installer to
get group-writeable files.

Ths fix works for directories and executables, not for files just yet,
because of bug #735274.
2003-05-09 15:08:39 +00:00
Just van Rossum ba5db20558 also support cmd-. in the interactive window 2003-05-09 11:47:23 +00:00
Jack Jansen ee0325ac9a Suppress wartning on macfs import. 2003-05-09 10:15:18 +00:00
Just van Rossum eb64af9201 add explicit support for cancelling a running script (CFM-based MacPython had this built-in) 2003-05-09 08:58:02 +00:00
Just van Rossum 476736eed6 more dead code removal 2003-05-09 08:33:58 +00:00
Just van Rossum 5ef0e7cc47 dead code removal 2003-05-09 08:27:33 +00:00
Jack Jansen e9709e7e34 Merged 2.3b1 welcome message to the trunk. 2003-05-07 09:41:56 +00:00
Jack Jansen a6872b86a1 Merged 1.2.2.1 fixes:
- Don't generate README, but ask the user to provide it.
- Create destination dir, if needed.
- Updated for 2.3b1.
2003-05-07 08:58:11 +00:00
Jack Jansen 9a79182316 Fix for #731643: allow "lookup in documentation" to also work if the
interactive window is frontmost.
2003-05-06 14:28:31 +00:00
Just van Rossum d77bee1476 fixed typo 2003-05-03 00:38:26 +00:00
Just van Rossum 4e2d23226f Install automatic GIL switcher upon IDE startup.
(Jack: maybe this could/should be done in Framework.py instead, that way
apps don't have to think about it. PackMan springs to mind...)
2003-05-03 00:31:35 +00:00
Just van Rossum 6767eed22a Short and sweet module doing something very useful: for event loop
based threads, release the GIL when the event loop goes to sleep,
and acquire it again when the event loop wakes up again. OSX-only.
2003-05-03 00:18:55 +00:00
Just van Rossum d797e7b507 Fixed age-old beginner's error: don't start the main loop as a side
effect of an import. (This is one step towards threading support in
the IDE.)
2003-05-02 23:40:29 +00:00
Jack Jansen 40006e9f7a Rename funny long suite to Disk_File_Folder. 2003-05-01 22:06:15 +00:00
Jack Jansen b616f17902 Added a note about Stefan Deibels list of contacts. 2003-04-29 21:49:30 +00:00
Jack Jansen 8ddc3f0fa6 The new bundlebuilder-generated applets contain an absolute reference
to the Python used to create them (in the #! line). Therefore, when your
Python installation is moved the applets become invalid. As the
binary distribution is installed in a different place than where it was
created we need to fix up the #! lines.
2003-04-29 21:48:46 +00:00
Jack Jansen d6abf5d8c7 By default be verbose. 2003-04-29 21:46:31 +00:00
Jack Jansen 8c46ce9add Allow setting the auto dispose flag on window objects. 2003-04-22 13:55:23 +00:00
Jack Jansen f776dee6dd Hiding packages was done incorrectly. Fixed. 2003-04-22 13:53:33 +00:00
Jack Jansen 84c2b1b9aa Oops, 'k' is the new format code for un unchecked 32 bit quantity,
not 'K'.
2003-04-17 20:44:21 +00:00
Jack Jansen ecc6635ae4 Converted manually written code to the new K format specifier.
Untested, but at least it still compiles.
2003-04-17 20:40:07 +00:00
Jack Jansen 36b5198381 Refer people to the help pages on failure to load the database. 2003-04-16 12:40:21 +00:00
Jack Jansen 64509b33a7 Added a note on getting 404 Not Found errors when loading the database. 2003-04-16 12:39:03 +00:00
Jack Jansen a950d7b24f Added support for per-user installs.
Don't show psuedo-packages by default, added a button to show them.
Cleaned up interface a little (not enough, though).
2003-04-16 12:17:56 +00:00
Jack Jansen 4323090d95 Adapted GUI for per-user install. Doesn't do anything yet, though 2003-04-15 21:59:42 +00:00
Jack Jansen b60352992f The minimal scripting example now actually works. 2003-04-01 22:30:23 +00:00
Jack Jansen aca44e2771 Added a File->Generate OSA Suite command. 2003-03-31 15:11:14 +00:00
Jack Jansen 71ad9fb74f Added 1-page introductions to creating GUIs in Python and the OSA
interface.
2003-03-31 15:10:46 +00:00
Jack Jansen a942b9931c Moved gensuitemodule from Mac/scripts to Lib/plat-mac. Documentation
remains to be done.
2003-03-29 23:04:01 +00:00
Jack Jansen 1269be5f4a - Added an is_scriptable method to test applications for having
a scripting dictionary. Made up by me, not guaranteed to be correct
  (and, indeed, Internet Explorer does not seem to play by the book).
- Added the interactive main program as a separate routine, so it
  can be called from the IDE later. Also made it less interactive by
  default: only the input app and output package folder are asked for.
2003-03-29 22:54:00 +00:00
Jack Jansen 0fc192a9cd - Prefer using events (in stead of poking around in resource files) to
get terminology resources. Unfortunately there doesn't seem to be any
application I can ask for the basic StdSuites terminology (?).
- Prefer OSX-native versions of applications over OS9 versions.
2003-03-29 00:11:32 +00:00
Jack Jansen 8307e028b2 Sometimes a class is used as a base class of itself. Obviously there's
something I don't understand, but for now ignore this.

Output the file name such that it cannot contain non-ascii characters.
2003-03-29 00:08:24 +00:00
Jack Jansen 00c348328b Sigh: didn't catch all lists that needed to be sorted. 2003-03-28 23:37:05 +00:00
Jack Jansen 03b9c91aff - Sort various lists (list of events, OSA-classes, etc) before generating
code. This makes it a lot easier to compare the generated code for two
different versions of the suite.
- Various tweaks to the code to generate suites without looking at resource
files manually.
2003-03-28 22:04:22 +00:00
Jack Jansen 0e85e7a636 If GetAppTerminology fails (which seems to be the usual case on OSX?)
we try to manually launch the application and send it an ascr/gdte
event to get its terminology.
2003-03-26 23:14:44 +00:00
Jack Jansen a154262e44 Modified to accept a command line argument too. 2003-03-26 14:36:25 +00:00
Jack Jansen 49754af873 Frank Vercruesse gave an okay on removing the copyright notice:
"Hereby I make the script in question available under the terms and
conditions of the latest Python License."
2003-03-25 10:20:55 +00:00
Jack Jansen 7cb016db80 Not all objects have an _propdict and _privpropdict, so cater for that. 2003-03-23 22:05:53 +00:00
Jack Jansen 57c914c1aa Lots of tweaks to make this work in the new setting. Not fully tested yet. 2003-03-22 00:02:23 +00:00
Jack Jansen 8806d47aff Tools to build a disk image with a binary installer for MacPython-OSX,
donated by Robin Dunn and the rest of the wxPythonMac crew.

These are the versions from cvs.wxwindows.org as of 22-Mar-03, checked
in for reference.
2003-03-21 23:52:36 +00:00
Jack Jansen bc4ded9bc0 Give a better error message when a string of the wrong size is
passed to RawBitMap.
2003-03-21 16:42:36 +00:00
Jack Jansen 47345a794f Generate all the standard OSA suite packages. Has absolute pathname
dependencies all over the place, but this is better than nothing, for now.
2003-03-21 16:30:53 +00:00
Jack Jansen 59cdbce9b1 Got rid of the "enum not found" interaction, and added code to allow
overriding the creator signature.
2003-03-21 16:28:09 +00:00
Jack Jansen 714caa0c35 Allow gensuitemodule to be run non-interactively, from the OSX command
line. 90% of the work is done, missing enums still cause a dialog to appear.
2003-03-21 16:07:39 +00:00
Jack Jansen 6fa2dc70b8 Added _csv module, and getting rid of macfs. 2003-03-21 12:56:27 +00:00
Jack Jansen bb829b7c02 Getting rid of macfs. 2003-03-21 12:55:38 +00:00
Jack Jansen 3e0196cc00 Adding unicode filename support to FSRefs broke things on MacOS9. "Fixed" by disabling unicode filenames on OS9. 2003-03-21 12:54:24 +00:00
Jack Jansen 7e0bc112b8 Patch 702620 by Donovan Preston: Fix AE inheritance. 2003-03-21 12:04:19 +00:00
Jack Jansen fe94e97e48 GetCreatorAndType and SetCreatorAndType have been undeprecated. Spotted by
Just.
2003-03-19 22:51:42 +00:00
Jack Jansen 54e7d2c029 Get rid of Mac.pth: plat-mac is now added through the normal mechanism. 2003-03-17 15:45:38 +00:00
Jack Jansen 08801db123 The MacPython introductory help is now called MacPython Help, and the
optional full documentation Python Documentation.
2003-03-16 22:09:22 +00:00
Jack Jansen f3ef038808 - Don't ask for bring-to-front when quitting through an appleevent.
- Changed checkbox labels as suggested by Kevin Ollivier.
2003-03-16 21:04:50 +00:00
Jack Jansen 3fd401321d Lots of textual changes suggested by Matthew Moelter. 2003-03-16 20:41:58 +00:00
Jack Jansen 82f1d2ce17 Add a simple Apple Help book to the framework. 2003-03-11 23:07:08 +00:00
Jack Jansen 8a0b5665c6 Adding MacPython online help. Only the basics are installed, with a
placeholder for the full documentation (pointing to the online docs
and explaining you can also install them locally to make them
searchable, etc).
2003-03-11 22:59:26 +00:00
Jack Jansen 2b477565ad This file was terribly outdated. The example is still silly (and won't
work), but at least the rest of the text is okay now.
2003-03-11 21:50:21 +00:00
Jack Jansen dded84802a Allow unicode pathnames where FSRefs are expected. Fixes 696253. 2003-03-11 21:48:57 +00:00
Jack Jansen 45f5c4ab3e Removed unused variable 2003-03-07 15:37:31 +00:00
Jack Jansen 1d0c6cfd9f Got PythonStandalone to work again, mainly for debugging purposes (it's much easier to debug GUSI errors in a static build). 2003-03-07 15:36:13 +00:00
Jack Jansen fa1bf1c518 First try to use the OSATerminology module to get the terminology
resources before reverting to manually reading the resources.

Unfortunately there is still a bug in here somewhere: it doesn't work
for all applications.
2003-03-06 23:04:38 +00:00
Jack Jansen ee1c85c8eb Various tweaks by Jack because of the different module name, adaptation
to the Python style, etc.
2003-03-06 23:02:59 +00:00
Jack Jansen 86f25fb1d2 Module to get OSA terminology description through the "official channels",
in stead of manually getting the AETE/AEUT resource. Donated by Donovan
Preston. This is his original code (but with the filename changed) checked
in for reference only.
2003-03-06 23:02:04 +00:00
Jack Jansen 62442c295a Fix for bug #697546: don't auto-register the Python documentation
by putting the help book in an array. Somehow the fact that Python.app
(and, hence, pythonw) got an automatic help menu messed up Tkinter's
handling of the help menu.
2003-03-05 16:13:19 +00:00
Jack Jansen 0d58ba9fda These are no longer used. 2003-03-05 09:37:19 +00:00
Jack Jansen 5125c76b68 Gave the text fields a little more space, so they don't get cut off. 2003-03-03 14:56:59 +00:00
Jack Jansen 885d4f6577 Mod to previous checkin: we must require ascii, not system defautl encoding,
because we have no easy way to convert the python encoding string to
a CF encoding parameter.
2003-03-03 13:19:44 +00:00
Jack Jansen d505cab5b3 Accept only the system default encoding when converting Python
strings to CF strings. Fixes 682215.
2003-03-03 13:12:59 +00:00
Jack Jansen 122152451e Don't call AEInteractWithUser unconditionally on a quit appleevent. The
EasyDIalogs methods will call it if needed.

Fixes #684975.
2003-03-03 12:28:04 +00:00
Jack Jansen d5532affd8 Check modes on install and temporary directories. Fixes #693230. 2003-02-28 15:19:51 +00:00
Jack Jansen f1728713cc Removed silly print. 2003-02-28 15:18:59 +00:00
Jack Jansen f92ec2d191 StdFilterProc() uses InOut parameters. 2003-02-27 22:50:50 +00:00
Jack Jansen c00b6d7a0a Added an "Open Recent" command. Fixes 607810. 2003-02-25 15:08:02 +00:00
Jack Jansen 04087b56ec In Mac OS X framework builds don't assume that the executable will be
called python.exe but actually pass it from the main Makefile to
Mac/OSX/Makefile. This makes framework builds work again on case
sensitive filesystems. Fixes bug #677753.
2003-02-25 12:41:10 +00:00
Jack Jansen ec43f64092 Fix building of Idle applet. 2003-02-24 16:30:24 +00:00
Jack Jansen af1d4225b8 Allow specifiying the destination for --extra files (default: same
filename as the source, but in Contents/Resources in the app bundle).
2003-02-24 16:28:37 +00:00
Jack Jansen 8cd9a4fded Added a linkmodel attribute, showing how Python was built. This is so
packages can check that extension modules are built for the right type
of python. Current values can be static, framework, shared and cfm (for
completeness, for MacPyton-OS9).

Closes bug #691889. The reporter suggests backporting this to 2.2.3
and I think I agree.
2003-02-23 23:23:47 +00:00
Jack Jansen 5bb97e66dc Checking mac-specific stuff from the 2.3a2 branch in on the trunk. 2003-02-21 22:33:55 +00:00
Jack Jansen 2bc4a47c86 WASTEconst.py goes one level above the toolbox directory. 2003-02-21 22:11:45 +00:00
Jack Jansen d7c1723742 Added a method WMAvailable(). This will return True if and only if there
is a window manager and we can connect to it, i.e. if it is safe to try
and put up windows.

As a side effect the first call will make the current process frontmost.
2003-02-21 16:31:11 +00:00
Jack Jansen cef2f7cd18 Use pythonw as the default interpreter also for .py scripts (overridable
by the user), as this will cause the least surprises with scripts
brought over from other unixen. Suggested by Kevin Altis.
2003-02-19 10:37:08 +00:00
Jack Jansen 4ccf3e14f0 Undid half of the previous checkin: continue using BuildApplet for most
applets. PackageManager is still built with bundlebuilder itself.
2003-02-18 23:33:39 +00:00
Jack Jansen 3d3b74677a Optionally honour #! paths in scripts. Fixes #676358. 2003-02-17 15:40:00 +00:00
Jack Jansen fd3e54c68e When building an applet clear out the tempfile and dir afterwards. 2003-02-16 21:28:51 +00:00
Jack Jansen d2c684f79f Moved setupDocs.py to Doc/setup.py and did some cleanup. It now at least
allows bdist, but it's still one big hack:-(
2003-02-14 23:46:22 +00:00
Jack Jansen 4ab8437e7f Allow opening of alternate databases. 2003-02-14 14:13:25 +00:00
Jack Jansen f68043c4a9 Got building documentation from source to work. 2003-02-14 12:47:14 +00:00
Jack Jansen c13f19f1fc Icons for the package manager. 2003-02-12 16:20:23 +00:00
Jack Jansen 3a146b6c7d Photoshop source file for package manager icon. 2003-02-12 16:16:52 +00:00
Jack Jansen d78003671a Use bundlebuilder directly to build applets. 2003-02-12 15:42:49 +00:00
Jack Jansen ffb8fef6d5 Allow this to run both standalone and as a window in the IDE. 2003-02-12 15:39:56 +00:00
Jack Jansen a359a3d0ac More int() around float arguments. 2003-02-12 15:39:16 +00:00
Jack Jansen c0452da1b8 Create applets slightly differently: by saving the sourcecode to a
temporary location. This is needed to makethings work with the new
buildtools based on bundlebuilder.
2003-02-12 15:38:37 +00:00
Jack Jansen 113af98c89 Renamed InstallManager to PackageManager, finished a first stab at the
implementation and integrated it into the IDE.
2003-02-12 12:47:56 +00:00
Jack Jansen 9c679f8128 In a MultiList select all cells in the row, not only the first one. 2003-02-12 12:47:00 +00:00
Jack Jansen 73019a6321 An install manager window for the IDE and standalone use. Unfinished. 2003-02-11 23:15:33 +00:00
Jack Jansen 726b238860 - More int() calls around floating point numbers passed where integers are
expected.
- Fixed resizing of multi-column lists, somewhat.
2003-02-11 16:26:26 +00:00
Jack Jansen 658375b833 Got rid of macfs. 2003-02-06 23:13:11 +00:00
Jack Jansen 5a79329547 Got rid of FSSpecs. 2003-02-06 22:57:44 +00:00
Jack Jansen e7ee17c58e Got rid of macfs and FSSpecs in general (pathnames or FSRefs are now
used everywhere).
2003-02-06 22:32:35 +00:00
Jack Jansen f3f4af5521 Got rid of macfs and made a bit more OSX-friendly. 2003-02-05 23:10:46 +00:00
Just van Rossum 19e02fc67f removing old junk 2003-02-05 22:59:07 +00:00
Jack Jansen ab564eea05 Removed unused import of macfs. 2003-02-05 22:53:29 +00:00
Jack Jansen 6d8bca8cb6 I don't think this script serves a useful purpose anymore, and I can't
be bothered to fix it.
2003-02-05 22:52:16 +00:00
Jack Jansen 611b9f6697 Added "Open File by Name" command which presens a filename dialog. If
the clipboard contains a filename that filename is used as the default.
2003-02-05 15:41:09 +00:00
Jack Jansen d424836f3a Cast various floats to ints so we don't get warnings. 2003-02-05 15:40:05 +00:00
Jack Jansen 8d4f06a73a Added itertools module. 2003-02-05 13:36:50 +00:00
Jack Jansen b9fa1a9ec5 Changed an edit instruction because of a changed parameter name (sigh). 2003-02-04 15:35:07 +00:00
Jack Jansen 52377e05be The FSAliasFile routines also have an in/out parameter. 2003-02-02 23:00:21 +00:00
Just van Rossum 3bd8d0fb9c patch #678211 from Robin Dunn 2003-02-01 10:07:28 +00:00
Jack Jansen 60ffc2bafc Added a missing INCREF in pathname(). 2003-01-28 23:29:46 +00:00
Jack Jansen 50abec8fc4 Install "python$(VERSION)" into /usr/local as the symlink to the framework,
and also create a symlink "python" pointing to "python$(VERSION)".
Fixes #675745.
2003-01-28 21:45:44 +00:00
Jack Jansen fd0b00e0a7 Use new file dialogs. 2003-01-26 22:15:48 +00:00
Jack Jansen 2373ff4e4f Fix an omission in the previous checkin. 2003-01-26 22:15:10 +00:00
Jack Jansen b340acf9fd Use new file dialogs. 2003-01-26 21:40:00 +00:00
Jack Jansen df976caa34 Use new file dialogs. 2003-01-26 20:35:47 +00:00
Jack Jansen 2b3ce3ba3f FSRef and EasyDialogs pathname support was pretty much broken in MacPython-OS9. Fixed. 2003-01-26 20:22:41 +00:00
Jack Jansen d44a3ec63c Getting rid of StandardGetFile 2003-01-22 14:03:12 +00:00
Just van Rossum 7a503a4ee6 Fix bug #670845: cut & clear in the output window now work, in that
- clear clears the entire buffer
  - cut doesn't cut, but copies.
2003-01-20 09:02:23 +00:00
Jack Jansen 9c564755b8 Added a convenience routine pathname() which accepts either a string, unicode,
FSSpec or FSRef object and returns an 8-bit pathname (utf8 encoded).
2003-01-19 22:59:52 +00:00
Jack Jansen e58962af4d Fixed the first two bugs in the new file dialogs (found by Just):
- AskFileForSave didn't work for string return values
- filterProc didn't work.
2003-01-17 23:13:03 +00:00
Jack Jansen b2a57722a8 It turns out that some calls return AEDesc records that are "borrowed",
the AEDesc data shouldn't be disposed when the Python object is.

Added a C call AEDesc_NewBorrowed() to create these objects and a Python
method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.
2003-01-17 23:11:17 +00:00
Jack Jansen c99b675ff4 For reasons unknown previewProc and filterProc were disabled. Enabled them. 2003-01-17 16:14:31 +00:00
Jack Jansen 2d0909b9cb Implemented FSCatalogInfo structure support, and used this to implement
FSSpec.SetDates() and GetDates(). Closes #662836.
2003-01-15 22:36:16 +00:00
Jack Jansen bc65521567 Implemented FSCatalogInfo. 2003-01-12 23:01:46 +00:00
Jack Jansen b2fcd086c7 Started on implementing support for FSCatalogInfo. Doesn't work yet, don't
try it.
2003-01-09 23:37:37 +00:00
Just van Rossum c1a9cab8f0 interpret utf-8 file names on OSX 2003-01-09 23:20:31 +00:00
Just van Rossum addc11edf0 removed silly & mask, avoiding FutureWarning 2003-01-09 22:54:37 +00:00
Jack Jansen 3e82872eca Merging the various tweaks for MacPython-OS9 2.3a1 back into the trunk. 2003-01-08 16:27:44 +00:00
Just van Rossum 85e4c6757f correct comment (and add newline at end) 2003-01-04 16:26:26 +00:00
Jack Jansen 5681acbf94 Added zipimport and _random module. 2002-12-30 23:11:30 +00:00
Jack Jansen fb08b4c704 Changed sys.path initializer because of addition of Lib/plat-mac and a few minor
things.
2002-12-30 23:07:44 +00:00
Jack Jansen 83f898c86c Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
knows about plat-mac subdirectories, and configure adds a variable
EXTRAPLATDIR. These together take care of copying Lib/plat-mac to
the destination on darwin.

Adding plat-mac is still done with a .pth file which is only created when
you do a framework build. I'm not 100% happy with this, but fixing it
really needs a functional pythonw in non-framework builds, and I don't
think I can do that before 2.3a1 (but I'll try:-).
2002-12-30 22:23:40 +00:00
Jack Jansen 60087fb450 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on
Mac OS X). The only items remaining in Mac/Lib are modules that are
meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences
in resources, etc).
2002-12-30 22:04:23 +00:00
Jack Jansen 36e142e1e6 This file hasn't been committed for a long time, because it erronuously ended
up in the Carbon package.
2002-12-30 20:20:58 +00:00
Jack Jansen 9911fc4a41 Long-obsolete, replaced by Carbon.Sound. 2002-12-30 20:18:57 +00:00
Jack Jansen f044e090c4 Changed the input field for the interpreter to use (in the preferences
window) to a combobox listing the known interpreters.
2002-12-26 22:10:53 +00:00
Jack Jansen 9431e48d23 macfsn is gone. 2002-12-26 21:17:42 +00:00
Jack Jansen 6dd561bdfd Integrated macfsn into macfs, and made the Standard File calls return the
correct FSSpec implementations.
2002-12-26 21:09:39 +00:00
Jack Jansen 315e9bebcd Return the macfs variation for FSSpec and Alias, not the underlying
Carbon.File version, so the old method names work.
2002-12-26 20:46:54 +00:00
Jack Jansen 248f6f1f73 Second-argument alias methods were generated with a variation on
MethodGenerator, this should be OSErrMethodGenerator.
2002-12-26 20:45:43 +00:00
Jack Jansen 00df3e052b If you entered a pathname for a nonexisting file to a FSSpec constructor
on OSX then the actual error (file not found) was obscured by the
error message that tried to be helpful about the allowed arguments. Fixed.
2002-12-25 22:45:28 +00:00
Jack Jansen cfe28362fb Changed folder name for apps from Python to MacPython-$(VERSION) (for a
normal 2.3 framework install) and MacPython-OSX-$(VERSION) (for the
experimental Jaguar addon install).
2002-12-25 22:31:28 +00:00
Jack Jansen 073ac9fd0e Added File and Folder, removed macfs. 2002-12-24 13:11:19 +00:00
Jack Jansen e77f58a2be Fixed typo. 2002-12-24 13:09:28 +00:00
Jack Jansen e072b876e0 Removed macfs, added File and Folder. 2002-12-24 13:08:52 +00:00
Jack Jansen 487197dd53 Updated for demise of macfs. 2002-12-24 13:07:58 +00:00
Jack Jansen b734869f46 - Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct
  deallocator calls.
2002-12-23 23:16:25 +00:00
Jack Jansen 234d074446 - Various tweaks to forestall compiler warnings. 2002-12-23 22:35:38 +00:00
Jack Jansen ae3cb6cf29 Got rid of Mac/Relnotes, and started on mac-specific release notes in NEWS. 2002-12-23 11:25:49 +00:00
Jack Jansen 6810f92d4d The extension module macfs has been replaced by a pure Python version. 2002-12-19 23:27:58 +00:00
Jack Jansen e87663306a Added the last missing bits of functionality, and fixed a nasty bug where we
could overwrite memory.
2002-12-19 23:26:58 +00:00
Jack Jansen 4235e71acc A replacement for the macfs extension module, implemented with normal
(generated) Carbon module functionality.

Not 100% complete yet, but at least the IDE doesn't crash on startup.
2002-12-19 23:26:07 +00:00
Jack Jansen 4f0e05f738 Gone: the constants have been moved to macfs.py (which, upon import, also
poses as MACFS for backward compatibility).
2002-12-19 23:24:37 +00:00
Jack Jansen f955784f0c Regenerated with inheritance-aware xxxx_Check() macros. 2002-12-19 21:24:35 +00:00
Jack Jansen 543c9253cd - Added rawdata initializers
- Added support for optional FSSpecs and FSRefs to the Alias routines.
  NewAlias and friends are still functions, though, not methods.
2002-12-18 23:17:26 +00:00
Jack Jansen 1795f29b4b Fixed silly typo.
Added comment (to myself) on what still needs to be done.
2002-12-17 23:29:27 +00:00
Jack Jansen 58fc91f947 This module will shortly replace the builtin module macfs. It is not
complete yet, but it should work. It will be finished (and renamed)
shortly.
2002-12-17 23:28:24 +00:00
Jack Jansen ae63756bf8 Include Finder.h too in the list of header files to parse: the finder
constants have tradiationally been in MACFS.py.
2002-12-17 22:22:57 +00:00
Jack Jansen b4289b5771 This now contains constants from Files.h, Aliases.h and Finder.h. 2002-12-17 22:21:57 +00:00
Jack Jansen e55beefed8 - Added as_pathname and as_tuple methods
- Added access to the "data" attribute
- Fixed the FSRef tp_init routine to accept pathnames on OSX
- Changed the FSSpec tp_repr to return something resembling what
  macfs returns.
2002-12-17 22:10:46 +00:00
Jack Jansen e3a1c8f875 Combined alias and file into a single module. This is the only reasonable
way to get various alias creation routines as methods of FSSpec or FSRef
objects (which is the logical thing, from a Python POV). Also started on
the code that will contain all the macfs functionality, so macfs can
becode a Python module, to be used mainly for backward compatibility.
2002-12-15 19:55:07 +00:00
Jack Jansen 3c05c1f01e Got rid of outdated defines. 2002-12-14 00:05:00 +00:00
Jack Jansen 9c17b11a67 Removed errors.rsrc: this is loaded dynamically from :Mac:Lib when needed. 2002-12-14 00:02:34 +00:00
Jack Jansen 9e7da62eab Removed: this is loaded dynamically from :Mac:Lib when needed. 2002-12-14 00:01:47 +00:00
Jack Jansen 1562537cd7 Got rid of EasyDialogs dialogs, which are now in :Mac:Lib:dialogs.rsrc. 2002-12-13 23:53:10 +00:00
Jack Jansen 2519cc8eac Got rid of interpreter-internal dialogs.
Tweaked GetArgv() dialog to look better on OSX.
2002-12-13 23:52:19 +00:00
Jack Jansen 9ea729c624 Got rid of non-carbon stuff, and added new Alias, File and Folder modules. 2002-12-13 23:34:03 +00:00
Jack Jansen 805f1deb67 Tweaked button sizes and hid unused items. 2002-12-13 23:33:28 +00:00
Jack Jansen 19ac481a2c Sigh: the Jaguar workaround for the prefs file broke saving it on OS9. Temporary workaround is to ignore the exception (it's only about file creator/type anyway). 2002-12-13 23:32:51 +00:00
Jack Jansen 9937a04994 Tweaked some button sizes to make them look better on OSX. 2002-12-13 23:31:55 +00:00
Jack Jansen 6d802a0ce3 Tweaks to make this module OS9-compatible. 2002-12-13 23:16:00 +00:00
Jack Jansen b2ef47b84e More pre-carbon stuff bites the dust. 2002-12-13 22:55:09 +00:00
Jack Jansen b132a39399 Removed: not carbon-compatible. 2002-12-13 22:49:24 +00:00
Jack Jansen 3d87e3cdf7 The speech manager interface is no longer supported and a replacement is
(unfortunately: especially the grail demo was hiarious) still missing.
2002-12-13 15:25:26 +00:00
Jack Jansen fcbe5e55f5 Outdated. 2002-12-13 15:18:04 +00:00
Jack Jansen 32f614b895 Got rid of unused Compat files. 2002-12-13 15:16:59 +00:00
Just van Rossum feddf77ad2 another wrong assumption fixed 2002-12-13 15:14:22 +00:00
Jack Jansen 68c8138e89 Still used the old config file. Fixed. 2002-12-13 15:14:00 +00:00
Jack Jansen 04543deb6c Compatibility files that haven't been used in a long time. 2002-12-13 15:05:00 +00:00
Jack Jansen 65cbf93fce Get rid of support for Universal Headers older than 3.4 and various other
outdated things.
2002-12-13 15:02:02 +00:00
Jack Jansen 55309a31df Get rid of 2.2 "poor mans universal newlines" now that the real thing
is implemented.
2002-12-13 13:57:35 +00:00
Jack Jansen 8bf053fead It was an old MacPython artefact that these files were still in the source
tree. Removed them, anyone really desparate to recover them can get them
from the CVS repository.
2002-12-13 13:38:28 +00:00
Jack Jansen bb3e4cb14b Tkinter isn't supported under Carbon. Under MacOSX native it is, but
that version doesn't need these workarounds.
2002-12-13 13:35:33 +00:00
Jack Jansen 5e13951ad7 Very outdated: this is a 68K support file. 2002-12-13 13:33:34 +00:00
Just van Rossum 71fd01c099 and now the real fix... 2002-12-13 11:07:20 +00:00
Just van Rossum 61fcf76294 fixed bool browsing bug, sf bug #652591 2002-12-13 10:58:10 +00:00
Jack Jansen 6c7e326eaa Getting rid of pre-Carbon (MacOS8) support. All code depending on
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some
TARGET_API_MAC_OSX conditional code is gone, because it is no longer
used on OSX-only Python (only in MacPython-OS9).
2002-12-12 10:31:54 +00:00
Jack Jansen 5f61a05d7f Fixed so the Res.Resource() accepts either another resource, a string
or no argument (giving an empty resource).
2002-12-05 23:26:38 +00:00
Jack Jansen 96cebde909 Added PEP253 support to most Carbon modules. This isn't complete yet:
some of the more compilcated cases (CF, Res) haven't been done yet. Also,
various types should inherit from each other (anything with an as_Resource
method should be a Resource subtype, the CF types should become one family).
2002-12-03 23:40:22 +00:00
Just van Rossum 927bc451c4 - reworked the object unpacking code, now supports new-style objects more
or less decently/completely.
- cleaned up a little.
2002-12-01 22:10:36 +00:00
Just van Rossum 888e100356 - found a case where sys.path[0] isn't set to Contents/Resources,
so search the entire path.
- only add modules if we're building a standalone application.
2002-11-30 19:56:14 +00:00
Jack Jansen 362c7cd07b Lots of minor tweaks for the pep252 checkins, mainly because Qd
attributes are no longer supported.
2002-11-30 00:01:29 +00:00
Jack Jansen 202355a333 Build _AE too. 2002-11-29 23:58:51 +00:00
Jack Jansen dbd5701d73 Converted the Carbon modules to use PEP252-style objects, with
descriptors in stead of manual getattr hooks to get at attributes
of the objects.

For Qd I have in stead gotten rid of most of the attribute access
in favor of the carbon-style accessor methods (with the exception
of visRgn, to be done later), and of the Carbon.Qd.qd global object,
for which accessor functions are also available.

For List I have fixed the fact that various methods were incorrectly
generated as functions.

CF is untouched: PEP252 doesn't allow "poor-mans-inheritance" with
basechain, so it will have to wait for PEP253 support.
2002-11-29 23:40:48 +00:00
Just van Rossum 24884f76c6 Forgot to do os.path.basename() on mainprogram: a nonworking app was built if the mainprogram wan't in the current directory. Fixed. 2002-11-29 21:22:33 +00:00
Just van Rossum 535ffa26e6 added Thomas H's LOADER code for importing extension (sub)modules; little tweaks 2002-11-29 20:06:52 +00:00
Just van Rossum ad692ccde1 fixed typo and wrapping 2002-11-28 18:56:50 +00:00
Just van Rossum 74bdca8a20 - Rewrote bootstapping code in sh so we're really independent of an
installed Python. So we don't use os.execve any longer, which means
we need an actual executable in <myapp>.app/Contents/MacOS. For applets
we make a symlink to the Python executable used to build the applet,
for standalone apps we simply copy it.
- Added support for the new any_missing_maybe() feature of modulefinder.py,
which is pending as patch #643711. Its use is optional so it still works
with the existing version of modulefinder.py
2002-11-28 11:30:56 +00:00
Just van Rossum cef3288247 added support for building standalone applications
- requires modulefinder.py to be on sys.path
- does *not* work for Python.framework (yet), only for static builds
2002-11-26 00:34:52 +00:00
Jack Jansen 2095c06cec Lots of restructuring, mostly suggested by Bill Bumgarner. Main
externally visible difference is that the factory defaults are
now in a plist file in the bundle, in stead of being hard-coded in
the application.
2002-11-25 13:11:06 +00:00
Just van Rossum e6b49025c1 get creator code from plist if available, instead of overriding with default 2002-11-24 01:23:45 +00:00
Just van Rossum b8829b49b2 whoops, -p actually has an argument 2002-11-24 01:15:20 +00:00
Just van Rossum 761b6095bd hardcode some resources, removing annoying Widgets.rsrc dependency 2002-11-24 01:01:07 +00:00
Just van Rossum da302da912 cleaned up __init__ argument mess with a funky base class 2002-11-23 22:26:44 +00:00
Jack Jansen 4b5c7a4f47 Allow access to the returned value(s) as FSRefs. Unfortunately for some
reason getting at saveFileName doesn't work, so it currently only really
works for opening files for reading.
2002-11-22 23:39:52 +00:00
Jack Jansen d0e59fb68d Added the alias manager too. The interface isn't perfect yet: the alias
manager doesn't always have the alias as the first argument, so things
become functions in stead of methods.
2002-11-22 15:53:32 +00:00
Jack Jansen e2ba87396c Got angry and added support for pretty much the whole file and folder
manager. This should allow us the get rid of most of the FSSpecs, only
navigation services remains to be done.
2002-11-22 14:58:35 +00:00
Just van Rossum 62a103b2fc workaround so the (otherwise still broken) IDE can at least quit in the Python 2.2 Jaguar addon install 2002-11-22 12:48:47 +00:00
Just van Rossum db2a0f6778 changed to use Lib/bundlebuilder.py instead of scripts/buildappbundle.py 2002-11-22 11:52:15 +00:00
Just van Rossum e6de56e81c make the --link option match the original: just symlink the executable 2002-11-22 11:45:42 +00:00
Just van Rossum 16aebf77c7 Added --link-exec option: make a symlink for the executable only, copy all other files. 2002-11-22 11:43:10 +00:00
Just van Rossum 224405fcfd Replaced the bundle building code with calls to the new bundlebuilder
module.
Jack: I've compared the .app output of the orginal with the new and I
can't find any significant differences. However, bundlebuilder.py
contains its' own command line interface and I think we should use
that instead. I'll have a look to see whether I can patch
Mac/OSX/Makefile.jaguar to this effect.
2002-11-22 11:10:49 +00:00
Just van Rossum f7aba23644 fixed error in cmd line doc; moved funny self.name line once more 2002-11-22 00:31:50 +00:00