%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/
Upload File :
Create Path :
Current File : //proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/__init__.pyc

�
a�Nc@s�ddlZddlZddlmZddlmZmZdZdefd��YZ	d�Z
d�Zd	�Ze
d
kr�ddlmZe	e��ZddlmZee�ndS(
i����N(tFileApp(theader_valuet
remove_headers<http://www.c-eye.net/eyeon/WalkenWAVS/explorestudiospace.wavtMoreCowbellcBs&eZd�Zd�ZdZdZRS(cCs
||_dS(N(tapp(tselfR((sG/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/__init__.pyt__init__
sc	s"|jdd�}|jdd�}xXddgD]J}|d|kr1ttjjtjjt�|��}||��Sq1Wg�g�d���fd�}|j||�}�r�j	|�dj���t
�|jjd|���t
�|jjd|����gS|SdS(	Nt	PATH_INFOttSCRIPT_NAMEsbell-ascending.pngsbell-descending.pngs
/.cowbell/cset|d�}|rU|jd�rU�j|�t|d��|||��jS�|||�S(Nscontent-types	text/htmlscontent-length(Rt
startswithtappendR(tstatustheaderstexc_infotct(tbodytstart_responsettype(sG/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/__init__.pytrepl_start_responses

t__SCRIPT_NAME__(tgetRtostpathtjointdirnamet__file__tNoneRtextendtinsert_headt
javascripttreplacetinsert_bodyt	resources(	RtenvironRt	path_infotscript_nametfilenameRRtapp_iter((RRRsG/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/__init__.pyt__call__s"'
sz<script type="text/javascript">
var cowbellState = 'hidden';
var lastCowbellPosition = null;
function showSomewhere() {
  var sec, el;
  if (cowbellState == 'hidden') {
    el = document.getElementById('cowbell-ascending');
    lastCowbellPosition = [parseInt(Math.random()*(window.innerWidth-200)), 
                           parseInt(Math.random()*(window.innerHeight-200))];
    el.style.left = lastCowbellPosition[0] + 'px';
    el.style.top = lastCowbellPosition[1] + 'px';
    el.style.display = '';
    cowbellState = 'ascending';
    sec = 1;
  } else if (cowbellState == 'ascending') {
    document.getElementById('cowbell-ascending').style.display = 'none';
    el = document.getElementById('cowbell-descending');
    el.style.left = lastCowbellPosition[0] + 'px';
    el.style.top = lastCowbellPosition[1] + 'px';
    el.style.display = '';
    cowbellState = 'descending';
    sec = 1;
  } else {
    document.getElementById('cowbell-descending').style.display = 'none';
    cowbellState = 'hidden';
    sec = Math.random()*20;
  }
  setTimeout(showSomewhere, sec*1000);
}
setTimeout(showSomewhere, Math.random()*20*1000);
</script>
s<div id="cowbell-ascending" style="display: none; position: fixed">
<img src="__SCRIPT_NAME__/.cowbell/bell-ascending.png">
</div>
<div id="cowbell-descending" style="display: none; position: fixed">
<img src="__SCRIPT_NAME__/.cowbell/bell-descending.png">
</div>
(t__name__t
__module__RR'RR!(((sG/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/__init__.pyR	s		<	cCsJtjd|tj�}|r>||j� |||j�S||SdS(Ns</head>(tretsearchtItstarttend(Rttexttend_head((sG/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/__init__.pyRSs cCsJtjd|tj�}|r>||j� |||j�S||SdS(Ns</body>(R*R+R,R-R.(RR/tend_body((sG/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/__init__.pyR Zs cCs
t|�S(N(R(tglobal_confR((sG/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/__init__.pytmake_cowbellast__main__(tSimpleApplication(tserve(RR*t
paste.fileappRtpaste.responseRRtSOUNDtobjectRRR R3R(tpaste.debug.debugappR5Rtpaste.httpserverR6(((sG/opt/alt/python27/lib/python2.7/site-packages/paste/cowbell/__init__.pyt<module>sJ			

Zerion Mini Shell 1.0