Re: [python-win32] cmp oleobj & instance with Python 2.6.1 et pywin32

2009-02-04 Thread Mark Hammond
On 5/02/2009 6:33 PM, Michel Claveau wrote: And, I am sorry to have disturbed this rhythm. Not at all - I put these builds up exactly for this reason - it was just luck that I stumbled across the issue first (surprisingly, the test suite never actually tested a com object against None and I f

Re: [python-win32] cmp oleobj & instance with Python 2.6.1 et pywin32

2009-02-04 Thread Michel Claveau
Hi! return cmp(self._oleobj_, other) TypeError: The Python instance can not be converted to a COM object Yes, thanks for the report, but I already found that myself 2 days ago and have checked in a fix. It was related to the new rich-comparison work for py3k. If this is blocking you please

Re: [python-win32] win32file.ReadDirectoryChangesW in asynch mode?

2009-02-04 Thread Mark Hammond
> Thanks, Mark. That's a lot more complex than what I need to > implement, and it'll take some time to digest, but even so, it's way > better than the docs that look like someone updated them a bit at a > time. Actually, win32\test\test_win32file.py's example might be simpler to digest - if you l

Re: [python-win32] win32file.ReadDirectoryChangesW in asynch mode?

2009-02-04 Thread Eric Blade
Thanks, Mark. That's a lot more complex than what I need to implement, and it'll take some time to digest, but even so, it's way better than the docs that look like someone updated them a bit at a time. On Thu, Feb 5, 2009 at 12:39 AM, Mark Hammond wrote: > On 5/02/2009 4:00 PM, Eric Blade wro

Re: [python-win32] EOFError in gencache.py

2009-02-04 Thread Mark Hammond
On 5/02/2009 9:40 AM, Zdenek Mejzlik wrote: File "c:\python25\lib\site-packages\win32com\client\gencache.py", line 109, in _LoadDicts version = p.load() EOFError This is an error loading 'dicts.dat' from the win32com\gen_py directory. The management of this file is very crude and doesn't prot

Re: [python-win32] win32file.ReadDirectoryChangesW in asynch mode?

2009-02-04 Thread Mark Hammond
On 5/02/2009 4:00 PM, Eric Blade wrote: It appears that sometime in the last year, year and a half or so, someone made the necessary changes to win32file to get ReadDirectoryChangesW up and working in Asynch mode, which is something that I would find very nice to be able to use right now .. howev

Re: [python-win32] cmp oleobj & instance with Python 2.6.1 et pywin32

2009-02-04 Thread Mark Hammond
On 5/02/2009 1:18 AM, Michel Claveau wrote: return cmp(self._oleobj_, other) TypeError: The Python instance can not be converted to a COM object I solved the problem, by replace != by not(...is...) ; then, it's OK for me. But, I think than the error in cmp can affect others scripts developers

[python-win32] win32file.ReadDirectoryChangesW in asynch mode?

2009-02-04 Thread Eric Blade
It appears that sometime in the last year, year and a half or so, someone made the necessary changes to win32file to get ReadDirectoryChangesW up and working in Asynch mode, which is something that I would find very nice to be able to use right now .. however, the docs are making my head swim. Any

[python-win32] EOFError in gencache.py

2009-02-04 Thread Zdenek Mejzlik
Hello, My script running on Windows XP Professional SP2 is sometimes hit with the following problem. I use Python 2.5.1.1 (from ActiveState) and Python 2.5 pywin32-210. The script uses the Sensormatic's Intellex API consisting of COM components. PythonWin 2.5.1 (r251:54863, May 1 2007, 17:4

Re: [python-win32] [pywin32-checkins] py3k status

2009-02-04 Thread Vernon Cole
Okay, group, I'm opening this up for discussion... Is my routine wrong, or is the test flawed? This test works fine at my house, U.S. Mountain Standard Time. When I change my Windows time zone to Brisbane, it fails here like it does for Mark. The test is: def testDateObjectFromCOMDate(self)

Re: [python-win32] Kerberos Authentication

2009-02-04 Thread Aditya Jayraman
In other words, Im asking if there is any module that will help with encoding/decoding SPNEGO Tokens (aka security blobs) Thanks, Aditya On Tue, Feb 3, 2009 at 5:46 PM, Aditya Jayraman wrote: > I am trying to create server that needs to authenticate clients using > Kerberos. > > Assuming the cl

[python-win32] Visio.SaveAsWebObject problem

2009-02-04 Thread Dave Piché
Sorry for my bad english, I am trying to write a script to make automatic conversion of Microsoft Visio documents to html. I want to do it by using COM objects. When I try to create an instance of "SaveAsWeb.VisSaveAsWeb" object I got this error: >>> import win32com.client >>> win32com.clie

[python-win32] cmp oleobj & instance with Python 2.6.1 et pywin32

2009-02-04 Thread Michel Claveau
Hi! (sorry for my "bizzaroid" english) I have a script who use DOM objects (COM-subobjects from win32com.client.Dispatch('InternetExplorer.Application'). These objects are in instances properties. And, I compare with other instances/python_objects. e.g. a line like : if form.conteneurc