#34 enable check_same_thread option in SQLiteConnection

closed-accepted
None
5
2006-02-07
2005-12-14
I*igo Serna
No

Hi there,

For a project I'm writing using CherryPy + SQLObject +
sqlite3 I need to pass "enable_check_same_thread =
False" option to pysqlite2 in SQLiteConnection, but
SQLObject 0.7rc1 doesn't allow it, so I've written this
simple patch.

I know this is an evil option, but I *really* need it
in my project (cherrypy app is exposed to apache using
mpcp-1.2) or it's the only solution I've found.

Default remains safe enable_check_same_thread = True
option.

Patch is against SQLObject 0.7rc1.

Iñigo

Discussion

  • Oleg Broytman

    Oleg Broytman - 2006-01-11
    • status: open --> open-invalid
     
  • Oleg Broytman

    Oleg Broytman - 2006-01-11

    Logged In: YES
    user_id=4799

    Please instead of extending __init__() args put
    check_same_thread into kw, similar to 'encoding', 'mode' and
    'timeout'.

     
  • Oleg Broytman

    Oleg Broytman - 2006-02-07
    • status: open-invalid --> closed-invalid
     
  • Oleg Broytman

    Oleg Broytman - 2006-02-07
    • assigned_to: nobody --> phd
    • status: closed-invalid --> closed-accepted
     
  • Oleg Broytman

    Oleg Broytman - 2006-02-07

    Logged In: YES
    user_id=4799

    Applied at the revision 1585 to the trunk. Thank you!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks