queston about cx_Oracle

2004-06-27 Thread Lee Shang
Hi i hava a db ORACLE 10G,a table valid_card (card_no,varchar2(10),now_balance number (12,2)) its'some record in table ('7188','42055.66') i use cx_Oracle to select now_balance from table curobj.execute("select loan_amount from valid_card where card_no='7188'"); [] >>> tuple=curobj.fetch

Re: MSScriptControl & ActivePython

2004-04-27 Thread Lee
Ok, thanks. I guess I'll just have to fudge it and parse the Python/Perlscript myself looking for functions/subroutines until this if fixed (if it ever is!) I have managed to get AcivePerl working with the script control though.. Cheers, Lee - Original Message - From: "And

Re: MSScriptControl & ActivePerl

2004-04-26 Thread Lee
Here is a minimal Delphi project using this code. The aw_SCtrl and AW_MSSC_TLB units can be obtained from here: http://www.btinternet.com/~a.wingrove/scripting/   Again, when tried with a VBScript/_javascript_ it works perfectly; with a PythonScript or PerlScript it gives those OLE exceptions

Re: MSScriptControl & ActivePython

2004-04-26 Thread Lee
7, 2004 2:43 PM Subject: Re: MSScriptControl & ActivePython > > ----- Original Message - > From: Lee > To: [EMAIL PROTECTED] > Sent: Monday, April 26, 2004 7:26 PM > Subject: MSScriptControl & ActivePython > > > Hi, > > I'm adding Python and

MSScriptControl & ActivePython

2004-04-26 Thread Lee
Hi,   I'm adding Python and PerlScript support to my Delphi application and am having trouble with retreiving the names of the functions/pocedures in a chunk of code. The following code works perfectly for VBScript and _javascript_ but it gives an OleException whan accessing the Count proper

Re: popen usage

2001-07-08 Thread Arthur Lee
. Phil ----- Original Message - From: Arthur Lee To: Phil Harris ; [EMAIL PROTECTED] Sent: Friday, July 06, 2001 7:29 AM Subject: Re: popen usage Perhaps it should have been the following? : 1:    stdin=os.popen('tail -f somefile') 2:    logline=re.compile('(.*?).*?- - \[(.*?

Re: popen usage

2001-07-05 Thread Arthur Lee
Perhaps it should have been the following? : 1:    stdin=os.popen('tail -f somefile') 2:    logline=re.compile('(.*?).*?- - \[(.*?)\] "(.*?) (.*?)" (.*?) (.*?)"(.*?)" (.*?)".*') 3:    a=stdin.readline() 4:    print a 5:    while a: 6:    g=logline.search(a) 7:    if not g: continue 8:

Re: Newbie: ADO & Python in ASP

2001-06-04 Thread Arthur Lee
have very little to do with python.  It works with ADO in general. Arthur Lee