;ò
È¨üBc           @   ss   d  Z  d d d !Z d k Td k l Z d e f d „  ƒ  YZ d e e f d	 „  ƒ  YZ d
 e e	 f d „  ƒ  YZ
 d S(   sA   
   Copyright (C) 2003 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   $Revision: 1.25 $i   iþÿÿÿ(   s   *(   s   HTMLFiles	   CommonSetc           B   s\   t  Z d  Z d Z e d e ƒ  ƒ Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d „  Z RS(	   s    common set object s	   CommonSets   dtml/setIndexc         C   s\   d |  i |  i ƒ  |  i f } x% |  i ƒ  D] } d | | f } q, Wd | |  i f Sd  S(   Ns   <%s id='%s' title='%s'>
s   %s<element>%s</element>
s   %s</%s>(   s   selfs	   meta_types   getIds   titles   xmlstrs   valuess   object(   s   selfs   objects   xmlstr(    (    s   set.pys   __repr__"   s
     c         C   s   |  i | ƒ Sd  S(   N(   s   selfs
   insert_maps   set(   s   selfs   set(    (    s   set.pys
   insert_set(   s    c         C   s   |  i | ƒ Sd S(   s    UNION N(   s   selfs
   insert_maps   other(   s   selfs   other(    (    s   set.pys   __iadd__+   s     c         C   s&   x | i ƒ  D] } |  | =q W|  Sd  S(   N(   s   others   keyss   ks   self(   s   selfs   others   k(    (    s   set.pys   __isub__/   s     c         C   s;   x0 | i ƒ  D]" } |  i | ƒ o |  | =q q W|  Sd S(   s    INTERSECTION N(   s   others   keyss   ks   selfs   has_key(   s   selfs   others   k(    (    s   set.pys   inter4   s      c         C   sR   |  i d |  i |  i ƒ  | f ƒ |  i | ƒ o | |  | <| Sn |  | Sd S(   s(   be careful, inserts only if needed !!!!!s   %s (Set)%s.insert(%s)N(   s   selfs   messages	   meta_types   getIds   objects   has_key(   s   selfs   object(    (    s   set.pys   insert;   s     #
(   s   __name__s
   __module__s   __doc__s	   meta_types   HTMLFiles   globalss
   index_htmls   __repr__s
   insert_sets   __iadd__s   __isub__s   inters   insert(    (    (    s   set.pys	   CommonSet   s    					s   Setc           B   s   t  Z d  Z d Z d „  Z RS(   s   the set classs   Setc         C   s*   |  i d |  i |  i ƒ  | | f ƒ d S(   s#   avoid infinite recursion when addeds!   %s (Set)%s.manage_afterAdd(%s,%s)N(   s   selfs   messages	   meta_types   getIds   items	   container(   s   selfs   items	   container(    (    s   set.pys   manage_afterAddL   s     &(   s   __name__s
   __module__s   __doc__s	   meta_types   manage_afterAdd(    (    (    s   set.pys   SetG   s    s   PDictSetc           B   s   t  Z d  Z d Z e i Z RS(   s(    the set class based on persistent dict s   PDictSet(   s   __name__s
   __module__s   __doc__s	   meta_types   PDictMaps   __init__(    (    (    s   set.pys   PDictSetQ   s    N(   s   __doc__s   __version__s   Products.PimenTechLibCommon.maps   Globalss   HTMLFiles   Objects	   CommonSets   Maps   Sets   PDictMaps   PDictSet(   s   Sets   PDictSets   HTMLFiles	   CommonSets   __version__(    (    s   set.pys   ?   s   ,

