Hi all,
I have done an addin fro a cad application

I get this error from win32Traceutils :

Object with win32trace dispatcher created (object=None)
in <SwAddin.swAddin object at 0x0DDFCFB0>._QueryInterface_ with unsupported IID ISwAddin ({DA306A0D-EAC5-4406-8610-B1DA805D9270}) in <SwAddin.swAddin object at 0x0DDFCFB0>._QueryInterface_ with unsupported IID ISwPointInferenceBroker ({043ABA21-BC20-4C46-A8D4-C8C0B67707A9}) in <SwAddin.swAddin object at 0x0DDFCFB0>._QueryInterface_ with unsupported IID ISwAddinBroker ({F8D48077-9710-4661-81AF-5AFB30000E99}) in <SwAddin.swAddin object at 0x0DDFCFB0>._QueryInterface_ with unsupported IID ISwAddinLicenseManager ({1C0CCD98-368B-4CD3-B168-901395224693}) in <SwAddin.swAddin object at 0x0DDFCFB0>._QueryInterface_ with unsupported IID ISwAddinAdvanced

can anyone help me on this ?

This is the com class implemented:

class swAddin(object):
    _reg_clsid_ = "{4D6515EF-33AD-4019-A416-A4D5310C907F}"
    _reg_desc_ = "OpenERPPLM Com Server"
    _reg_progid_ = "OpenERPPLM.pyComServer"

    _public_methods_=[
                        'ConnectToSW',
                        'DisconnectFromSW'
                        ]

    def __init__(self):
        self._swApplication=None
        self._cookie=None


    def ConnectToSW(self,swInstance, cookie):
        try:
            print "here"
            #self._swApplication = swInstance
            #self._cookie = cookie
            return True
        except Exception,ex:
            return False
    def DisconnectFromSW(self):
        print "there"
        return True

if __name__=='__main__':
    print "Start register com class"
    import sys
    import win32com.server.register
    sys.argv.append('--debug')
    win32com.server.register.UseCommandLine(swAddin)
    print "End register com class"

Regards,
Matteo

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to