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 __name__=='__main__'
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 ?
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
[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
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
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,
A
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):
Hi,
I'm working on a new version of PythonMagick, a wrapper for
GraphicsMagick. A first version is available at:
http://public.procoders.net/cgi-bin/trac.cgi/wiki/PythonMagick
Any feedback is very appreciated.
regards,
Achim
--
http://mail.python.org/mailman/listinfo/python-list