ó Tc@sŠdZddlZddlmZddlmZddlTddlj Z e Z d„Z defd„ƒYZd efd „ƒYZdS( s)psycopg 1.1.x compatibility module This module uses the new style connection and cursor types to build a psycopg 1.1.1.x compatibility layer. It should be considered a temporary hack to run old code while porting to psycopg 2. Import it as follows:: from psycopg2 import psycopg1 as psycopg iÿÿÿÿN(tcursor(t connection(t*cOs-t|d new psycopg 1.1.x compatible connection objecttconnection_factory(Rt _2connecttset_isolation_levelt_exttISOLATION_LEVEL_READ_COMMITTED(targstkwargstconn((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pytconnect's RcBs#eZdZd„Zdd„ZRS(spsycopg 1.1.x connection.cCstj|dtƒS(s6cursor() -> new psycopg 1.1.x compatible cursor objecttcursor_factory(t _2connectionR(tself((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyR1sicCs3|dkr|jtjƒn|jtjƒdS(s;autocommit(on_off=1) -> switch autocommit on (1) or off (0)iN(RRtISOLATION_LEVEL_AUTOCOMMITR(Rton_off((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyt autocommit5s (t__name__t __module__t__doc__RR(((sD/opt/alt/python27/lib64/python2.7/site-packages/psycopg2/psycopg1.pyR.s RcBs2eZdZd„Zd„Zd„Zd„ZRS(sôpsycopg 1.1.x cursor. Note that this cursor implements the exact procedure used by psycopg 1 to build dictionaries out of result rows. The DictCursor in the psycopg.extras modules implements a much better and faster algorithm. cCsCi}x6tt|jƒƒD]}||||j|ds