?¡ëPNG  IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À? ¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
Ñò ¥ÅVHc@sdZddkZddkZddkZddkZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk l Z e iZddkTdZeZdZeeZdZdZdZd Zd Zd Zd Zd ZdZdZdeifd„ƒYZdefd„ƒYZ d„Z!dfd„ƒYZ"dfd„ƒYZ#de#e"fd„ƒYZ$ee$ƒdfd„ƒYZ%de%e"fd„ƒYZ&ee&ƒde"fd„ƒYZ'ee'ƒe(d jo+e$d!d"d d#d ƒZ)d d$d%d&d'd(ge*dƒZ+e,e)i-e+ƒZ.e,e)i/e.ƒZ0e+e0jo d)GHd*GHd+Ge+GHd,Ge0GHnd-GHe)i1ƒ\Z2Z3Z4d.e5e2ƒe5e3ƒe5e4ƒfGHd/Ge)i6i7Gd0Ge)i6i8GHd1Ge)i9i7Gd0Ge)i9i8GHd2GHd d$d%d&d'd(gd3d4gdZ+e,d5„e+e.ƒZ.e,e)i/e.ƒZ0e+e0jod6GHd7Ge+GHd8Ge0GHne)i1ƒ\Z2Z3Z4d.e5e2ƒe5e3ƒe5e4ƒfGHd/Ge)i6i7Gd0Ge)i6i8GHd1Ge)i9i7Gd0Ge)i9i8GHd9GHe.d:„Z:e)i;e:ƒe,e)i/e.ƒZ0e+e0jod6GHd7Ge+GHd8Ge0GHne)i1ƒ\Z2Z3Z4d.e5e2ƒe5e3ƒe5e4ƒfGHd/Ge)i6i7Gd0Ge)i6i8GHd1Ge)i9i7Gd0Ge)i9i8GHHe'd;d"d ƒZ<hZ=xCe*d<ƒD]5Z>d=e?e@e>ƒƒe>eAe>ƒfe=eBe>ƒGHd?e.eDfGHnqIWd@GHe<i1ƒ\Z2Z3Z4d.e5e2ƒe5e3ƒe5e4ƒfGHd/Ge<i6i7Gd0Ge<i6i8GHd1Ge<i9i7Gd0Ge<i9i8GHH[)[<ndS(As´ BeeStorage - Flatfile data storage facility. Definitions: block: minimal amount of storage allocated in the file record: Header + content + padding Copyright (c) 1998-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2008, eGenix.com Software GmbH; mailto:info@egenix.com See the documentation for further information on copyrights, or contact the author. All Rights Reserved. iÿÿÿÿN(tTools(t*i iièsÛsøsûs*cold***s*hot****iitErrorcBseZdZRS(s2 Baseclass for Errors related to this module. (t__name__t __module__t__doc__(((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR<stRunRecoveryErrorcBseZdZRS(s^ Error raised in case the storage file is damaged and recovery could be possible. (RRR(((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyRBscCsdS(sü This callback is used by the .collect() method to inform an object using the storage facility of a change in record layout. raw_data contains the raw data contents of the record. Use storage.decode() to decode it. N((t old_positiont new_positiontraw_data((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytdummy_callbackKs t BeeStoragecBseZdZdZdZdZdZdZe Z dZ dZ dZ dZdZdZdde ddd„Zeeeeed„Zed„Zed„Zed„Zd„Zeid ƒZd „Z e!i"e#d „Z$d „Z%d „Z&ee'd„Z(d„Z)d„Z*d„Z+e,i-e.e/e0e1fd„Z2e1e,i3e4i5e/ed„Z6de1e.e,i3e4i5e/ed„Z7e1d„Z8e0ed„Z9e9Z:e9Z;dd„Z<e<Z=e<Z>d„Z?e@iAd„ZBeBZCeDeEiFd„ZGd„ZHedd„ZIddd„ZJRS( s¾ Baseclass for flatfile data storage facilities. This class implements a simple database which can store and restore objects. The database is designed to be easily reconstructable in case something goes terribly wrong. File layout: · [Fileheader] (length FILEHEADERSIZE) · [Marker block] (length BLOCKSIZE) · STARTOFDATA: ...[datablock] (length mulitple of BLOCKSIZE)... Datablocks layout: · [ID] (1 byte) · [length of whole block] (4 bytes, little endian) · [CODE] (1 bytes) · [raw data] XXX Todo: * Implement write cache. * Add more recovery tools s1.2ic Cs||_totitƒn|tjo t}n|tdjo|tdt}n||_|ojti|ƒ|_ }|o?y|i ƒWqÕti j o|i ƒ|i ƒqÕXqÙ|i ƒn|o d}nd}||_ y=t||ƒ|_} | iddƒ| iƒ|_} WnÍtj oÁ} |o t| ‚ntottd|ƒnt|dƒ|_} |i| ƒ|itƒ| iƒ} | tdjo)| idt| tƒ| iƒ} n| |_d|_n Xd|_|oKd|_titƒ|_} tittƒ|_} | | g|_ n| tdjo| ot!d | ‚n| it"ƒ| i#t$t%ƒƒ}|t%jo4|o |t&j o| ot!d t'|ƒ‚nt|_(|i)| ƒd S( s» Create an instance using filename as data file. If lock is true, a filelock will be enabled until the file is closed. cache controls whether to enable a cache or not (should only be used where OS level caches are not available). min_recordsize can be set to have all records be padded to at least this size (might reduce overhead due to reallocation of records that have become too small for updates). readonly can be set to true to have existing files opened in read-only mode. Writes will then cause an IOError, opening a non-existing file in read-only mode will too. Opening the storage file in recover mode will disable some of the checks normally done. This flag should only be used if a previous normal opening failed with a hint to run recovery. iitrbsr+bisCreating a new storage file %ssw+bt s0storage file is damaged; run recovery ! (EOF=%i)s3storage file is damaged; run recovery ! (marker=%s)N(*treadonlyt_debugtlogtcallt SYSTEM_DEBUGt MINRECORDSIZEt BLOCKSIZEtmin_recordsizetFileLocktfilelocktlockRt remove_locktfilenametopentfiletseekttelltEOFtIOErrort SYSTEM_INFOtwrite_fileheadertmarktCOLDtwritetis_newtcachingtCachet MAXCACHESIZEt header_cachet CACHELIMITt record_cachetcachesRtFILEHEADERSIZEtreadtlent COLD_MARKERt HOT_MARKERtreprtstatetcheck_fileheader(tselfRRtcacheRRtrecoverRtmodeRRtwhyR*R,tmarker((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyt__init__„sv                  cCs¬|i|jodS|io td‚nto+ttd|i||jdpdƒn|ii|ƒ||jo|ii |ƒn|ii |ƒ||_dS(s[ Change the state of the storage file. The state indicates whether the file has changed in a way that needs proper shutdown (HOT). An unchanged or stable file should be marked COLD. This is an internal interface, use .start/end_transaction() for externally setting the state. Nsstorage is read-onlysMarking the file "%s": %stHOTR$( R4RRRRRRRRR%(R6R4R=R2R1R.((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR#õs  " cCs|i|ddƒdS(sC Run recovery. callback is a call back function that will be called for every valid record and has the same signature as the one used for .collect(). To open a storage file in recovery mode, pass the keyword 'recover=1' to the constructor. R8iN(tcollect(R6tcallback((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR8s cCs|i|ƒdS(s¥ Start a sequence of storage manipulation commands. Note that every write/free command automatically starts a transaction sequence. N(R#(R6R=((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytstart_transaction!s cCs|i|ƒdS(s: End a sequence of storage manipulation commands. N(R#(R6R$((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytend_transaction,scCsd|ii|itf}|dtt|ƒdd}ttdjo"|dttdtt}n|idƒ|i|ƒdS(sª Write a new header to the open file. Changes the file's position: moves the file's position to the start of the data area. s%s version %s blocksize %i R is itN(t __class__RtversionRR.R0RR%(R6Rt fileheader((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR"4s      s'(\w+) version ([\w.]+) blocksize (\d+) cCs|idƒ|itƒ}t|ƒtjotd|‚n|ii|ƒ}|djotd|‚n|iƒ\}}}||i i jotd||i i f‚n||i jotd||i f‚nt i |ƒtjotd|tf‚ndS(s… Checks the file header and verifies that all parameters are the same. Changes the file's position. isheader is damaged: "%s"swrong header format: "%s"s%wrong storage class: %s (expected %s)swrong version: %s (expected %s)s$blocksize mismatch: %s (expected %i)N(RR/R.R0Rt header_checktmatchtNonetgroupsRCRRDtstringtatoiR(R6RREtmtnameRDt blocksize((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR5Ps"  cCs td‚dS(sE Encode an object giving a string. Since the records are usually larger than the data size, it is important to store the string length or at least mark the end of data in some way. This method must be overloaded in order to implement an encoding schemes. s .encode() needs to be overriddenN(R(R6tobjectt StringTypettype((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytencodeis cCs td‚dS(sD Decode a string giving an object. The data string may well be larger than the string returned by the .encode method. This method will have to determine the true length on its own. This method must be overloaded in order to implement an encoding scheme. s .decode() needs to be overriddenN(R(R6tdata((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytdecodexs cCs%|iot|iddƒndS(sQ Clears the caches used (flushing any data not yet written). tclearN((R't method_mapplyR-(R6((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyt clear_cache…s cCs|io!|iƒ||iddƒn|io6|i o!|i|jo|i|ƒn|`n|io|iiƒ|`ndS(s6 Flush buffers and close the associated file. RUN(( R'tflushR-RRR4R#Rtunlock(R6R$RV((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytcloseŽs      cCs7tottd|ƒn|io|iƒndS(Nsdel %s(RRRRRZ(R6((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyt__del__ s cCsdS(s Flush all buffers. N((R6((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyRX§scCs d|ii|it|ƒfS(Ns<%s instance for "%s" at 0x%x>(RCRRtid(R6((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyt__repr__­s c CsM|io?|ii|d ƒ}|d j o|ii|dƒ|Sn||djp||ijotd|‚n|i}|i|ƒ|idƒ}|pt d|‚n|d|jp|d|jotd|t |ƒf‚n|d|dd!ƒd}||d|df}|io|ii ||ƒn|S( sÊ Read the header located at position and return a tuple (record size, statebyte, data area size). statebyte is one of the state constants. record size is the total number of bytes reserved for the record, data area size the number of bytes in its data area. self.file is positioned to point to the records data area. May raise errors if the position is invalid. iisinvalid position: %isposition %i is beyond EOFisinvalid header at %i: %ssèsz                      i cCsš|p|id}nt|dƒ}|itjo|itƒn|i}|idƒx+|i|ƒ}|pPn|i|ƒqa|i ƒdS(sM Issues a backup request using archiveext as filename extension. The archive file is a simple copy of the current storage file. If no name is given self.filename + '.backup' is used. buffersize gives the size of the buffer used for copying the file. s.backuptwbiN( RRR4R=R#RRR/R%RZ(R6tarchivet buffersizetarchfileRtbuffer((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytbackupTs   N(KRRRRDRHRRRRRRR'RR4R&R*R,R<R=R2R1R.R#R R8R@R$RAR"tretcompileRFR5ttypesRPRQRRRTRWRVRZR[RXR]tstructRbRRcRvRmRgRjRJRkRlRrRtRnRut __delitem__R%R{taddRxR(RyR/t __getitem__RztsystmaxintR„R…R>R’(((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR Vsj p           ) E   * lt PickleMixincBs,eZdZeid„Zeid„ZRS(s4 Pickle encoding. Uses binary pickles. cCs ||dƒS(s Encode an object giving a string. This method can be overloaded in order to implement other encoding schemes. i((R6ROtdumps((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyRR{s cCs ||ƒS(s Decode a string giving an object. This method can be overloaded in order to implement other encoding schemes. ((R6ROtloads((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyRT†s (RRRtcPickleRRRRžRT(((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyRœus tBeePickleStoragecBseZdZRS(s< Flatfile data storage facility for pickleable objects. (RRR(((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR ‘st MarshalMixincBs,eZdZeid„Zeid„ZRS(s Marshal encoding. cCs ||ƒS(s Encode an object giving a string. This method can be overloaded in order to implement other encoding schemes. ((R6ROR((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyRRŸs cCs ||ƒS(s Decode a string giving an object. This method can be overloaded in order to implement other encoding schemes. ((R6RORž((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyRTªs (RRRtmarshalRRRRžRT(((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR¡šs tBeeMarshalStoragecBseZdZRS(s> Flatfile data storage facility for marshallable objects. (RRR(((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR£µstBeeKeyValueStoragecBs‰eZdZdZd„Zdeid„ZeZ eZ ei d„Z ei eid„Zei eieid„ZeZd„ZRS(s‘ Flatfile storage for key,value pairs. keys and values must be pickleable object. The main difference between this class and the base class is that keys are readable separately from the values, e.g. values can be multi-MB big and are only read if this is really requested. NOTE: The .en/decode methods are NOT used. Uses binary pickles. cOsUtti|f||ƒ|io-tittƒ|_}|ii |ƒndS(N( tapplyR R<R'R(R)R+t key_cacheR-R{(R6targstkwsR¦((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR<Ïs cCs€||dƒ||dƒ}|djo |i}n|i||ƒ}|io*|ii||ƒ|ii||ƒn|S(s Write key and value to position. Returns the position under which the record was stored. If position is None, the implementation chooses a new one. iN(RHRRrR'R,R`R¦(R6tkeytvalueRaRRS((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR%Ös    cCs ||ƒS(s9 Decode the key part of a raw data record field. ((R6R Rž((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyt decode_keyòscCsv|io+|ii||ƒ}||j o|Sn|i|ƒ||iƒ}|io|ii||ƒn|S(sY Load the key part of an object from the file at the given position. (R'R¦R^RgRR`(R6RatloadRyR©((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytread_keyús     c Cs |ioU|ii||ƒ}||j o/||ƒ}||ƒ}||ƒ}||fSn|i|ƒ\} } } |io]|i| ƒ}||ƒ}||ƒ}||ƒ}|ii||ƒ|ii||ƒn"|i}||ƒ}||ƒ}||fS(sl Load an object from the file at the given position and return it as tuple (key,value). (R'R,R^RgR/R`R¦R( R6RaR¬tStringIORyRŒRR©RSRfRiRq((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR/s&            cCs|i|ƒdS(s[ Load the value part of an object from the file at the given position. i(R/(R6Ra((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyt read_value3sN(RRRRHR¦R<RŸRR%R{R˜RžR«R¬R(RyR­t cStringIOR®R/R™R¯(((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pyR¤¾s  t__main__stest-BeePickleStorage.datR7RtblablasHi thereg:’ËH¿@iy@sBeePickleStorage: sResults differ:sorig:srest:sBeePickleStorage works.s% %i valid records, %i old, %i invalids r cache hits:s misses:s h cache hits:s rewrite...txidcCsti||ƒS((tfR%(Rªtoldpos((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytRss Results differ:s orig:s rest:s collect...cCs|i|ƒ}|||tgtdtiR3tchrtocttstrtitemstvR{taddr(((s;/usr/lib64/python2.6/site-packages/mx/BeeBase/BeeStorage.pytsÂl    ÿÿÿ"  |  #   $(   $     $ 0 $