[python-win32] Converting VB COM register program to Python

r c chlo.prog at gmail.com
Wed Oct 3 21:39:33 CEST 2007


> >In this case, where an indexed property had both a "Get" and a "Let"
> >handler, the Python COM stuff generates a "Value" function for the "Get"
> >part, and a "SetValue" function for the "Let" part.>
> >
> >So, you want:
>  >  objCOMAdminCatalogObject.SetValue("ID", AppID)>
> >
> >--
> >Tim Roberts, timr at probo.com
> >Providenza & Boekelheide, Inc.
>
> When I try SetValue I get:



Traceback (most recent call last):

*File
"C:\programming\python\dev\src\FullInstallScripts\COMObjectFullInstall.py",
line 74, in <module>
*

CreateApplication()

*File
"C:\programming\python\dev\src\FullInstallScripts\COMObjectFullInstall.py",
line 21, in CreateApplication
*

objCOMAdminCatalogObject.SetValue("ID", AppID)

*File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 496,
in __getattr__
*

raise AttributeError, "%s.%s" % (self._username_, attr)

AttributeError: Add.SetValue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20071003/2dfc388a/attachment.htm 


More information about the python-win32 mailing list