import win32com.server.policy
class MappedWrapPolicy(BasicWrapPolicy) def _getidsofnames_(self, names, lcid) def _wrap_(self, object) # Methods inherited by MappedWrapPolicy from BasicWrapPolicy def _CreateInstance_(self, clsid, reqIID) def _GetIDsOfNames_(self, names, lcid) def _Invoke_(self, dispid, lcid, wFlags, args) def _QueryInterface_(self, iid) def __init__(self, object) def _invoke_(self, dispid, lcid, wFlags, args) def _query_interface_(self, iid)
This policy wraps up a Python object, using a number of maps which translate from a Dispatch ID and flags, into an object to call/getattr, etc.
It is the responsibility of derived classes to determine exactly how the maps are filled (ie, the derived classes determine the map filling policy.
This policy supports the following special attributes on the wrapped object
Creates a new instance of a wrapped object
This method looks up a "win32com.server.policy.regSpec" % clsid entry in the registry (using DefaultPolicy)
The main COM entry-point for GetIDsOfNames.
This checks the validity of the arguments, and calls the _getidsofnames_ helper.
The main COM entry-point for Invoke.
This calls the _invoke_ helper.
The main COM entry-point for QueryInterface.
This checks the _com_interfaces_ attribute and if the interface is not specified there, it calls the derived helper _query_interface_
Initialise the policy object
Params:
Simply raises an exception.
Called if the object does not provide the requested interface in _com_interfaces, and does not provide a _query_interface_ handler.
Returns a result to the COM framework indicating the interface is not supported.
Copyright © Greg Stein and Mark Hammond
All Rights Reserved
Comments to author: dev@null
Generated: Sun Apr 20 1997