Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/landscape/lib/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/landscape/lib/store.pyc


Tc@sGdZyddlZWn!ek
r9ddlmZnXdZdS(s+Functions used by all sqlite-backed stores.iN(tdbapi2csfd}|S(sDecorator that encloses the method in a database transaction.

    Even though SQLite is supposed to be useful in autocommit mode, we've
    found cases where the database continued to be locked for writing
    until the cursor was closed.  With this in mind, instead of using
    the autocommit mode, we explicitly terminate transactions and enforce
    cursor closing with this decorator.
    cs|js+tj|j|_|jnyG|jj}z||||}Wd|jX|jjWn|jjnX|S(N(	t_dbtsqlite3tconnectt	_filenamet_ensure_schematcursortclosetcommittrollback(tselftargstkwargsRtresult(tmethod(s7/usr/lib/python2.7/dist-packages/landscape/lib/store.pytinners	

((RR((Rs7/usr/lib/python2.7/dist-packages/landscape/lib/store.pytwith_cursor	s
(t__doc__RtImportErrort	pysqlite2RR(((s7/usr/lib/python2.7/dist-packages/landscape/lib/store.pyt<module>s