MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/proc/2/cwd/usr/lib/python2.4/Demo/scripts/newslist.pyc
mò
‚=5Dc@sãdkZdkZdkZdkZdkZdkZdkZdkZdZdZdZ	dZ
eZdZdZ
dZdZd	ZxZeieid
fD]BZeiiedƒZeiieƒoeGHeeƒPq›q›WdklZd
kTdZeied„eieƒƒƒZhaeiiee	ƒZ	eiiee
ƒZ
eiieeƒZd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*e+djoe*ƒndS(Ns!/anfs/qsbigdisc/web/html/newspagesnntp-serv.cl.cam.ac.ukt	grouptreet
newsgroupsttrootis;... <img src="http://pelican.cl.cam.ac.uk/icons/page.xbm"> itHOMEs.newslistrc.py(sNNTP(t*s$Revision: 37320 $cCs
d|jS(Nt$(ts(R((t+/usr/lib/python2.4/Demo/scripts/newslist.pyt<lambda>mscCs9dGHx-|D]%}ti|dƒ}t||ƒqWdS(NsUpdating tree...t.(tgroupstitstringtsplitfieldstpartstmakeleafttree(RRRR((Rt	addtotreexs
cCs}|d}t|ƒ}|i|ƒph||<n|djod||d<n|djot|||dƒndS(NiiR
(tpathtjtlentlRthas_keyR(RRRR((RRs


cCsâtiit|dƒ}|tjo
d}nd|}t|dƒ}|i
d|dƒ|i
d|dƒ|i
d	ttd
ƒt||d|ƒ|i
dtd
ƒ|i
titiƒƒdƒ|iƒdS(Ns.htmlRs under tws<TITLE>Newsgroups availables	</TITLE>
s<H1>Newsgroups availables</H1>
s	<A HREF="s .html">Back to top level</A><P>
is4<I>This page automatically created by 'newslist' v. R
s</I><P>(tosRtjointpagedirRtfilenametrootpagetdetailtopentftwritethttppreft	printtreeRtptrcsrevttimetctimetclose(RRR$R RR((Rt
createpages


 cCs»t|ƒ}|tjop|djoc|idt|ddƒ|i|ddƒ|idt	dƒt
|d||ƒdSn|iƒ}|djoO|i
ƒ|djo|id|dd	ƒn|id
ƒ|d}nx¥|D]}|djok|id|dd
|ddƒti|dƒo!|idt|ddƒq•|idƒqøt|||||d|ƒqøW|djo|idƒndS(Nis<LI><B><A HREF="is.html">s.*s</A></B>s
s<LI>s
<UL>s<UL>R
s<LI><A HREF="news:s">s</A> s     <I>s</I>
s
</UL>(RRRtsublistsizetindentR R!R"R$tpagelinkiconR)tkeystkltsortRtdescRR#(R RR+R$RRR.((RR#£s2




%!#
cCsîha|djodSnyt|dƒ}dGHWn tj
od|GHdSnX|iƒ}x…|djowti|ƒ}yB|d}ti|dƒ}t
|ƒdjo|t|<nWntj
onX|iƒ}qeWdS(NRtrsReading descriptions...s Failed to open description file ii(R0tdescfileRtdtIOErrortreadlineRR
tsplittbitstgrpRtdscRt
IndexError(R2R3R8R7RR9((RtreaddescÎs,
			

cCstii|ƒpvd|dGHdGHtiiƒddjo4yti|dƒWq…dGHtidƒq…Xq‰d	GHtidƒndS(
Ns
Directory s does not exist.s Shall I create it for you? (y/n)ityiÿsSorry - failed!isOK. Exiting.(	RRtisdirRtsyststdinR5tmkdirtexit(R((Rt
checkopdirës
cCsÍdGHh}y titi|ƒtƒ}Wn'd|GHdGHdGHti	dƒnXd|dd|d|d	f}y,t|d
ƒ}t
i|ƒ}|iƒWntj
od|GHnX||fS(Ns#Reading current local group list...s&
*** Failed to open local group cache s5If this is the first time you have run newslist, thensuse the -a option to create it.is%02d%02d%02diidiR1sCannot open local group list (RR&t	localtimeRtstatttreefiletST_MTIMEttreetimeR>RAttreedateRtdumptmarshaltloadR(R4(RERIRHRRG((Rt
readlocallistûs" 	#cCsey<t|dƒ}ti||ƒ}|iƒd|dGHWn"d|GHdGHtidƒnXdS(NRsSaved list to s
s-Sorry - failed to write to local group cache s8Does it (or its directory) have the correct permissions?i(	RRERIRJRRR(R>RA(RERRIR((Rtwritelocallists
	cCs¾dGHd}|iƒd}g}dGHto	dGHnxl|D]d}ti|dƒd}to3ti
|dƒti
|dƒjo|dGq=|i|ƒq=Wd	GHto	d
GHn|S(NsGetting list of all groups...t010101is
Processing...s!
Ignoring following empty groups:iit s
s(End of empty groups)(RHtservertlisttinfoRt	skipemptyRR
R6tgrpnametatoitappend(RPRRRTRRHR((Rtgetallgroupss"	.	cCsud|dG|i|dƒd}dt|ƒGHdGg}x.|D]&}ti|ƒd}|i
|ƒqBWdGH|S(	Ns*Getting list of new groups since start of s...t000001isgot %d.s
Processing...itDone(RHRPt	newgroupsRRRRRR
R6RTRV(RPRHRRRTRR((Rtgetnewgroups0scCsLh}ttƒyJdtdGHtiddjotitƒ}n
ttƒ}d}Wn5t
it
ifj
o}dG|GHdGHd}nX|o:ttiƒdjo$tiddjot|ƒ}n-ttƒ\}}|ot||ƒ}n|ot||ƒtt|ƒnttƒd	GHtt|d
ƒdGHdS(NsConnecting to s...it0isError connecting to host:s$I'll try to use just the local list.s-asCreating pages...RRY(RRBRtnewshostR>tversiontNNTPtinitRt	connectedtnntplibt
error_tempt
error_permtxRtargvRWRRLRERHR[RRMR;R2R)R(RRRaRRHRe((Rtmain>s2


	1

t__main__(,R>RbR
RJR&RtposixttopdirR]RER2RR"RRSR,R*tcurdirtenvirontdirRRtrcfiletexiststexecfileR_RDR%tfilterR6R0tpageRRR)R#R;RBRLRMRWR[Rgt__name__(!RRSRLRWR%R[R2RR)RRBR
RbR>R,RnR#RgR"RjRRMRrRER]RiR*R&RR;R_RJRm((Rt?#sLH	
	
$				+				
			,