MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/lib/python2.4/site-packages/repomd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/repomd/repoMDObject.pyo
m
ODc@s-dkZdklZdfdYZdS(N(sRepoMDErrortRepoMDcBstZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZRS(srepresents the repomd xml filecCs||_h|_yti|}Wn#tij
otd|nX|i	}|i}|i
}|djo|i|ntd||idS(s0takes a repoid and a filename for the repomd.xmlsError: could not parse file %strepomds$Error: other unknown root element %sN(trepoidtselftrepoDatatlibxml2t	parseFiletfiletdoctparserErrortRepoMDErrortgetRootElementtroottnametxmlfiletypetchildrentnodet
loadRepoMDtfreeDoc(RRRRRRR((t7/usr/lib/python2.4/site-packages/repomd/repoMDObject.pyt__init__s				

cCsd|ii|o@|i|}|i|o||Sq`td||fntd|dS(s) return the data from the repository Datas Error: request %s not in %s datasError: odd MDtype requested: %sN(RRthas_keytmdtypetdstrequestR
(RRRR((Rt_returnData*s
cCs`|ii|o<|i|}|i|p|||<q\td|ntd|dS(sstores repository data
           mdtype = primary, filelists, other, group
           dataname = checksum, timestamp, basepath, relativepath
        s2Warning: duplicate data of %s description inputteds#Warning: odd mdtype being put in %sN(RRRRRtdatanametdataR
(RRRRR((Rt_storeRepoData8s
c	CsN|id}|ii|ph|i|<n|i}x|d
j	o|i	djo|i
}q?n|idjoH|id}|id}|i|d||i|d|nv|idjo5|id}|i}|i|d||fn1|id	jo |i}|i|d	|n|i
}q?q?Wd
S(s+loads a repository data node into the classttypetelementtlocationtbasethreftbasepathtrelativepathtchecksumt	timestampN(RtpropRRRRRtdatanodetNoneRtnextR
R trelativeRtcsumTypetcontenttcsumR%(	RRR%RR*R R'R-R+((RtloadRepoDataNodeIs0	
				cCsfx_|dj	oQ|idjo|i}qn|idjo|i|n|i}qqWdS(sDiterates through the data nodes and populates some simple data areasRRN(RR(RR)R
RR.(RR((RRes
		cCs|i|dS(sWreturns a tuple of (checksum type, checksum) for the specified Metadata
           fileR$N(RRR(RR((Rt	_checksumsscCs.|i|d}|i|d}||fS(s=returns location to specified metadata file, (base, relative)R"R#N(RRRR R*(RRR*R ((Rt	_locationyscCs|i|dS(s-returns timestamp for specified metadata fileR%N(RRR(RR((Rt
_timestampscCs
|idS(sHreturns a tuple of (checksum type, checksum) for the other Metadata filetotherN(RR/(R((Rt
otherChecksumscCs
|idS(s9returns location to other metadata file, (base, relative)R2N(RR0(R((Rt
otherLocationscCs
|idS(s)returns timestamp for other metadata fileR2N(RR1(R((RtotherTimestampscCs
|idS(sJreturns a tuple of (checksum type, checksum) for the primary Metadata filetprimaryN(RR/(R((RtprimaryChecksumscCs
|idS(s;returns location to primary metadata file, (base, relative)R6N(RR0(R((RtprimaryLocationscCs
|idS(s+returns timestamp for primary metadata fileR6N(RR1(R((RtprimaryTimestampscCs
|idS(sLreturns a tuple of (checksum type, checksum) for the filelists Metadata filet	filelistsN(RR/(R((RtfilelistsChecksumscCs
|idS(s=returns location to filelists metadata file, (base, relative)R:N(RR0(R((RtfilelistsLocationscCs
|idS(s-returns timestamp for filelists metadata fileR:N(RR1(R((RtfilelistsTimestampscCs
|idS(sHreturns a tuple of (checksum type, checksum) for the group Metadata filetgroupN(RR/(R((Rt
groupChecksumscCs
|idS(s9returns location to group metadata file, (base, relative)R>N(RR0(R((Rt
groupLocationscCs
|idS(s)returns timestamp for group metadata fileR>N(RR1(R((RtgroupTimestampscCs
|iiS(s,return list of metadata file types availableN(RRtkeys(R((Rt	fileTypess(t__name__t
__module__t__doc__RRRR.RR/R0R1R3R4R5R7R8R9R;R<R=R?R@RARC(((RRs,																				(RtmdErrorsR
R(R
RR((Rt?s	


Anon7 - 2021