Python COM: Unable to create server-side object.

Bill Bell bill-bell at bill-bell.hamilton.on.ca
Fri Jun 22 07:16:32 EDT 2001


Your e-mail includes plot, climax and denouement ... .

Argh, I'm not observant enough, and too new to Python COM, to 
have noticed that. On behalf of all in similar circumstances--
THANKS!! Fantastic.

Bill

On 22 Jun 2001, at 10:31, Mark Hammond wrote:

> Bill Bell wrote:
> 
>  From the end of your mail:
> 
>  > File "c:\python21\win32com\server\policy.py", line 448, in _wrap_ >
>  raise error, "Object does not support DesignatedWrapPolicy" >
>  win32com.server.policy error: Object does not support 
> DesignatedWrapPolicy
> 
> 
> This means that _public_methods_ does not exist.  (hrm - so why
> doesn't the error actually say that you ask!  It should!  It will!)
> 
> >>  class Short:
> >>      _reg_clsid_ = "{74471ADF-9453-4135-87E6-22E1B9499B0D}"
> >>      _reg_progid_ = "Python.Short"
> >>      _reg_desc_ = "PythonCOM test"
> >>      _public_methods = ["isShort"]
> 
> 
> Trailing underscore missing!





More information about the Python-list mailing list