Commit Graph

609 Commits

Author SHA1 Message Date
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
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
fe94e97e48 GetCreatorAndType and SetCreatorAndType have been undeprecated. Spotted by
Just.
2003-03-19 22:51:42 +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
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
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
f92ec2d191 StdFilterProc() uses InOut parameters. 2003-02-27 22:50:50 +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
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
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
Jack Jansen
60ffc2bafc Added a missing INCREF in pathname(). 2003-01-28 23:29:46 +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
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