Instead of waiting any longer, I've released the current code as version 0.4.0.

Download at http://sourceforge.net/project/showfiles.php?group_id=115265

The most important changes:

- Several bugfixes and improvements.
- Completely rewritten safearray implementation.
- Support for propput and propputref COM properties.
- Added support for UDT (user defined datatypes).

Here is the changelog:

2007-11-02  Thomas Heller  <[EMAIL PROTECTED]>

        * Bump version number to 0.4.0.
        Released version 0.4.0.

        * In _wrap_coclass, attach a __clsid attribute to the returned
        object. This allows, for example, to find outgoing interfaces when
        a CoClass is returned from a COM method call.

2007-10-26  Thomas Heller  <[EMAIL PROTECTED]>

        * Implemented property get, put, and putref with arguments
        in comtypes.client.dynamic.

        * When a COM property has both propput and propputref accessor
        methods, the Python property fset methods determines the type of
        the argument.

        If the argument is a COM interface pointer, or a VARIANT
        containing one, then propputref is called, otherwise proput is
        called to set the property.

        * Allow the creation of SAFEARRAY(UDT) types even if the UDT has
        no _recordinfo_.  Creating instances of these types will fail
        however since no IRecordInfo pointer can be created.  This change
        allows to import typelib wrappers that have UDTs without guids.

2007-10-24  Thomas Heller  <[EMAIL PROTECTED]>

        * When a COM property has a 'propputref' but no 'propput' accessor
        method, use the former in the same way as a 'propput' would work.
        When both 'propputref' and 'propput' are present, raise a
        TypeError because we cannot handle this case for now.

        * Fixed infinit recursion error in __getattr__ implementation.
        
        * comtypes.dynamic._Dispatch now implements a __setattr__ methods
        that will call to Invoke() with DISPATCH_PROPERTYPUT or
        DISPATCH_PROPERTYPUTREF.
        
        * Handle DISPATCH_PROPERTYPUTREF in IDispatch.Invoke
        implementation.

        * comtypes.dynamic._Dispatch objects can now be used as VARIANT
        value.

2007-10-22  Thomas Heller  <[EMAIL PROTECTED]>

        * The repr of a COM pointer instance now includes the pointer
        value for easier debugging.

2007-10-17  Thomas Heller  <[EMAIL PROTECTED]>

        * Disable the VT_UNKNOWN and VT_DISPATCH safearray codes, they do
        not work yet.

        * More multidimensional safearray tests, bug fixes.
        
        * Speed up the unpacking of 1- and 2-dimensional safearrays.
        
        * Lots of refatoring of the new SAFEARRAY code; added a docstring
        to the public function comtypes.safearray._midlSAFEARRAY.

        * For easier debugging, the repr of a VARIANT instance now
        contains the vartype.

2007-10-16  Thomas Heller  <[EMAIL PROTECTED]>

        * Changed version number to 0.3.4.
        
        * Mega-patch: Completely rewritten safearray support.  SAFERARRAYs
        are now automatically converted to Python tuples when they are
        received as [out] parameters in COM methods, and sequences are
        accepted as SAFEARRAY [in] parameters.  Multidimensional safearray
        support still has to be added.

        * VARIANTs can now also contain SAFEARRAYs.  VARIANTs containing
        SAFEARRAYs with a typecode other than VT_VARIANT, Python
        array.array instances can be used.

        * Added a comtypes.messageloop module that contains a simple
        messageloop which allows to add and remove custom filter functions.

        * Removed the comtypes.client.PumpWaitingMessages function.

        * Fixed the codegenerator so that it handles unnamed method
        parameters.

2007-10-04  Thomas Heller  <[EMAIL PROTECTED]>

        * Several refactorings and a small bugfix from the upstream
        repository.

        * In the comtypes\gen\... type library wrappers, the code
        generator now creates a commented out template that shows an
        implementation for each interface it wraps.

2007-10-02  Thomas Heller  <[EMAIL PROTECTED]>

        * comtypes.safearray.UnpackSafeArray can now unpack SAFEARRAYs
        that containt UDT (user defined data types).  Patch by Rimon Barr,
        testcase by me.



And thanks to all the feedback I got.
Thomas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to