Re: Problem when installing Active Python 2.1

2001-05-15 Thread mickylu
我不想加入討論,請移除我的資料,謝謝 - Original Message - From: Dan Milgram <[EMAIL PROTECTED]> To: Gregor Lingl <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 5:21 AM Subject: Re: Problem when installing Active Python 2.1 > You are quite correct in that ActivePython 2.0 did not

RE: NT Services

2001-05-15 Thread Mark Hammond
> if it exits with an error code. This doesn't happen when I for > instance call > sys.exit(-1). Is there a way to make a service exit with an error so that > Win 2000 will restart it again? You need to exit the service "normally". When reporting the service stop status, you report an error code

Re: Problem when installing Active Python 2.1

2001-05-15 Thread Dan Milgram
You are quite correct in that ActivePython 2.0 did not require Windows Scripting Host - the dependency on it for ActivePython 2.1 was necessitated by some new functionality for the newer installer. You'll have to download Windows Scripting Host from Microsoft http://www.microsoft.com/msdownload/

Problem when installing Active Python 2.1

2001-05-15 Thread Gregor Lingl
When trying to install Active Python 2.1 I encountered the following strange problems: I use Windows Nt 4.0 1. I deinstalled ActivePython 2.0 which I have been usion without problems via system-control ( or so ? ) 2. when restarting the computer I got error-massages, concerning two missing

Re: NT Services

2001-05-15 Thread Markus Daniel
May be this is helpful, and tanks for your great tip ! # DeleteService.py for NT and 2K import os, sys if os.name != "nt": raw_input( "This os is not supported by this script!") sys.exit() if sys.version_info[0] < 2: raw_input("Python 2.0 or greater is required to run this script!") sys

Re: some ADO-COM-Problem

2001-05-15 Thread Markus Daniel
I found an other way. Now it works with Python too: >>> from win32com.client import Dispatch >>> adoCon = Dispatch("ADODB.Connection") >>> adoCon.Provider = "ADSDSOObject" >>> adoCon.Open("", "cn=Administrator;cn=Users,dc=strebig,dc=de","AdminsPW") >>> adoRec = Dispatch("ADODB.Recordset") >>> ado

NT Services

2001-05-15 Thread Syver Enstad
I have a couple of questions regarding Python NT services. I don't seem to get Win2000 to restart my services when they exit because of an uncaught exception. You can set up a service under NT and 2000 to restart if it exits with an error code. This doesn't happen when I for instance call sys.exi

some ADO-COM-Problem

2001-05-15 Thread Markus_Daniel
I use the ADO-Components free available from http://http://www.microsoft.com/data/ado/ . As DB-Provider I use ActiveDirectory insteed an classic SQL-DB. I belive the problem is, that Python do not know the COM-Type of "adoRec" in attached programm- snips. First, what I get from Python: PythonWi

RE: decimal places problem with ODBC/ASP?

2001-05-15 Thread Chris Ingram
Title: decimal places problem with ODBC/ASP? I didn't see an answer to your question yet, so here goes.   This is the fundamental problem with using floating point numbers in the database.  If you don't want these minor rounding discrepancies, then use fixed point numbers, e.g. DECIMAL, data