[pywin32-checkins] pywin32/com/win32com universal.py,1.12,1.13
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-06-08 05:19:17
|
Update of /cvsroot/pywin32/pywin32/com/win32com In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2167 Modified Files: universal.py Log Message: * Allow _com_interfaces_ to be IIDs *and* interface names from a typelib. Previously you could not mix and match * Allow IID-like strings to be specified in _com_interfaces_ * Raise a value error when an invalid interface name is passed for registration * Tests Index: universal.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/universal.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** universal.py 2 Nov 2003 10:09:05 -0000 1.12 --- universal.py 8 Jun 2005 05:19:03 -0000 1.13 *************** *** 32,35 **** --- 32,39 ---- for name in interface_names: type_info, type_comp = typecomp_lib.BindType(name, ) + # Not sure why we don't get an exception here - BindType's C + # impl looks correct.. + if type_info is None: + raise ValueError, "The interface '%s' can not be located" % (name,) # If we got back a Dispatch interface, convert to the real interface. attr = type_info.GetTypeAttr() |