Re: [python-win32] odbc exceptions

2010-12-01 Thread Robin Becker
On 01/12/2010 00:28, Vernon Cole wrote: even more important, also install a new copy of pywin32. http://sourceforge.net/projects/pywin32/ ... OK I have installed both python 2.6.6 and the latest pywin32 ie build 214 for 2.6 (before I had 212). I'm still getting that error. C:\code\rlex

Re: [python-win32] odbc exceptions

2010-12-01 Thread Preston Landers
No, it appears you're getting a different (and expected) error now. "[ODBC Driver Manager] Data source name not found and no default driver specified in LOGIN" That means you didn't give a valid ODBC connection string when you tried to create a connection. Earlier you were getting "TypeError: e

Re: [python-win32] Python COM server corrupting VB parameter?

2010-12-01 Thread Gerry Stellenberg
Thanks Matt. I'm still hopeful there's something I can do from the python (server) side as the VB scripts are managed in somebody else's project. Does anybody else have input on this? Is this a known issue with pyWin32 or do I need to do something differently in the server code? If a known issu

Re: [python-win32] odbc exceptions

2010-12-01 Thread Robin Becker
On 01/12/2010 16:22, Preston Landers wrote: No, it appears you're getting a different (and expected) error now. "[ODBC Driver Manager] Data source name not found and no default driver specified in LOGIN" That means you didn't give a valid ODBC connection string when you tried to create a connec

[python-win32] Inheritance not applied to objects and containers

2010-12-01 Thread Matthew Howle
The permissions are applied to the directory but subdirectories and files within the directory aren't inheriting the permissions. I can manually go the Advanced Security Settings for the directory and check "Apply these permissions to objects and/or container within this container only" to ge

Re: [python-win32] Inheritance not applied to objects and containers

2010-12-01 Thread Tim Roberts
Matthew Howle wrote: > The permissions are applied to the directory but subdirectories and > files within the directory aren't inheriting the permissions. You've stumbled across a very nasty little dark corner. There are several APIs for managing security descriptors, including APIs like SetFileS

Re: [python-win32] Inheritance not applied to objects and containers

2010-12-01 Thread Matthew Howle
Aha! Thank you, using SetNamedSecurityInfo() worked perfectly. Here's the test code I used >>> user = win32security.LookupAccountName("","DOMAIN\\username")[0] >>> sd = >>> win32security.GetFileSecurity("C:\\testdir",win32security.DACL_SECURITY_INFORMATION) >>> dacl = sd.GetSecurityDescriptorDa

[python-win32] Checking app windows for certain keywords

2010-12-01 Thread Kevin Carlson
Hello, My searches didn't turn up anything so I'm posting to the group: I'd like to develop a Python app that periodically scans all open app windows (browser, Word, Outlook, etc.) for specific keywords. The idea is to have an alert window popup (using wxPython) as a reminder to the user to hand

Re: [python-win32] Checking app windows for certain keywords

2010-12-01 Thread Tim Roberts
Kevin Carlson wrote: > I'd like to develop a Python app that periodically scans all open app > windows (browser, Word, Outlook, etc.) for specific keywords. What does that mean, exactly? Remember that most applications have hundreds of windows (buttons, list boxes, input boxes, tree controls, ico

[python-win32] Running GUI apps from a python/IIS web application

2010-12-01 Thread Randy Syring
I have been tasked with integrating an command line program (.exe) with a python web application. The program is intended to be run by a normal user and therefore pops up a "helpful" GUI window that displays a "working on it" type message while the program gathers data from a remote location.

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-01 Thread Tim Roberts
Randy Syring wrote: > It seems likely to me that you can not run a GUI program under a > non-interactive service like IIS. But, I am not 100% sure on this so I > was hoping that this list might be able to shed some light on this topic. Your analysis is quite correct. It is possible, through pa

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-01 Thread Randy Syring
On 12/01/2010 08:28 PM, Tim Roberts wrote: Randy Syring wrote: It seems likely to me that you can not run a GUI program under a non-interactive service like IIS. But, I am not 100% sure on this so I was hoping that this list might be able to shed some light on this topic. Your analysis is quit

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-01 Thread Roberto Aguilar
On Dec 1, 2010, at 6:43 PM, Randy Syring wrote: > On 12/01/2010 08:28 PM, Tim Roberts wrote: >> Randy Syring wrote: >>> It seems likely to me that you can not run a GUI program under a >>> non-interactive service like IIS. But, I am not 100% sure on this so I >>> was hoping that this list might be

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-01 Thread Vernon Cole
There is a registry hack to make a Windows box auto log in when it boots up. If you cannot find an example, get back to me and I will get a sample from a co-worker at a former employer. We had several dozen machines there which were actually servers, but the software was written for a GUI desktop

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-01 Thread Roger Upole
You might be able to use win32service.CreateDesktop to give the program a desktop to work with. Roger Randy Syring wrote: >I have been tasked with integrating an command line program (.exe) with a >python web application. The program is intended to be run by a normal user >and therefore p