%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/lib/python2.7/site-packages/salt/modules/inspectlib/
Upload File :
Create Path :
Current File : //proc/thread-self/root/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyc

�
���^c@@sxddlmZddlmZddlmZmZmZmZm	Z	de
fd��YZdefd��YZdS(	i(tabsolute_import(tCsvDB(tPackagetPackageCfgFiletPayloadFilet
IgnoredDirt
AllowedDirtDBHandleBasecB@sPeZdZd�Zed�Zd�Zd�Zd�Zd�Z	d�Z
RS(s�
    Handle for the *volatile* database, which serves the purpose of caching
    the inspected data. This database can be destroyed or corrupted, so it should
    be simply re-created from scratch.
    cC@s+||_t�|_t|j�|_dS(s
        Constructor.
        N(t_pathtlisttinit_queriesRt_db(tselftpath((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyt__init__s	cC@s0|r|jj�n|jj�|j�dS(s1
        Init the database, if required.
        N(Rtnewtopent_run_init_queries(RR((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyR's"cC@s7x0tttttfD]}|jj|��qWdS(s(
        Initialization queries
        N(RRRRRRtcreate_table_from_object(Rtobj((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyR.scC@s8x'|jj�D]}|jj|�qW|j�dS(s'
        Purge whole database.
        N(Rtlist_tablestflushR(Rt
table_name((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pytpurge5scC@s|jj|�dS(s"
        Flush the table.
        N(RR(Rttable((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyR>scC@s|jj�dS(s0
        Close the database connection.
        N(Rtclose(R((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyRDscC@st|j|�S(sb
        Proxy methods from the Database instance.

        :param item:
        :return:
        (tgetattrR(Rtitem((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyt__getattr__Js(t__name__t
__module__t__doc__RtFalseRRRRRR(((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyRs						tDBHandlecB@s eZdZd�Zd�ZRS(cO@s.|js'tt|�j|�|_n|jS(s!
        Keep singleton.
        (t_DBHandle__instancetsuperR!t__new__(tclstargstkwargs((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyR$Ws	cC@stj||�dS(sY
        Database handle for the specific

        :param path:
        :return:
        N(RR(RR
((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyR_sN(RRtNoneR"R$R(((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyR!Ts	N(
t
__future__Rtsalt.modules.inspectlib.fsdbRt salt.modules.inspectlib.entitiesRRRRRtobjectRR!(((sD/usr/lib/python2.7/site-packages/salt/modules/inspectlib/dbhandle.pyt<module>s(<

Zerion Mini Shell 1.0