Well, it seems I can only blame myself for this.. :-/

The module with my server class had a "from xxx import * " statement. One of the classes in the imported module had a custom __getattr__ method, and this fooled the win32com.server.register code into thinking it was a COM server to be registered, as it appeared to have a _reg_progid_ property.

Apologies for any confusion. "from xx import *" is evil.

2010/7/31 Åsmund Hjulstad <asmund.hjulstad@gmail.com>

While registering the server (servername.exe /register), I get this error message:

Traceback (most recent call last):
  File "boot_com_servers.py", line 96, in <module>
  File "boot_com_servers.py", line 62, in DllRegisterServer
  File "win32com\server\register.pyc", line 396, in RegisterClasses
TypeError: 'function' object does not support item assignment