Jack Jansen [Mon, 13 Dec 1999 16:04:48 +0000 (16:04 +0000)]
Methods {Get,Set}ControlData that know about data types passed for the various
4-char codes. The table which maps codes to datatypes is still pretty empty,
I'll fill it as I need entries (or maybe someone wants to spend a nice day filling it?).
Jack Jansen [Sun, 12 Dec 1999 22:57:51 +0000 (22:57 +0000)]
Updated Message, question, YNC and progress dialogs for Appearance. Password
remains to be done, and maybe we should convert everything to movablemodal too
and make things like question look nicer.
Jack Jansen [Sun, 12 Dec 1999 22:57:29 +0000 (22:57 +0000)]
In places where a ResObj is expected for PyArg_Parse and the object passed in isn't but it does have an as_Resource method use that. This makes life a lot easier
for appearance portability (and was needed anyway).
Jack Jansen [Sun, 12 Dec 1999 21:56:56 +0000 (21:56 +0000)]
Regenerated toolbox modules with CW Pro 5.2, which has MacOS 8.6 and Appearance 1.1 support, and added workaround for non-existing calls for 68K.
Static 68K Python still has a tk problem.
Jack Jansen [Sun, 12 Dec 1999 21:38:29 +0000 (21:38 +0000)]
Dummy functions which return unimpErr for lots of toolbox calls that are unavailable for 68K. This way we don't have to disable thm in bgen, so we
can still use them on PPC.
Greg Ward [Sun, 12 Dec 1999 17:07:22 +0000 (17:07 +0000)]
Catch missing MANIFEST file and warn rather than blowing up.
Added 'nuke_release_tree()' method to blow away the directory from
which the archive file(s) are created, and call it (conditionally)
from 'make_distribution()'.
Added 'keep_tree' option (false by default) to disable the call to
'nuke_release_tree()'.
Greg Ward [Sun, 12 Dec 1999 17:03:59 +0000 (17:03 +0000)]
Fixed 'find_package_modules()' to ensure that we never build (and thus
install) the setup script itself.
Fixed 'build_module()' so we do *not* preserve file mode (which means
we can install read-only files, which makes the next installation
of this distribution fail -- at least under Unix); added a comment
explaining this.
Greg Ward [Sun, 12 Dec 1999 17:01:01 +0000 (17:01 +0000)]
Changed 'build_extensions()' so 'sources' can be a list or tuple; and
call CCompiler method 'compile()' with 'include_dirs' not 'includes'.
Fixed stupid typo in 'get_source_files()'.
Greg Ward [Sun, 12 Dec 1999 16:57:47 +0000 (16:57 +0000)]
In 'compile()' method, renamed 'includes' parameter to 'include_dirs' for
consistency with 'build_ext' command option.
Changed 'compile()' and 'link_shared_object()' so 'include_dirs',
'libraries', and 'library_dirs' can be lists or tuples.
Greg Ward [Sun, 12 Dec 1999 16:54:55 +0000 (16:54 +0000)]
Added support for printing out help text from option table: 'print_help()',
'generate_help()', 'wrap_text()' functions, and a little tiny test
of 'wrap_text()'.
Changed how caller states that one option is the boolean opposite of
another: added 'negative_opt' parameter to 'fancy_getopt()', and changed
to use it instead of parsing long option name.
Greg Ward [Sun, 12 Dec 1999 16:51:44 +0000 (16:51 +0000)]
Made "verbose" mode the default; now you have to supply --quiet if you
want no output. Still no option for a happy medium though.
Added "--help" global option.
Changed 'parse_command_line()' to recognize help options (both for the
whole distribution and per-command), and to distinguish "regular run"
and "user asked for help" by returning false in the latter case.
Also in 'parse_command_line()', detect invalid command name on command
line by catching DistutilsModuleError.
a 'negative_opt' class attribute right after 'global_options'; changed
how we call 'fancy_getopt()' accordingly.
Initialize 'maintainer' and 'maintainer_email' attributes to Distribution
to avoid AttributeError when 'author' and 'author_email' not defined.
Initialize 'help' attribute in Command constructor (to avoid
AttributeError when user *doesn't* ask for help).
In 'setup()':
* show usage message before dying when we catch DistutilsArgError
* only run commands if 'parse_command_line()' returned true (that
way, we exit immediately when a help option is found)
* catch KeyboardInterrupt and IOError from running commands
Bulked up usage message to show --help options.
Comment, docstring, and error message tweaks.
Fred Drake [Thu, 9 Dec 1999 21:13:07 +0000 (21:13 +0000)]
Added support for abort(), ctermid(), tmpfile(), tempnam(), tmpnam(),
and TMP_MAX.
Converted all functions that used PyArg_Parse() or PyArg_NoArgs() to
use PyArg_ParseTuple() and specified all function names using the
:name syntax in the format strings, to allow better error messages
when TypeError is raised for parameter type mismatches.
Jack Jansen [Tue, 7 Dec 1999 23:08:10 +0000 (23:08 +0000)]
First bits and pieces of appearance support: an init routine, a global flag PyMac_AppearanceCompliant (exported thru MacOS). If USE_APPEARANCE
is off the code is disabled (but the variables are still there, set to 0).
OpenSSL support. This is based on patches for a version of SSLeay by
Brian E Gallew, which were improved and adapted to OpenSSL 0.9.4 by
Laszlo Kovacs of HP. Both have kindly given permission to include
the patches in the Python distribution. Final formatting by GvR.
OpenSSL support. This is based on patches for a version of SSLeay by
Brian E Gallew, which were improved and adapted to OpenSSL 0.9.4 by
Laszlo Kovacs of HP. Both have kindly given permission to include
the patches in the Python distribution. Final formatting by GvR.
Jack Jansen [Fri, 3 Dec 1999 23:38:05 +0000 (23:38 +0000)]
Set the finder "is shared" bit, by request of Joe Strout. It seems this allows multiple simultaneous copies to be run from a server, and Applets shouldn't
write their datafork so it appears safe.
Greg Ward [Fri, 3 Dec 1999 16:18:56 +0000 (16:18 +0000)]
[from 1999-11-04]
Bunch of little bug fixes that appeared in building non-packagized
distributions. Mainly:
- brain-slip typo in 'get_package_dir()'
- don't try to os.path.join() an empty path tuple -- it doesn't like it
- more type-safety in 'build_module()'
Jack Jansen [Fri, 3 Dec 1999 16:08:50 +0000 (16:08 +0000)]
Default schedparams set to (0,0): no event-intervention by Python mainloop. This
was always meant to be the default, and the new example-2 was pretty critical
of this.
Jack Jansen [Thu, 2 Dec 1999 22:52:12 +0000 (22:52 +0000)]
Give a warning if system-wide sys.argv processing is off (because then we
may have missed an applet being dropped on us). This may fix the obscure bug
Tony Ingraldi was experiencing.
Guido van Rossum [Tue, 30 Nov 1999 15:00:00 +0000 (15:00 +0000)]
In abspath(), always use normpath(), even when win32api is available
(and even when it fails). This avoids the problem where a trailing
separator is not removed when win32api.GetFullPathName() is used.
Fred Drake [Tue, 23 Nov 1999 21:52:03 +0000 (21:52 +0000)]
rewrite_descriptor(): Fixup conversion of arguments (simpler).
join_adjacent_elements(): Hack to merge adjacent instances of
<option>; the source \programopt with GNU-style long options
created problems with LaTeX2HTML; this removes the evil
workaround, which should never be necessary from structured
documents(!).
Greg Stein [Sat, 20 Nov 1999 11:22:37 +0000 (11:22 +0000)]
shift code from DirectoryImporter out to a common area.
remove use of "os" module (bootstrap issues) and go to the underlying
platform-specific modules
fix problem in _compile() (trapped wrong error on permission issues)
add SysPathImporter and BuiltinImporter
put __file__ into modules imported from the filesystem. [backwards compat]
put __path__ into modules [backwards compat]
oops: it is doing this for all modules, not just packages.
comment and tweak to the PackageArchiveImporter
Fred Drake [Fri, 19 Nov 1999 21:57:56 +0000 (21:57 +0000)]
Moved all the imports to the top.
Use the methods on the AST object instead of module-level functions;
these have been implemented for a couple of versions now, and are
already used in the module documentation in preference to the
functions.
Fred Drake [Thu, 18 Nov 1999 20:56:29 +0000 (20:56 +0000)]
When generating the top-level index to the documents, make sure some
oddball things from the LaTeX get translated to rational values. This
is mostly to keep things from looking broken in a development tree
when they're not.
Guido van Rossum [Thu, 18 Nov 1999 17:51:02 +0000 (17:51 +0000)]
Patches by Kannan Vijayan:
new:
readline.get_begidx() -> int
gets the beginning index in the command line string
delimiting the tab-completion scope. This would
probably be used from within a tab-completion
handler
readline.get_endidx() -> int
gets the ending index in the command line string
delimiting the tab-completion scope. This would
probably be used from within a tab-compeltion
handler
readline.set_completer_delims(string) -> None
sets the delimiters used by readline as word breakpoints
for tab-completion
readline.get_completer_delims() -> string
gets the delimiters used by readline as word breakpoints
for tab-completion
fixed:
readline.get_line_buffer() -> string
doesnt cause a debug message every other call
Guido van Rossum [Wed, 17 Nov 1999 15:04:26 +0000 (15:04 +0000)]
Samuel L. Bayer:
- same trick with "import wcnew; webchecker = wcnew" as above
- updated readhtml() method to handle pair representation; used
new name suppression infrastructure from wcnew.py to suppress
processing name anchors
Guido van Rossum [Wed, 17 Nov 1999 15:03:52 +0000 (15:03 +0000)]
Samuel L. Bayer:
- added -t and -a arguments
- added "import wcnew; webchecker = wcnew" in place of "import
webchecker" (I assume that if you're happy with the changes, you'll
just replace webchecker.py with wcnew.py, but if I were to do that,
the diffs would be incomprehensible)
- fixed buggy -v argument (I think you got out of sync with the
way verbosity was handled in webchecker vs. wcgui between 1.5 and
1.5.2)
- made -v actually do something by adding a call to c.setflags()
(probably the same problem as above)
- updated references to URLs to accommodate wcnew.py's pair
representation; added appropriate calls to format_url() to handle
display; added argument to ListPanel() initialization to provide
access to format_url()
Guido van Rossum [Wed, 17 Nov 1999 15:02:53 +0000 (15:02 +0000)]
Samuel L. Bayer:
- same fixes from webchecker.py
- incorporated small diff between current webchecker.py and 1.5.2
- fixed bug where "extra roots" added with the -t argument were being
checked as real roots, not just as possible continuations
- added -a argument to suppress checking of name anchors
Guido van Rossum [Wed, 17 Nov 1999 15:00:14 +0000 (15:00 +0000)]
Samuel L. Bayer:
- forced new done origins to set errors if they're in self.bad (fixes
bug where only the first of a number of errorful references to a
link is reported under some circumstances)
- suppressed adding duplicates to self.todo list (cleans up printout
in wcgui details)
Guido van Rossum [Tue, 16 Nov 1999 15:57:37 +0000 (15:57 +0000)]
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Duzan, for AIX, to support C++ objects with static initializers, when
using the genuine IBM C++ compiler (namely xlC/xlC_r).
See accompanying patches to acconfig.h and importdl.c.
Guido van Rossum [Tue, 16 Nov 1999 15:55:00 +0000 (15:55 +0000)]
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Duzan, for AIX, to support C++ objects with static initializers, when
using the genuine IBM C++ compiler (namely xlC/xlC_r).
See accompanying patches to configure.in and importdl.c.
Guido van Rossum [Tue, 16 Nov 1999 15:54:16 +0000 (15:54 +0000)]
Patch by Vladimir Marangozov, inspired by a bug report from Gary
Duzan, for AIX, to support C++ objects with static initializers, when
using the genuine IBM C++ compiler (namely xlC/xlC_r).
See accompanying patches to configure.in and acconfig.h.