[python-win32] [Re: getting email adresses from outlook]

2005-06-06 Thread Jürgen Kareta
Hi Tony, > > > I've written a python program which loops over an Outlook distribution > list, so I can pull off the names of the people on it. > When my program tries to run Outlook, Outlook pops up a Dialoge > I'd like to know what CDO is and how to install it. for installing look at http://www

[python-win32] Windows LogParser COM interface

2005-06-06 Thread Ronnie Jones
I am trying to access LogParser 2.2 through the COM interface provided and I am having a bit of a problem.  Here is what is going on:  First up is the _vbscript_ version of the code then comes the Python version.   Set objLogParser = CreateObject("MSUtil.LogQuery") Set objInputFormat = _

Re: [python-win32] Windows LogParser COM interface

2005-06-06 Thread Mark Hammond
I'm a little lost here. It sounds lilke cscript is having problems in some cases, and that Python may be having problems in the same situation. This sounds like a problem with the COM object. I suspect running your script from pythonwin would be closer to running from wscript.exe, but you don't

[python-win32] com object gives a pointer to a C++ struct array back

2005-06-06 Thread Gijs Korremans
Hi one of the functions in a com object I have to use gives me a pointer to the firtst struct in an array back. With Python it's possible to use the first truct, but is it possible to use the others as well? //for example: PointerToFirstStruct = comObj.GetPackets() argOne = PointerToFirstStruct

[python-win32] getting global addressbook with extended mapi

2005-06-06 Thread Jürgen Kareta
Hello, I followed Marks hint and tried to get my global addressbook entries with extended mapi. from win32com.mapi import mapiutil from win32com.mapi import exchange import pprint,pythoncom profileName = "Test" session = mapi.MAPIInitialize(None) session =mapi.MAPILogonEx(0,'test',None, mapi.MAP

[python-win32] Problem with gencache.EnsureModule

2005-06-06 Thread Johannes Brunen
Hi, First, I'm new to this list as well as new to python/pythonCom. I have tried to connect to a COM server installed on my machine with this little script: import win32com.client from win32com.client import gencache def main(): gencache.EnsureModule('{9C3BB401-114D-11D4-AC72-00105A4925FC}'

Re: [python-win32] Problem with gencache.EnsureModule

2005-06-06 Thread Niki Spahiev
Johannes Brunen wrote: > File > "C:\DOKUME~1\Arthur\LOKALE~1\Temp\gen_py\2.4\9C3BB401-114D-11D4-AC72-00105A4925FCx0x1x2\__init__.py", > line 57 Remove encoding comment from start of this file. HTH Niki Spahiev ___ Python-win32 mailing list Python-

Re: [python-win32] Windows LogParser COM interface

2005-06-06 Thread Ronnie Jones
The issue is resolved.  Apparently it is an issue with the COM object from LogParser not writing to the same file handle for standard out that PythonWin is using so the two never meet.  If I write the script and a .py and run from the command line it works just like the _vbscript_.  No actu

Re: [python-win32] IIS CGI installation

2005-06-06 Thread Tim Roberts
On Sat, 4 Jun 2005 11:27:28 -0700, "Robert Brewer" <[EMAIL PROTECTED]> wrote" >It's probably considered insecure because you are passing params (%s) to >python on the command line. Those "clever hackers" could find a way to >pass Nasty Things, like "del C:" > >Performance will be intolerable, sin

[python-win32] Windows LogParser COM interface

2005-06-06 Thread Tim Roberts
On Mon, 6 Jun 2005 08:52:46 -0400, "Ronnie Jones" <[EMAIL PROTECTED]> wrote: >I am trying to access LogParser 2.2 through the COM interface provided >and I am having a bit of a problem. Here is what is going on: First up >is the VBScript version of the code then comes the Python version. > > ..

[python-win32] COM Events and Type libraries

2005-06-06 Thread Shane Holloway (IEEE)
I've been having a devil of a time trying to get events working in win32com with an attached Type library. It seems like I'm missing something obvious, but I haven't been able to figure it out. So I'd like to ask your collective wisdom! My code is at: http://www.teuton.org/~sholloway/pyTestEv

Re: [python-win32] getting global addressbook with extended mapi

2005-06-06 Thread Mark Hammond
HrFindExchangeGlobalAddressList and a few others appeared to vanish from recent Exchange SDK versions. Its not clear from MSDN what the status is of those functions, but they certainly don't appear in any MS .h files I currently have. It appears that ActiveDirectory can be used to access the GAL

Re: [python-win32] com object gives a pointer to a C++ struct array back

2005-06-06 Thread Mark Hammond
IIRC at a RECORD data type includes any array sizes. Does your IDL explicitly indicate it is an array of records, or are you declaring it as a simple record, but then using it as an array? If the former, please send me a sample of your IDL so I can reproduce the error. If the latter, then you pr

[python-win32] import and asp-python and iis - strange behaviour

2005-06-06 Thread Simon Hook
Hi, I am trying to use import in an asp python page. If I have: <%@ LANGUAGE = Python%> <% import myfile %> Then myfile can only be found if its in the root of the python install directory, e.g. c:\python23 and only if the file is called myfile.py and it contains python NOT asp code. If I ha

Re: [python-win32] import and asp-python and iis - strange behaviour

2005-06-06 Thread Steve Holden
Simon Hook wrote: > Hi, > > I am trying to use import in an asp python page. If I have: > > <%@ LANGUAGE = Python%> > <% > import myfile > %> > > Then myfile can only be found if its in the root of the python install > directory, e.g. > > c:\python23 > > and only if the file is called myfile.

Re: [python-win32] import and asp-python and iis - strange behaviour

2005-06-06 Thread Simon Hook
Steve, Thanks for the quick response, everything you said works, I have a couple more questions. Here are a couple of scripts that illustrate how I implemented your suggestions. ---file1 listing ---gofetch.asp <%@ LANGUAGE = Python%> <% import sys path = "d:/inetpub/wwwroot"

Re: [python-win32] import and asp-python and iis - strange behaviour

2005-06-06 Thread Robert Brewer
Simon Hook wrote: > I am trying to use import in an asp python page. If I have: > > <%@ LANGUAGE = Python%> > <% > import myfile > %> > > Then myfile can only be found if its in the root of the > python install directory, e.g. c:\python23 > and only if the file is called myfile.py and it contain

Re: [python-win32] import and asp-python and iis - strange behaviour

2005-06-06 Thread Simon Hook
Bob, Looks like our messages crossed in the ether. Thanks for the clarification. I was using iis->click on default web site and start/stop, rather than restart iis. Also thanks for info on python versus asp. In my previous message using reload in a python file does work so you do not need to r

Re: [python-win32] import and asp-python and iis - strange behaviour

2005-06-06 Thread Mark Hammond
[Steve] > IIRC I did some experiments that showed me that under suitable > circumstances the Python interpreter will see an updated > module after an > ASP page performs a reload() of the required module. Yes, that is my experience too. Python's reload sementics WRT existing class instances from