You should just do before db=DAL(...) in your models:

import MySQLdb
from gluon.dal import MySQLAdapter
MySQLAdapter.driver = MySQLdb

On Aug 4, 8:49 am, Vineet <vineet.deod...@gmail.com> wrote:
> I want to do some customisation in dal.py.
> Want to use MySQLdb instead of PyMySQL.
> Reason behind it:-- I am going to use a 3rd party lib known as
> 'bizobj', which uses MySQLdb.
> I can change the code to --
> -----
> import MySQLdb
> drivers.append('MySQL')
> etc.
> ---
>
> Pl. tell me whether the below-mentioned procedure will be correct :
>
> 1) download the source
> 2) change the dal.py
> 3) compile it to .pyc file
> 4) overwrite the existing dal.pyc with the modified file
>
> Also pl. indicate whether it may break any login in web2py.
>
> Thanks.

Reply via email to