summaryrefslogtreecommitdiff
path: root/Mac/scripts/gensuitemodule.py
Commit message (Collapse)AuthorAgeFilesLines
* Moved gensuitemodule from Mac/scripts to Lib/plat-mac. DocumentationJack Jansen2003-03-291-1132/+0
| | | | remains to be done.
* - Added an is_scriptable method to test applications for havingJack Jansen2003-03-291-12/+55
| | | | | | | | 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.
* Sometimes a class is used as a base class of itself. Obviously there'sJack Jansen2003-03-291-2/+6
| | | | | | something I don't understand, but for now ignore this. Output the file name such that it cannot contain non-ascii characters.
* Sigh: didn't catch all lists that needed to be sorted.Jack Jansen2003-03-281-4/+22
|
* - Sort various lists (list of events, OSA-classes, etc) before generatingJack Jansen2003-03-281-10/+25
| | | | | | | 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.
* If GetAppTerminology fails (which seems to be the usual case on OSX?)Jack Jansen2003-03-261-11/+45
| | | | | we try to manually launch the application and send it an ascr/gdte event to get its terminology.
* Not all objects have an _propdict and _privpropdict, so cater for that.Jack Jansen2003-03-231-3/+3
|
* Got rid of the "enum not found" interaction, and added code to allowJack Jansen2003-03-211-20/+43
| | | | overriding the creator signature.
* Allow gensuitemodule to be run non-interactively, from the OSX commandJack Jansen2003-03-211-22/+79
| | | | line. 90% of the work is done, missing enums still cause a dialog to appear.
* Patch 702620 by Donovan Preston: Fix AE inheritance.Jack Jansen2003-03-211-6/+7
|
* First try to use the OSATerminology module to get the terminologyJack Jansen2003-03-061-9/+36
| | | | | | | resources before reverting to manually reading the resources. Unfortunately there is still a bug in here somewhere: it doesn't work for all applications.
* Use new file dialogs.Jack Jansen2003-01-261-32/+30
|
* 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