TypeLib for Python COM Server?

Bill Tutt billtut at microsoft.com
Fri Jul 14 08:35:08 EDT 2000


No, no, no... no need for a brand new policy...

>From the MappedWrapPolicy doc string:

     _dispid_to_func_/_dispid_to_get_/_dispid_to_put_ -- These are
dictionaries
       (keyed by integer dispid, values are string attribute names) which
the COM
       implementation uses when it is processing COM requests.  Note that
the implementation
       uses this dictionary for its own purposes - not a copy - which means
the contents of 
       these dictionaries will change as the object is used.

Bill


 -----Original Message-----
From: 	Stefan Migowsky [mailto:smigowsky at dspace.de] 
Sent:	Thursday, July 13, 2000 11:58 PM
To:	'John Lull'; python-list at python.org
Subject:	RE: TypeLib for Python COM Server?

Hi, 

use a special policy as shown in the example

...\python\win32com\servers\dictionary.py 

There are the invoke and getidsofnames of the dispatch
interface overwritten to provide the special
DISPIDs

  Stefan


>-----Original Message-----
>From: John Lull [mailto:lull at acm.org]
>Sent: Friday, July 14, 2000 3:57 AM
>To: python-list at python.org
>Subject: Re: TypeLib for Python COM Server?
>
>
>Bill Tutt <billtut at microsoft.com> wrote:
>
>> Don't rely on the 1000 thing. You should specifically 
>declare the dispid's
>> in the Python class.
>
>How?
>
>Thanks,
>John
>-- 
>http://www.python.org/mailman/listinfo/python-list
>

-- 
http://www.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list