read input for cmd.Cmd from file

2005-06-03 Thread Achim Domma (Procoders)
Hi, I'm writing a simple shell using cmd.Cmd. It would be very usefull if I could read the commands as batchjob from a file. I've tried the following: class MyShell(cmd.Cmd): def __init__(self,stdin): cmd.Cmd.__init__(self,stdin=stdin) ... ... if

MySQLdb and Unicode

2005-05-20 Thread Achim Domma (Procoders)
Hi, I try to write unicode strings to a MySQL database via MySQLdb. According to the documentation I should pass 'utf-8' as keyword parameter to the connect method. But then I get the following error: Traceback (most recent call last): File C:\develop\SyynX\unicode_test.py, line 7, in ?

Re: win32com and ADO

2005-05-11 Thread Achim Domma (Procoders)
Chris Curvey wrote: result = conn.execute(select * from foo) while not result.EOF: doSomething() result.MoveNext() 'tuple' object has no attribute EOF The recordset you are looking for is a element of the tuple. Out of my head I would say it's element 1, so you have to write:

Re: Socket Error

2005-04-14 Thread Achim Domma (Procoders)
[EMAIL PROTECTED] wrote: NameError: name 'socket' is not defined You forgot to import the socket module: import socket regards, Achim -- http://mail.python.org/mailman/listinfo/python-list

Testing web applications

2005-02-11 Thread Achim Domma (Procoders)
Hi, I'm looking for frameworks to make testing web applications - i.e. parsing and filling out forms - easier. I found Puffin, which looks good but not very usable in the current state. I know that I once read about other nice frameworks, but could not find one via google. Any hints? regards,

Re: Testing web applications

2005-02-11 Thread Achim Domma (Procoders)
news.sydney.pipenetworks.com wrote: I've used Jython and a java package called httpunit to great effect. It even supports javascript on your pages. Thanks, that is the option I'm currentyl testing. Works great so far! regards, Achim -- http://mail.python.org/mailman/listinfo/python-list

access problem with DCOM server written in python

2005-02-05 Thread Achim Domma (Procoders)
Hi, I have a problem with a DCOM server written in python. Here is my minimal test object: class TestObject: _reg_clsid_ = {ECDBB3BC-F0BF-4eef-87C0-D179A928DAB5} _reg_progid_ = DComTest.Object _reg_desc_ = DComTest.Object _public_methods_ = ['testit'] def __init__(self):