cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
ŒôXc@sÃddlZddlZdd„Zdd„ZdZdZdZdZdZd    Z    d
Z
d Z d Z d Z dZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZd Z d!Z!d"Z"d#Z#d$Z$d%Z%d&Z&d'Z'd(Z(d)Z)d*Z*d+Z+d,Z,d-Z-iZ.x:e/ƒj0ƒD])\Z1Z2e1d d.krke1e.e2<nqBWd/Z3d0ejfd1„ƒYZ4d2fd3„ƒYZ5d4fd5„ƒYZ6e7d6kr¿ddl8Z8xíe8j9dD]ÞZ:y­e6e:ƒZ;d7d(GHe:GHd7d(GHe;j<ƒxye;j=ƒD]kZ:e:ddd8krˆe:GHe;j>e:ƒZ?e?j0ƒZ?e?j@ƒx!e?D]\Z1Z2d9Ge1Ge2GHqhWnqWWn(eAk
r·Z2d:Gd;Ge:Gd7Ge2GHnXqÚWndS(<iÿÿÿÿNicCs$t||ƒt||dƒd>S(Nii(tord(tcto((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyti16*scCsPt||ƒt||dƒd>t||dƒd>t||dƒd>S(Niiiiii(R(RR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyti32-ssÐÏࡱáiiiiiiiii    i
i i i iiiiiiiiiiiiiiiiii@iAiBiCiDiEiFiGiHitVT_s$00020900-0000-0000-C000-000000000046t
_OleStreamcBseZdZd„ZRS(sKOLE2 Stream
 
    Returns a read-only file object which can be used to read
    the contents of a OLE stream.  To open a stream, use the
    openstream method in the OleFile class.
 
    This function can be used with either ordinary streams,
    or ministreams, depending on the offset, sectorsize, and
    fat table arguments.
    cCs{g}xE|dkrM|j|||ƒ|j|j|ƒƒ||}q    Wtj|dƒ}tjj||| ƒdS(Niþÿÿÿt(tseektappendtreadtstringtjointStringIOt__init__(tselftfptsecttsizetoffsett
sectorsizetfattdata((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyRcs(t__name__t
__module__t__doc__R(((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyRRs t_OleDirectoryEntrycBs,eZdZd„Zd„Zdd„ZRS(sºOLE2 Directory Entry
 
    Encapsulates a stream directory entry.  Note that the
    constructor builds a tree of all subentries, so we only
    have to call it with the root object.
    cCsø||\}}}}}}||_||_||_||_||_||_g|_||dd}|dkrô|jg}    ||d\}
} } x:|
dkrØ|    j|ƒ|
}||d\}
} } qŸWx||jkrã|jjt||ƒƒ||d\}
} } | dkrp| }x°||d\}
} } |
dkrWPn|    j|ƒ|
}q0qÜxA|    d} |    d=|| d\}
} } | |kr«Pn| }qs||d\}
} } | | krÜ| }qÜqÜW|jj    ƒndS(Niiiÿÿÿÿ(
tsidtnamettypeRRtclsidtkidsR    Rtsort(RtsidlistRRRRRtsidsRtstacktlefttrighttchildtptr((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyRsL                                   
       cCst|j|jƒS(sCompare entries by name(tcmpR(Rtother((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyt__cmp__ÈsicCs®ddddddg}d|t|jƒG||jG|jdkrU|jGd
GnH|jdkr…|jr…d|d |jGHnx"|jD]}|j|dƒqWd S(sADump this entry, and all its subentries (for debug purposes only)s    (invalid)s    (storage)s(stream)s (lockbytes)s
(property)s(root)t iitbytesis{%s}N(ii(ii(treprRRRRRtdump(RttabtTYPEStkid((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyR.Ís   (RRRRR*R.(((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyRxs    G    t    OleFileIOcBs›eZdZdd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d„Z d    „Z d
„Z d „Zd d „Zd„Zd„Zd„ZRS(s¡OLE container object
 
    This class encapsulates the interface to an OLE 2 structured
    storage file.  Use the listdir and openstream methods to access
    the contents of this file.
 
    Object names are given as a list of strings, one for each subentry
    level.  The root entry should be omitted.  For example, the following
    code extracts all image streams from a Microsoft Image Composer file:
 
        ole = OleFileIO("fan.mic")
 
        for entry in ole.listdir():
            if entry[1:2] == "Image":
                fin = ole.openstream(entry)
                fout = open(entry[0:1], "wb")
                while 1:
                    s = fin.read(8192)
                    if not s:
                        break
                    fout.write(s)
 
    You can use the viewer application provided with the Python Imaging
    Library to view the resulting files (which happens to be standard
    TIFF files).
    cCs|r|j|ƒndS(N(topen(Rtfilename((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyRscCs t|ƒtdƒkr-t|dƒ|_n    ||_|jjdƒ}t|ƒdksj|d tkrvtd‚n|j|dd!ƒ}dt|dƒ>|_    dt|d    ƒ>|_
t |d
ƒ|_ |j |ƒ|jt |d ƒƒd |_t |d ƒ|_d S(sOpen an OLE2 fileRtrbiis#not an OLE2 structured storage fileiiii i8i0i<N(RR3RR
tlentMAGICtIOErrort_clsidRRtminisectorsizeRtminisectorcutofftloadfatt loaddirectorytNonet
ministreamt minifatsect(RR4theaderR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyR3    s    "      c    Cs¨|dd!}g}x…tdt|ƒdƒD]k}t||ƒ}|dksY|dkr]Pn|j|ƒ}|t|d„tdt|ƒdƒƒ}q,W||_dS(NiLiiiiþÿÿÿiÿÿÿÿcSs t||ƒS(N(R(tits((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyt<lambda>6s(trangeR6RtgetsecttmapR(RRARRRBtixRC((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyR<*s /cCsF|j|jƒjƒ}t|d„tdt|ƒdƒƒ|_dS(NcSs t||ƒS(N(R(RBRC((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyRD?sii(t_openR@R
RGRER6tminifat(RRC((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyt loadminifat9scCs.|jjd|j|ƒ|jj|jƒS(Ni(RRRR
(RR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyRFAscCs tt|ƒS(N(tfilterR(RRC((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyt_unicodeGsc    Cs|j|ƒ}g|_xÐ|jdƒ}|s4Pnt|dƒ}|j|ddt|dƒ!ƒ}t|dƒt|dƒt|dƒf}t|dƒt|d    ƒ}}|j|d
d !ƒ}|jj||||||fƒqt    |jdƒ|_
dS( Ni€iBii@iDiHiLitixiPi`( RIR!R
RRMRRR9R    Rtroot(    RRRtentryRRtptrsRR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyR=Ns    #*%cCs|jjƒdS(N(RNR.(R((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyt dumpdirectoryescCsh|dt|ƒkrdSdddt|dƒt|dƒt|dƒfttt|dd    !ƒƒS(
NtRs%08X-%04X-%04X-%02X%02X-s%02Xiiiii(R6RRttupleRGR(RR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyR9js
 'cCsb||jg}xK|jD]@}|jr?|j|||ƒq|j|d|jgƒqWdS(Ni(RRt_listR    (RtfilestprefixtnodeRO((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyRTqs
    cCsW|j}xD|D]<}x-|jD]}|j|kr Pq q Wtd‚|}qW|jS(Nsfile not found(RNRRR8R(RR4RWRR1((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyt_find{s         
iÿÿÿcCs†||jkrd|jsB|jƒ|j|jddƒ|_nt|j||d|j|jƒSt|j||d|j    |j
ƒS(Niii( R;R?RKRIR!RR:RJRRR(RtstartR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyRIˆs    
 cCs g}|j|g|jƒ|S(s,Return a list of streams stored in this file(RTRN(RRU((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pytlistdiršsc    CsV|j|ƒ}|j|\}}}}}}|dkrFtd‚n|j||ƒS(s(Open a stream as a read-only file objectisthis file is not a stream(RXR!R8RI(    RR4tslotRRRRR"R((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyt
openstream¤s
  c CsP|j|ƒ}i}|jdƒ}|j|dd!ƒ}|jdƒ}|j|d ƒ}|jt|dƒƒd|jt|jdƒƒdƒ}x±tt|dƒƒD]š}t|d|dƒ}t|d|dƒ}    t||    ƒ}
|
tkr,t||    dƒ} | d    kr>| d
} q>n|
tkrNt||    dƒ} nð|
t    t
fkrvt||    dƒ} nÈ|
t kr˜t||    dƒ} n¦|
t t fkrÝt||    dƒ} ||    d|    d| d !} na|
tkrt||    dƒ} ||    d|    d| !} n&|
tkr`t||    dƒ} |j||    d|    d| d !ƒ} nÞ|
tkr­tt||    dƒƒtt||    dƒƒd >} | d} n‘|
tkrÐt||    dƒ} nn|
tkrý|j||    d|    d!ƒ} nA|
tkr8t||    dƒ} ||    d|    d| !} nd} | ||<q®W|S(s(Return properties described in substreamiiiiis****ii i€iiii l€1N(R\R
R9RRREtVT_I2RtVT_UI2tVT_I4tVT_ERRORtVT_UI4tVT_BSTRtVT_LPSTRtVT_BLOBt    VT_LPWSTRRMt VT_FILETIMEtlongtVT_UI1RtVT_CLSIDtVT_CFR>( RR4RRRCRtfmtidRBtidRRtvaluetcount((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyt getproperties°sX&       ) 4   ! N(RRRR>RR3R<RKRFRMR=RQR9RTRXRIRZR\Ro(((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyR2ås      !                                
         
     t__main__t-ss   s***s cannot read(BR R RRR7tVT_EMPTYtVT_NULLR]R_tVT_R4tVT_R8tVT_CYtVT_DATERbt VT_DISPATCHR`tVT_BOOLt
VT_VARIANTt
VT_UNKNOWNt
VT_DECIMALtVT_I1RhR^RatVT_I8tVT_UI8tVT_INTtVT_UINTtVT_VOIDt
VT_HRESULTtVT_PTRt VT_SAFEARRAYt    VT_CARRAYtVT_USERDEFINEDRcReRfRdt    VT_STREAMt
VT_STORAGEtVT_STREAMED_OBJECTtVT_STORED_OBJECTtVT_BLOB_OBJECTRjRit    VT_VECTORtVTtvarstitemstktvt
WORD_CLSIDRRR2RtsystargvtfiletoleRQRZRotpropsR R8(((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\OleFileIO.pyt<module>'s  &mÿ