;ò
\ÔÐHc           @   s  d  Z  d d d !Z d k Z d k l Z d k Td k l Z d k l Z d k	 Td	 e f d
 „  ƒ  YZ
 d k l Z y d k TWn n Xy d k TWn n Xd e
 e f d „  ƒ  YZ d e
 e e f d „  ƒ  YZ d k l Z d e
 e f d „  ƒ  YZ d e f d „  ƒ  YZ d S(   s@   
   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.66 $i   iþÿÿÿN(   s   Object(   s   *(   s   HTMLFile(   s   MessageDialogs	   CommonMapc           B   sM   t  Z e Z e ƒ  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z RS(   Nc         C   s/   x$ | i ƒ  D] \ } } | |  | <q W|  Sd  S(   N(   s   maps   itemss   keys   values   self(   s   selfs   maps   values   key(    (    s   map.pys   update&   s     c         C   s   |  i | ƒ Sd  S(   N(   s   selfs   updates   map(   s   selfs   map(    (    s   map.pys
   insert_map+   s    c         C   s‡   d |  i |  i ƒ  |  i f } xP |  i ƒ  D]B \ } } d | } d | | f } d | | f } d | } q, Wd | |  i f Sd  S(   Ns   <%s id='%s' title='%s'>
s	   %s<pair>
s   %s<key>%s</key>
s   %s<value>%s</value>
s
   %s</pair>
s   %s</%s>(   s   selfs	   meta_types   getIds   titles   xmlstrs   itemss   keys   value(   s   selfs   values   xmlstrs   key(    (    s   map.pys   __repr__.   s     
c         C   s(   |  i | ƒ o t Sn |  i | Sd S(   s   wrapN(   s   selfs   has_keys   keys   Nones   data(   s   selfs   key(    (    s   map.pys   __getitem__7   s     c         C   s%   |  i | ƒ o |  i | ƒ n d  S(   N(   s   selfs   has_keys   keys   _CommonMap__super_delitem(   s   selfs   key(    (    s   map.pys   __delitem__>   s    c         C   s)   t  | ƒ t  d ƒ j o d Sn d Sd  S(   Ns    i   i    (   s   types   value(   s   selfs   value(    (    s   map.pys	   is_stringB   s    (   s   __name__s
   __module__s   Nones   _CommonMap__super_delitems   ZLogs   Logs   updates
   insert_maps   __repr__s   __getitem__s   __delitem__s	   is_string(    (    (    s   map.pys	   CommonMap    s   							(   s   UserDicts   DictMapc           B   sD   t  Z d  Z d Z e i Z e i Z	 d d „ Z
 d „  Z d „  Z RS(   s   the map class (based on dict)s   DictMaps    c         C   s$   t  i |  | | ƒ t i |  ƒ d  S(   N(   s	   CommonMaps   __init__s   selfs   ids   titles   UserDict(   s   selfs   ids   title(    (    s   map.pys   __init__[   s    c         C   s%   |  i | ƒ o |  i | ƒ n d  S(   N(   s   selfs   has_keys   keys   _DictMap__super_delitem(   s   selfs   key(    (    s   map.pys   __delitem___   s    c         C   sT   y |  i i | i ƒ Wn2 y |  i i | ƒ WqL |  i | ƒ qL Xn X|  Sd  S(   N(   s   selfs   datas   updates   maps   _DictMap__super_update(   s   selfs   map(    (    s   map.pys   updatec   s    (   s   __name__s
   __module__s   __doc__s	   meta_types   UserDicts   __delitem__s   _DictMap__super_delitems	   CommonMaps   updates   _DictMap__super_updates   __init__(    (    (    s   map.pys   DictMapS   s    			s   PDictMapc           B   sÉ   t  Z d  Z d Z h  d d <d d <h  d d <d d <f e i Z e d e ƒ  ƒ Z e d	 e ƒ  ƒ Z	 e
 i Z d
 d „ Z d „  Z h  e i d <e i d <e i d <Z d „  Z d „  Z RS(   s   the map class (based on dict)s   PDictMaps   labels   Views   actions
   index_htmls   Edits   manage_mains   dtml/dictMapIndexs   dtml/dictMapEdits    c         C   s#   t  i |  ƒ | |  _ | |  _ d  S(   N(   s   PersistentMappings   __init__s   selfs   ids   title(   s   selfs   ids   title(    (    s   map.pys   __init__|   s    	c         C   s%   |  i | ƒ o |  i | ƒ n d  S(   N(   s   selfs   has_keys   keys   _PDictMap__super_delitem(   s   selfs   key(    (    s   map.pys   __delitem__   s    s   :strings   :floats   :intc         C   s   |  i i t | ƒ t ƒ Sd S(   s   for html formsN(   s   selfs   _dtml_typess   gets   types   values   None(   s   selfs   value(    (    s   map.pys	   dtml_type‹   s     c         C   sR   x; | i i ƒ  D]* \ } } |  i | ƒ o | |  | <q q W| i i d ƒ d S(   s   set_from_form.s   manage_mainN(	   s   REQUESTs   forms   itemss   keys   values   selfs   has_keys   RESPONSEs   redirect(   s   selfs   REQUESTs   values   key(    (    s   map.pys   set_from_formŽ   s      (   s   __name__s
   __module__s   __doc__s	   meta_types
   SimpleItems   manage_optionss   HTMLFiles   globalss
   index_htmls   manage_mains   PersistentMappings   __delitem__s   _PDictMap__super_delitems   __init__s   typess
   StringTypes	   FloatTypes   IntTypes   _dtml_typess	   dtml_types   set_from_form(    (    (    s   map.pys   PDictMapm   s    7		*	(   s   Folders   MyFolderc           B   sG   t  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   Nc         C   s   |  i t | ƒ | ƒ Sd  S(   N(   s   selfs
   _setObjects   strs   keys   value(   s   selfs   keys   value(    (    s   map.pys   __setitem__š   s    c         C   s   |  i t | ƒ t ƒ Sd  S(   N(   s   selfs   _getObs   strs   keys   None(   s   selfs   key(    (    s   map.pys   __getitem__œ   s    c         C   s   |  i t | ƒ ƒ d  S(   N(   s   selfs
   _delObjects   strs   object(   s   selfs   object(    (    s   map.pys   __delitem__ž   s    c         C   s8   |  | t j p t |  | ƒ d j o t Sn d Sd  S(   Ns    i   (   s   selfs   keys   Nones   str(   s   selfs   key(    (    s   map.pys   has_key    s    (c         C   s   |  i ƒ  Sd  S(   N(   s   selfs   objectValues(   s   self(    (    s   map.pys   values¤   s    c         C   s   |  i ƒ  Sd S(   s   funky with it ?N(   s   selfs	   objectIds(   s   self(    (    s   map.pys   keys¦   s     c         C   s   |  i ƒ  Sd  S(   N(   s   selfs   objectItems(   s   self(    (    s   map.pys   items©   s    (	   s   __name__s
   __module__s   __setitem__s   __getitem__s   __delitem__s   has_keys   valuess   keyss   items(    (    (    s   map.pys   MyFolder˜   s   						s   Mapc           B   s   t  Z d  Z d Z RS(   s'   the map class (based on dict or Folder)s   Map(   s   __name__s
   __module__s   __doc__s	   meta_type(    (    (    s   map.pys   Map¬   s    (   s   __doc__s   __version__s   typess"   Products.PimenTechLibCommon.objects   Objects    Products.PimenTechLibCommon.zlogs   Globalss   HTMLFiles   MessageDialogs   OFS.SimpleItems	   CommonMaps   UserDicts   PersistentMappings   Persistence.mappings   DictMaps
   SimpleItems   PDictMaps
   OFS.Folders   Folders   MyFolders   Map(   s   MyFolders   Maps   HTMLFiles   PDictMaps   Objects	   CommonMaps   DictMaps   UserDicts   Folders   __version__s   MessageDialogs   types(    (    s   map.pys   ?   s,   	')
