Just found the solution, I didn't realize that ftplib has 'passive mode'
as the standard - so I ended up with never actually trying to use
'active mode'
Thanks nonetheless :)
Am Dienstag, den 19.08.2008, 15:16 +0200 schrieb Paul Schewietzek:
> Hello everyone,
&
Hello everyone,
I put together the following, most of it is from different howtos on the
web.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def gettext(ftp, filename, outfile=None):
if outfile is None:
outfile = sys.stdout
ftp.retrlines("RETR %s" % filename, la
Kent Johnson schrieb:
> A more robust solution would be to read the file with the csv module and
> use cursor.execute() with a proper parameter list. This lets the csv and
> database modules correctly (un)escape the data values.
>
> Kent
>
WOW thanks! I never thought about that there might be
Joshua Simpson schrieb:
> On Dec 19, 2007 10:14 AM, Paul Schewietzek <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>
> Is there any way to handle this exception? As you can see, I already
> tried it with _mysql_exceptions.OperationalError (the
Hi there!
I'm writing a script that inserts data from a .csv file into a
MySQL-Database.
Actually, it works fine (the data make it into the database correctly),
however everytime it runs it raises an exception coming from the
MySQLdb-module.
Here's the code:
-
Theyain schrieb:
> I'm not sure if this is really the place to do this, but I will ask anyways.
>
> Hello everyone, names Theyain. I want to learn Python. But I am one of
> those people who needs some one to "Beat me over the head" to actually
> learn something. I can't get myself to actually