I pulled latest version from trunk and tested my app using MySQL and
got a ticket. Easy fix

In sql.py change line 1403 pymysqldb should be pymysql to match the
name from the import

        self.pool_connection(lambda db=db,
                             user=credential_decoder(user),
                             password=credential_decoder(password),
                             host=host,
                             port=port,
  1403      --->             charset=charset: pymysql.connect(db=db,
 
user=user,
 
passwd=password,
 
host=host,
 
port=port,
 
charset=charset,
                                                                ))

On Dec 7, 9:21 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> I contacted the developer. They added a license which was missing.
> The replacement is now done in trunk.
>
> Vasile, can you please test it?
>
> Massimo
>
> On Dec 6, 6:36 pm, Vasile Ermicioi <elff...@gmail.com> wrote:
>
> > I am testing new dal (alone, without web2py) and also tested one old idea -
> > I use pymysql instead of MySQLdb, and it works fine with python (2.7) and
> > jython (2.5rc2)
>
> > why not integrating it on web2py, I think that makes web2py what it claims
> > to be "requires no installation"
> > also it seems to have a good 
> > performancehttp://code.google.com/p/pymysql/wiki/Performance
>
> > just replace 2 lines:
>
> > import MySQLdb
> > with
> > import pymysql
>
> > and
>
> > charset=charset: MySQLdb.Connection(db=db,
> > with
> > charset=charset: pymysql.connect(db=db,
>
>

Reply via email to