Re: [python-win32] win32com and static dispatch

2005-11-03 Thread Tim Golden
[Michael Thompson] > I've found the problem. Groan. > Dynamic and Static dispatch differ WRT to case sensitivity. You've probably realised but, just in case, the case-sensitivity is a by-product of the fact that static dispatch actually creates a Python module to act as a proxy for the COM objec

Re: [python-win32] win32com and GetRef

2005-11-03 Thread David Fraser
Mark Hammond wrote: >Not from an external process, no - xpcom does not work across processes. If >you wanted to write a Mozilla extension (ie, some "chrome"), then other work >I am doing with the Mozilla guys will soon make this possible - you will be >able to use Python whereever you can current

Re: [python-win32] win32com and static dispatch

2005-11-03 Thread geon
Does there exist any tutorial/manual about static vs. dynamic dispatch? Thank you Pavel ___ Python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32com and static dispatch

2005-11-03 Thread Thomas Heller
geon <[EMAIL PROTECTED]> writes: > Does there exist any tutorial/manual about static vs. dynamic dispatch? > > Thank you > Pavel Mark Hammond's book "Programming Python on win32". http://www.oreilly.com/catalog/pythonwin32/ A sample chapter is online: http://www.oreilly.com/catalog/pythonwin32

[python-win32] win32com and COM-dynamic-server

2005-11-03 Thread Michel Claveau
Good evening! I have troubles with dynamic COM. I made, with PyWin, a dynamic extension of my COM-server. If I call the COM-server since VB-Script, it is OK, with the names of functions (call) in small letters. If I call the COM-server since ObjectPAL (Paradox), it is OK, with the names of f

Re: [python-win32] win32com and COM-dynamic-server

2005-11-03 Thread Mark Hammond
When Python code does: obj.foo(1) On a COM object that has no makepy support, Python will first query the object if it has a *property* named 'foo' before it asks if it has a *method* named foo. I suspect you are seeing this. To work correctly in this case, Python will be expecting the property

Re: [python-win32] win32com and GetRef

2005-11-03 Thread Mark Hammond
> Mark Hammond wrote: > > >Not from an external process, no - xpcom does not work across > processes. If > >you wanted to write a Mozilla extension (ie, some "chrome"), > then other work > >I am doing with the Mozilla guys will soon make this possible - > you will be > >able to use Python whereeve

Re: [python-win32] win32com and COM-dynamic-server

2005-11-03 Thread Michel Claveau
Hi! >>> Python will first query the object if it has a *property* named 'foo' >>> before it asks if it has a *method* named foo. I suspect you are seeing >>> this. Yes, you are right! Python send wFlags=pythoncom.DISPATCH_PROPERTYGET With your advice, I had found than : if wFlags &