On Jan 24, 2011, at 12:28 AM, Luis wrote:

>  Maybe
> there is some other connection for sqlobject that needs the
> text_factory=str fix.

Not sure if it's the right way, but I added the following: 

connectObject.text_factory = str

at line 518 of bin/imdbpy2sql.py

So now it looks like this (line 517-520):

connectObject = conn.getConnection()
connectObject.text_factory = str
# Cursor object.
CURS = connectObject.cursor()


While on the subject, here is a port of sort of imdbpy2sql to Lua [1]:

http://dev.alt.textdrive.com/browser/IMDB/

Here is the main module:

http://dev.alt.textdrive.com/browser/IMDB/IMDB.lua#L102

And the resulting sqlite schema:

http://dev.alt.textdrive.com/browser/IMDB/IMDB.ddl

Thanks to imdbpy2sql for the inspiration :)


[1] http://www.lua.org/about.html


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to