;ò
d«²Bc           @   s:   d  Z  d Z d k l Z d k Td e f d „  ƒ  YZ d S(   sF   
   Copyright (C) 1999-2005 PimenTech SARL (http://www.pimentech.net)

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.

   This library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with this library; see the file COPYING.LIB.  If not,
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  
s   0.1(   s   HTMLFile(   s   *s   ZPipec           B   su   t  Z d  Z d Z h  d d <d d <f e i Z e d e ƒ  ƒ Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z RS(   s!    ZPipe (persistante fifo) Object s   ZPipes   labels	   View FIFOs   actions   html_view_zpipes   dtml/view_zpipec         C   s   g  |  _ d |  _ d  S(   Ns   Pipe(   s   selfs   fifos   title(   s   self(    (    s   zpipe.pys   __init__%   s    	c         C   s”   t  | ƒ t  d ƒ j os | i d ƒ } t | ƒ d j p! t | ƒ d j o | d d j o d Sn |  i i | d ƒ d |  _ d Sn d Sd S(   s    Add a line in fifo s    s   
i   i   i    N(	   s   types   lines   splits   spls   lens   selfs   fifos   appends
   _p_changed(   s   selfs   lines   spl(    (    s   zpipe.pys   add_line)   s     7	c         C   s;   t  |  i ƒ d j o d Sn d |  _ |  i i d ƒ Sd S(   s-    Return the first line of fifo and remove it i    s    i   N(   s   lens   selfs   fifos
   _p_changeds   pop(   s   self(    (    s   zpipe.pys   get_line5   s
     	c         C   s   t  |  i ƒ Sd S(   s    Return the length of fifo N(   s   lens   selfs   fifo(   s   self(    (    s   zpipe.pys
   get_length<   s     c         C   s   g  |  _ d S(   s    Empty fifo N(   s   selfs   fifo(   s   self(    (    s   zpipe.pys   reset@   s     (   s   __name__s
   __module__s   __doc__s	   meta_types
   SimpleItems   manage_optionss   HTMLFiles   globalss   html_view_zpipes   __init__s   add_lines   get_lines
   get_lengths   reset(    (    (    s   zpipe.pys   ZPipe   s    "				N(   s   __doc__s   __version__s   Globalss   HTMLFiles   OFS.SimpleItems
   SimpleItems   ZPipe(   s   ZPipes   HTMLFiles   __version__(    (    s   zpipe.pys   ?   s   
