|
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/mod_python/ |
Upload File : |
mò
A™áCc @ s` d Z d k l Z l Z d k Z d k Z d e f d „ ƒ YZ d „ Z d „ Z d „ Z
d S( sS
This module is a mod_python handler that can be used to test the configuration.
( s apaches utilNt bounded_bufferc B s2 t Z d Z d „ Z d „ Z d „ Z d „ Z RS( s“
This class implements a bounded buffer, i.e. a list that keeps the last
n lines. It doesn't use pop(0), which is costly.
c C s | | _ g | _ d | _ d S( Ni ( t sizet selft max_sizet listt pos( R R ( ( t: /usr/lib/python2.4/site-packages/mod_python/testhandler.pyt __init__# s c C sX t | i ƒ | i j o | i i | ƒ n | | i | i <| i d | i | _ d S( Ni ( t lenR R R t appendt valueR ( R R
( ( R R ( s c C s | i | i | i | i S( N( R R R ( R ( ( R t items/ s c C s t | i ƒ ƒ S( N( t iterR R ( R ( ( R t __iter__2 s ( t __name__t
__module__t __doc__R R R R
( ( ( R R s
c C sW | i d ƒ | i d ƒ x) | D]! } | i d | | | f ƒ q! W| i d ƒ d S( Ns <table border="1">s$ <tr><th>Key</th><th>Value</th></tr>
s: <tr><td><code>%s</code></td><td><code>%s</code></td></tr>
s </table>( t reqt writet tablet key( R R R ( ( R t write_table5 s
c C sq xj | D]b } t | t ƒ o t | | | d ƒ q | i d | ƒ | i d i | ƒ ƒ | i d ƒ q Wd S( Ni s t s
( t treet entryt
isinstanceR t
write_treeR t levelR t join( R R R R ( ( R R ? s c C s" t i | ƒ | _ | i i d ƒ o t t i i t i
ƒ | i i ƒ d ƒ } t d ƒ } x | D] } | i | ƒ qb W| i ƒ d | _ x | D] } | i | ƒ q“ Wt i Sn | i ƒ d | _ | i d ƒ | i d ƒ | i d ƒ | i d d
| i i d ƒ f ƒ | i d d t i t i ƒ o d
t i t i ƒ p d f ƒ | i d d t i t i ƒ o d t i t i ƒ p d f ƒ | i d d t i
ƒ f ƒ | i d d | i ƒ f ƒ | i i o6 | i d d t i i t i
ƒ | i i ƒ f ƒ n | i d d. ƒ | i d d t i f ƒ | i d d d i t i ƒ f ƒ | i d d | i! f ƒ | i d ƒ y d k"