File: //lib/python2.7/site-packages/offlineimap/folder/LocalStatusSQLite.pyc
�
��Vc @ sp d d l Z d d l m Z d d l m Z y d d l Z Wn n Xd d l m Z d e f d � � YZ d S( i����N( t exc_info( t Locki ( t
BaseFoldert LocalStatusSQLiteFolderc B s e Z d Z d Z d � Z d � Z d � Z d � Z d � Z d e
d � Z d � Z d � Z
d
� Z d � Z d � Z d
� Z d � Z d � Z d e � d � Z d � Z d � Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( sn LocalStatus backend implemented with an SQLite database
As python-sqlite currently does not allow to access the same sqlite
objects from various threads, we need to open get and close a db
connection and cursor for all operations. This is a big disadvantage
and we might want to investigate if we cannot hold an object open
for a thread somehow.i c C s� d | _ t t | � j | | � | j | _ t j j | j � | j � � | _
i | _ t | _
t j j | j
� } t j j | � s� t j | � n t j j | � s� t d | � � n t � | _ y t j | j
d t �| _ Wnl t k
rt d | j
� d t � d � n<