On Sat, Sep 09, 2006 at 10:22:03AM -0300, Humberto Diogenes wrote:
>   I'm sending a little patch I made for sqlobject: the sqlite module was
>   added to Python 2.5 stdlib as "sqlite3", and SQLObject wasn't finding
>   it.
>
> -                from pysqlite2 import dbapi2 as sqlite
> +                import sqlite3 as sqlite

   Sorry, but the patch is incorrect. You just removed support for
installations where there is no sqlite3 module. SQLObject still supports
Python 2.2, 2.3 and 2.4.
   The correct way is to sniff if there is sqlite3 module - and if there is
no fall back to pysqlite2 and sqlite as usual.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to