[pywin32-checkins] pywin32/com/win32com/servers test_pycomtest.py,1.8,1.9
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/servers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2167/servers Modified Files: test_pycomtest.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: test_pycomtest.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/servers/test_pycomtest.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** test_pycomtest.py 31 May 2005 12:36:02 -0000 1.8 --- test_pycomtest.py 8 Jun 2005 05:19:04 -0000 1.9 *************** *** 127,131 **** --- 127,143 ---- self.intval = val + class PyCOMTestMI(PyCOMTest): + _typelib_guid_ = "{6BCDCB60-5605-11D0-AE5F-CADD4C000000}" + _typelib_version = 1,0 + # Interfaces with a interface name, a real IID, and an IID as a string + _com_interfaces_ = ['IPyCOMTest', + pythoncom.IID_IStream, + str(pythoncom.IID_IStorage), + ] + _reg_clsid_ = "{F506E9A1-FB46-4238-A597-FA4EB69787CA}" + _reg_progid_ = "Python.Test.PyCOMTestMI" + if __name__ == '__main__': import win32com.server.register win32com.server.register.UseCommandLine(PyCOMTest) + win32com.server.register.UseCommandLine(PyCOMTestMI) |