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

2007-10-04 Thread r c
On 10/3/07, Tim Roberts <[EMAIL PROTECTED]> wrote: > > r c wrote: > > > > >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

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

2007-10-03 Thread Tim Roberts
r c wrote: > > >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

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

2007-10-03 Thread r c
> >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 Rob

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

2007-10-03 Thread Tim Roberts
r c wrote: > > I'm trying to convert VB code that registers COM+ components to > Python. I'm unable to set values on COMAdminCatalogObject using the > Value() method, it seems to think I'm trying to call the get method? > > ... > > Python Code: > objCOMAdminCatalog = win32com.client.Dispatch("COMAd

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

2007-10-03 Thread r c
I'm trying to convert VB code that registers COM+ components to Python. I'm unable to set values on COMAdminCatalogObject using the Value() method, it seems to think I'm trying to call the get method? VB Code: Dim cat As COMAdminCatalog Set cat = New COMAdminCatalog Dim apps As COMAdminCatalogCo