summaryrefslogtreecommitdiffstats
path: root/Mac/scripts/gensuitemodule.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed incorrect logic in determining whether we should initializeJack Jansen2002-08-071-2/+1
| | | | the classes' attribute list.
* - If an OSA identifier is a Python reserved word we now append an _Jack Jansen2002-08-071-8/+10
| | | | | | in stead of prepending it, which messes up "import * from". - A few ascii()s added again. - Changed the getbaseclasses a little, but it still isn't perfect.
* Don't be over-enthusiastic with the ascii() calls: we don't need it ifJack Jansen2002-08-071-19/+19
| | | | the result passes through backticks.
* Donovan Preston's patch #538395, with some mods by me.Jack Jansen2002-08-071-30/+86
| | | | | | | | | | | | This patch makes inheritance for OSA classes work. The implementation is a bit convoluted, but I don't immedeately see a simpler way of doing it. I added calls to ascii() everywhere we output strings that may contain non-ascii characters (Python has gotten very picky since the encoding patch:-). I also removed Donovan's different way of opening resource files: I don't seem to need it.
* First part of fix for #493826: if 'errn' key exists in return value this ↵Jack Jansen2002-04-231-1/+1
| | | | | | | | doesn't necesarily signal an error, only if the value is non-zero it does. This does not correspond with my reading of the documentation, but the OSX Finder can return 'errn'=0, and it knows better than me:-) Bugfix candidate.
* Modified to allow it to run in MachoPython in a reasonable way. It stillJack Jansen2002-03-301-10/+17
| | | | needs a decent commandline interface, though.
* Get rid of keyword list and use keyword.iskeyword() function (which I wasn't ↵Jack Jansen2002-01-241-7/+3
| | | | aware of previously).
* "yield" is also a keyword. Spotted by Neal Norwitz.Jack Jansen2002-01-241-1/+1
|
* (Much) better list of Python keywords, supplied by Michael J. Barber.Jack Jansen2002-01-231-3/+5
|
* Identify() enum values. This was changed in 1.14, but I don't think it is a ↵Jack Jansen2002-01-221-1/+5
| | | | good idea.
* Import the MacOS toolbox modules from the Carbon package.Jack Jansen2001-08-251-1/+1
|
* Use string.ascii_letters instead of string.letters (SF bug #226706).Fred Drake2001-07-201-1/+1
|
* Only output the code to alias properties if the names aren't the same.Jack Jansen2000-08-221-0/+2
|
* - identify() enum names.Jack Jansen2000-08-201-2/+3
| | | | | - don't identify() enum values. - make aetools.Error available in the package module.
* Enums we cannot find are set to None, and enumsubst understands this (no ↵Jack Jansen2000-08-201-4/+5
| | | | substitution done). This is need for what I think are bugs in the Finder aete resources (some events use unknown enums).
* Fixed event inheritance code (which didn't work at all).Jack Jansen2000-08-201-117/+239
| | | | Do two passes over the suites so we can figure out dependencies for enums and such. The manual method was getting too cumbersome for Finder suites.
* Generate packages in stead of separate modules. The package main module ↵Jack Jansen2000-08-171-22/+120
| | | | imports everything, it knows about the app signature, suites can extend standard suites, and lots more. Automatically finding declarations in other suites TBD.
* Fixed multi-arg appends.Jack Jansen2000-03-071-1/+1
|
* Generate class, property and comparison code (finally!). The resultingJack Jansen1997-08-081-41/+201
| | | | | | code isn't ideal yet: xxx.Window(1).Paragraph(3).font will only work if all the classes and properties are declared in the same suite, but at least font(Paragraph(3, Window(1))) always works.
* raise aetools.Error in stead of MacOS.Error on server-generated errorsJack Jansen1996-09-201-1/+1
|
* Fixed code generated for an argument of type ****Jack Jansen1996-04-161-1/+2
|
* Removed addpack calls for toolbox modules, re-binhexed resources (sigh)Jack Jansen1996-03-201-5/+0
|
* Changed creator from PYTH to PythJack Jansen1996-03-181-1/+1
|
* Fixed bug in optional argument error checking (and generated allJack Jansen1995-10-091-5/+11
| | | | suites anew).
* Modified/recreated to use keyword argumentsJack Jansen1995-10-031-36/+22
|
* Added prompt to getfile dialogJack Jansen1995-08-141-1/+1
| | | | Renumbered resources
* Gensuitemodule generates python classes from aete/aeut resourcesJack Jansen1995-07-171-0/+474
test_suite is a tiny test program for such a generated class