Re: [python-win32] Problems with Implementing Callback Python/C++-DLL

2005-07-29 Thread Mark Hammond
> So I’m not sure how can I “register” my_set_callback function in the already > started Python-Interpreter and to “explain” my DLL which Python-Function is > to call when the new values in my DLL were calculated. I'm not sure I understand your problem. The tail of the code you posted looks like

Re: [python-win32] Querying Password Change Privilege on an Activ e Directory User Ac count

2005-07-29 Thread Gooch, John
It's mostly for testing purposes. The password change affect a few thousand of our customers, so the group I wrote the script for wants to be able to disable the SetPassword/SetInfo command to do a test run of the script and see if it will encounter any permission/other problems before the "Product

Re: [python-win32] Querying Password Change Privilege on an Active Directory User Ac count

2005-07-29 Thread Jim Vickroy
Hello John, Why does it matter? Why not just ignore the specific type of exception raised by an invalid SetPassword() or SetInfo() request as follows: try: adsuser.SetPassword(trans.password) adsuser.SetInfo() except : pass # or whatever except : pass # or whatever except Exception,

[python-win32] Querying Password Change Privilege on an Active Directory User Ac count

2005-07-29 Thread Gooch, John
Title: Message I have a script that changes user passwords, and it throws exceptions then executing the SetPassword() or SetInfo() commands on a AD user account that it does not have "set password" privileges on. To avoid the exception being thrown, I would like to have the script check whet

[python-win32] Problems with Implementing Callback Python/C++-DLL

2005-07-29 Thread Oleg Novychny
Dear friends, I’m hoping to receive some tips to my problem. At the moment I’m trying to implement a callback between Python and my C++-DLL. My DLL calculates permanently some values and stores them in member-variables in one of the DLL-classes. There are some exported functions in my DLL for sta