Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
YMc @sdZddkZddkZddkZddkZddkZddkZyddkl Z Wn#e j oddk l Z nXe e dp#de fdYZee _ndefdYZdefd YZd d"d YZd efd YZdefdYZdefdYZdefdYZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"d d#d!YZ#dS($s:$Id: dbtables.py 83624 2010-08-03 03:19:00Z ezio.melotti $iN(tdbtDBIncompleteErrorcBseZRS((t__name__t __module__(((s$/usr/lib/python2.6/bsddb/dbtables.pyR$st TableDBErrorcBseZRS((RR(((s$/usr/lib/python2.6/bsddb/dbtables.pyR(stTableAlreadyExistscBseZRS((RR(((s$/usr/lib/python2.6/bsddb/dbtables.pyR*stCondcBseZdZdZRS(s!This condition matches everythingcCsdS(Ni((tselfts((s$/usr/lib/python2.6/bsddb/dbtables.pyt__call__0s(RRt__doc__R (((s$/usr/lib/python2.6/bsddb/dbtables.pyR.st ExactCondcBs eZdZdZdZRS(s)Acts as an exact match condition functioncCs ||_dS(N(t strtomatch(RR ((s$/usr/lib/python2.6/bsddb/dbtables.pyt__init__5scCs ||ijS(N(R (RR((s$/usr/lib/python2.6/bsddb/dbtables.pyR 7s(RRR R R (((s$/usr/lib/python2.6/bsddb/dbtables.pyR 3s t PrefixCondcBs eZdZdZdZRS(s9Acts as a condition function for matching a string prefixcCs ||_dS(N(tprefix(RR((s$/usr/lib/python2.6/bsddb/dbtables.pyR <scCs|t|i |ijS(N(tlenR(RR((s$/usr/lib/python2.6/bsddb/dbtables.pyR >s(RRR R R (((s$/usr/lib/python2.6/bsddb/dbtables.pyR:s t PostfixCondcBs eZdZdZdZRS(s:Acts as a condition function for matching a string postfixcCs ||_dS(N(tpostfix(RR((s$/usr/lib/python2.6/bsddb/dbtables.pyR CscCs|t|i |ijS(N(RR(RR((s$/usr/lib/python2.6/bsddb/dbtables.pyR Es(RRR R R (((s$/usr/lib/python2.6/bsddb/dbtables.pyRAs tLikeCondcBs&eZdZeidZdZRS(s Acts as a function that will match using an SQL 'LIKE' style string. Case insensitive and % signs are wild cards. This isn't perfect but it should work for the simple common cases. cCsfd}x$|D]}|i|d|}q W|idd|_tid|id||_dS(Ns.*+()[]?s\t%s.*t^t$(treplacetlikestrtretcompile(RRtre_flagstchars_to_escapetchar((s$/usr/lib/python2.6/bsddb/dbtables.pyR Ns cCs|ii|S(N(Rtmatch(RR((s$/usr/lib/python2.6/bsddb/dbtables.pyR Vs(RRR Rt IGNORECASER R (((s$/usr/lib/python2.6/bsddb/dbtables.pyRHst__TABLE_NAMES__s ._COLUMNS__cCs|tS(N(t_columns(ttable((s$/usr/lib/python2.6/bsddb/dbtables.pyt _columns_key_ss._DATA_.s ._ROWID_.icCs|t|t|S(N(t_data(R"tcoltrowid((s$/usr/lib/python2.6/bsddb/dbtables.pyt _data_keykscCs|t|tS(N(R$(R"R%((s$/usr/lib/python2.6/bsddb/dbtables.pyt_search_col_data_keynscCs|tS(N(R$(R"((s$/usr/lib/python2.6/bsddb/dbtables.pyt_search_all_data_keyqscCs|t|tS(N(t_rowid(R"R&((s$/usr/lib/python2.6/bsddb/dbtables.pyt _rowid_keytscCs|tS(N(R*(R"((s$/usr/lib/python2.6/bsddb/dbtables.pyt_search_rowid_keywscCse|itdjpB|itdjp,|itdjp|itdjodSdSdS(sVerify that the given string does not contain any metadata strings that might interfere with dbtables database operation. iiN(tfindt_table_names_keyR!R$R*(R((s$/usr/lib/python2.6/bsddb/dbtables.pytcontains_metastringszs t bsdTableDBcBseZddddddZdZdZddZdZdZdZd Z d Z d Z d Z d Z dZhhdZhdZhdZdZdZRS(iic s.d |_ti}|o|tiO}ntitiBtiBtiB|B} y|tiO}Wnt j onX|o| ti B} nti |_ |i i ti|i i||| B|o|tiO}nti|i |_|iid|iiti|ii|ti||B|||_tiddjoHdtfdYdtffdY} | |i|_n|i i} yXt|idt| p8t|id |iittigdd | nWn| i n X| i!h|_"d S( sbsdTableDB(filename, dbhome, create=0, truncate=0, mode=0600) Open database name in the dbhome Berkeley DB directory. Use keyword arguments when calling this constructor. iiit cursor_py3kcBs,eZdZdZdZdZRS(cSs ||_dS(N(t _dbcursor(Rtdbcursor((s$/usr/lib/python2.6/bsddb/dbtables.pyR scSs |iiS(N(R2tclose(R((s$/usr/lib/python2.6/bsddb/dbtables.pyR4scSsV|iit|d}|dj o*|did|didf}n|S(Ns iso8859-1ii(R2t set_rangetbytestNonetdecode(Rtsearchtv((s$/usr/lib/python2.6/bsddb/dbtables.pyR5s  cSsPt|id}|dj o*|did|didf}n|S(Ntnextis iso8859-1i(tgetattrR2R7R8(RR:((s$/usr/lib/python2.6/bsddb/dbtables.pyt__next__s  (RRR R4R5R=(((s$/usr/lib/python2.6/bsddb/dbtables.pyR1s   tdb_py3kcs}eZdZd fdZd dZdd dZd dZd ddZd ddZ d dZ d Z RS( cSs ||_dS(N(t_db(RR((s$/usr/lib/python2.6/bsddb/dbtables.pyR scs|iid|S(Nttxn(R?tcursor(RR@(R1(s$/usr/lib/python2.6/bsddb/dbtables.pyRAscSs%t|idt|dd|S(Nthas_keys iso8859-1R@(R<R?R6(RtkeyR@((s$/usr/lib/python2.6/bsddb/dbtables.pyRBsicSsNt|d}|dj ot|d}n|ii||d|d|S(Ns iso8859-1tflagsR@(R6R7R?tput(RRCtvalueRDR@((s$/usr/lib/python2.6/bsddb/dbtables.pyREs cSs(t|d}|ii||d|S(Ns iso8859-1R@(R6R?RE(RRCRFR@((s$/usr/lib/python2.6/bsddb/dbtables.pyt put_bytesscSsQt|d}|ii|d|d|}|dj o|id}n|S(Ns iso8859-1R@RD(R6R?tgetR7R8(RRCR@RDR:((s$/usr/lib/python2.6/bsddb/dbtables.pyRHs  cSs+t|d}|ii|d|d|S(Ns iso8859-1R@RD(R6R?RH(RRCR@RD((s$/usr/lib/python2.6/bsddb/dbtables.pyt get_bytesscSs%t|d}|ii|d|S(Ns iso8859-1R@(R6R?tdelete(RRCR@((s$/usr/lib/python2.6/bsddb/dbtables.pyRJscSs |iiS(N(R?R4(R((s$/usr/lib/python2.6/bsddb/dbtables.pyR4sN( RRR R7RARBRERGRHRIRJR4((R1(s$/usr/lib/python2.6/bsddb/dbtables.pyR>s    RBRGR@N(#R7Rt DB_THREADt DB_CREATEt DB_INIT_MPOOLt DB_INIT_LOCKt DB_INIT_LOGt DB_INIT_TXNtDB_AUTO_COMMITtAttributeErrort DB_RECOVERtDBEnvtenvt set_lk_detecttDB_LOCK_DEFAULTtopent DB_TRUNCATEtDBtset_get_returns_nonet set_flagstDB_DUPtDB_BTREEt dbfilenametsyst version_infotobjectt txn_beginR<R.REtpickletdumpstaborttcommitt_bsdTableDB__tablecolumns( Rtfilenametdbhometcreatettruncatetmodetrecovertdbflagstmyflagst flagsforenvR>R@((R1s$/usr/lib/python2.6/bsddb/dbtables.pyR sF  "  '$  cCs|idS(N(R4(R((s$/usr/lib/python2.6/bsddb/dbtables.pyt__del__scCsX|idj o|iid|_n|idj o|iid|_ndS(N(RR7R4RU(R((s$/usr/lib/python2.6/bsddb/dbtables.pyR4s    cCs1y|ii|Wntij onXdS(N(RUttxn_checkpointRR(Rtmins((s$/usr/lib/python2.6/bsddb/dbtables.pyt checkpointscCs.y|iiWntij onXdS(N(RtsyncR(R((s$/usr/lib/python2.6/bsddb/dbtables.pyRv scCsdGH|ii}y_|i\}}xFth||6GH|i}|o|\}}q,|idSq,Wn tij o|inXdS(s*Print the database to stdout for debuggings5******** Printing raw database for debugging ********N(RRAtfirsttreprR;R4tDBNotFoundError(RtcurRCtdataR;((s$/usr/lib/python2.6/bsddb/dbtables.pyt _db_prints   c Cst|tptd }ydt|otdnx+|D]#}t|otdqDqDWt|}t|id|o t dn|i i }t|id|ii |t i|dd|t it|id|iitd|d ti}|i||iitd|t|id|ii tt i|dd||id }Wn^tij oO}|o|intid jot|dqt|idnXd S(sCreateTable(table, columns) - Create a new table in the database. raises TableDBError if it already exists or for other DB errors. s-bad table name: contains reserved metastringss.bad column name: contains reserved metastringsRBstable already existsRGiR@RIRDiiN(ii(t isinstancetlisttAssertionErrorR7R/t ValueErrorR#R<RRRURcRERdRetloadsRHR.tDB_RMWtappendRJRgtDBErrorRfR`RaRtargs(RR"tcolumnsR@tcolumntcolumnlist_keyt tablelisttdberror((s$/usr/lib/python2.6/bsddb/dbtables.pyt CreateTable%s>     '   cCst|tptt|o tdnt|}t|id|pgSt|id|ii|}|ot i |SgSdS(s\Return a list of columns in the given table. [] if the table doesn't exist. s-bad table name: contains reserved metastringsRBRIN( R}tstrRR/RR#R<RRHRdR(RR"Rtpickledcolumnlist((s$/usr/lib/python2.6/bsddb/dbtables.pytListTableColumnsUs    cCs/|iit}|oti|SgSdS(s)Return a list of tables in this database.N(Rtget_getR.RdR(Rtpickledtablelist((s$/usr/lib/python2.6/bsddb/dbtables.pyt ListTablesgsc Cst|tpty|i||Wntj od}y/t|}|ii}t i t |i d|i i |d|dt i}h}x|D]}|||value mapping dictionaries. * columns - a list of which column data to return. If columns is None, all columns will be returned. * conditions - a dictionary keyed on column names containing callable conditions expecting the data string as an argument and returning a boolean. iiiN(ii( RhRR7RRRR`RaRRtvalues(RR"RRRR((s$/usr/lib/python2.6/bsddb/dbtables.pytSelect_s  cCs||ijo|i|n|djo|i|}nxC||iD]1}|i|i|ptd|fqPqPWh}h}d}tid jo|i }|i |nyg}xo|i D]a} xXt |D]=\} } || | } | djo|i | | PqqW|i | qW|ii} d}x[|D]S\}}|d}t||}||jo d}nd}y| i|\}}x|t| |jo|t }||jos| p ||o8||joh||sB