Re: HTTP - POST-Method do not work

2001-03-09 Thread Paul Prescod
If I correct the variable names in the example I get this program: import httplib, urllib params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0}) h = httplib.HTTP("localhost:80") h.putrequest("POST", "/cgi-bin/query") h.putheader("Content-length", "%d" % len(params)) h.putheader('Accept', '

HTTP - POST-Method do not work

2001-03-09 Thread Markus Daniel
Hi guys, I tested the HTTP-POST-Example from the reference-manual: import httplib, urllib params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0}) h = httplib.HTTP("www.musi-cal.com:80") h.putrequest("POST", "/cgi-bin/query") h.putheader("Content-length", "%d" % len(params)) h.putheader('Ac

Re: Python PPM Problems

2001-03-09 Thread Paul Prescod
That was a transient problem with our website. It is fixed now. Apologies for the inconvenience. -- Vote for Your Favorite Python & Perl Programming Accomplishments in the first Active Awards! http://www.ActiveState.com/Awards ___ ActivePython maili

Python cookbook was (Re: AW: using SQL, ODBC vs ADO)

2001-03-09 Thread Paul Prescod
> [EMAIL PROTECTED] wrote: > > > As we try to move from VB to Python as much as we can, we are also > interested in any tips and tricks on how to use ODBC and ADO with > Python. > > We are looking for production-quality samples, it looks like this is a > white area within Python (and in the bo

Win32 Event Viewer Event ID Problem

2001-03-09 Thread partysmart
Hello All, I'm having some difficulty getting the event IDs to appear normally when I read error events from the evnt viewer. The platform is W2KPro, SP1. The code I'm is pasted below for reference. The problem is that event IDs recorded in the Event Viewer do not match the event IDs after

Re: Embedding and Extending python

2001-03-09 Thread Paul Prescod
This isn't the best mailing list for generic Python questions (even if you are using the ActivePython distribution). There are more experts on the "python-list": http://groups.yahoo.com/group/python-list odell stewart wrote: > > Looking for some to do's and not to do's for embedding a Python G

Re: shlwapi.dll support?

2001-03-09 Thread Trent Mick
On Tue, Mar 06, 2001 at 08:18:37PM -0600, Dave Seidel wrote: > Hi, > > I need to call SHGetSpecialFolderPath(), but I don't see a wrapper for > shlwapi.dll. Is there any way to do it? Alternatively, is there any way to > call an arbitrary Win32 API, like in the Perl Win32::API module? Hello Da

Embedding and Extending python

2001-03-09 Thread odell stewart
Looking for some to do's and not to do's for embedding a Python GUI with a C back-end. I need a C message cue the will handle data in near real-time and with python reading the cue and generating an python event. Odell ___ ActivePython mailing list [E

AW: using SQL, ODBC vs ADO

2001-03-09 Thread Peter . Frey
Title: AW: using SQL, ODBC vs ADO Hi, I was developing extensively with ODBC 1.x and 2.x for a couple of years and know also ADO from a couple of VB6 applications I wrote. The main difference between ODBC and ADO is the interface: ODBC is a C style API (using a handle mechani

RE: using SQL

2001-03-09 Thread Andy Robinson
> > > I have your book and read your recomendations. At work on the > other hand ODBC is not seen as the way to go we use ADO. Things move on... if working with Microsoft databases then ADO and COM interfaces make a lot of sense and will give you all the latest features. I doubt there is a per

[Announce] ActivePython 1.6 beta release

2001-03-09 Thread David Ascher
It is my pleasure to announce the availability of the beta release of ActivePython 1.6, build 100. This binary distribution, based on Python 1.6b1, is available from ActiveState's website at: http://www.ActiveState.com/Products/ActivePython/ ActiveState is committed to making Python easy to