mò
e'Gc           @   s(  d  k  Z  d  k Z d  k Z d  k Z d  k Z e  i i e d d ƒ Z e  i i e  i i	 e
 ƒ d ƒ Z e i d ƒ Z d Z d Z d Z d Z d Z d	 Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d Z  d Z! d Z" d
 e# f d „  ƒ  YZ$ e$ ƒ  Z% e% i& Z& e% i' Z' d  S(   Nt   etcs   extfile.init   ExtFilei    i   i   i   i   i   t   Configurationc           B   s5   t  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   Nc         C   s   |  | S(   N(   t   selft   name(   R   R   (    (    tD   /home2/kennisonb/webapps/zope/Zope/Products/ExtFile/configuration.pyt   __getattr__'   s    c         C   s   | |  | <d  S(   N(   t   valueR   R   (   R   R   R   (    (    R   t   __setattr__*   s    c         C   s)   d |  _ d |  _ d |  _ |  i ƒ  d  S(   Nf0.10000000000000001i
   s   application/octet-streams
   text/plains   text/x-unknown-content-type(   s   application/octet-streams
   text/plains   text/x-unknown-content-type(   R   t   dirlock_sleep_secondst   dirlock_sleep_countt   unknown_typest   load(   R   (    (    R   t   __init__-   s    			c         C   sD   t  } t i i | ƒ p
 t } n t i d | ƒ |  i	 | ƒ d  S(   Ns   Using configuration file %s(
   t   SITE_INIt   filet   ost   patht   existst   EXAMPLE_INIt	   event_logt   infoR   t   loadfile(   R   R   (    (    R   R   5   s
    
c         C   s  t  i  ƒ  } | i | ƒ d } t d  | i | d ƒ i d d ƒ i	 d ƒ ƒ |  _ t | i | d ƒ d ƒ |  _ | i | d ƒ |  _ | i | d ƒ |  _ | i | d	 ƒ |  _ | i | d
 ƒ |  _ | i | d ƒ |  _ | i | d ƒ |  _ | i | d ƒ |  _ | i | d ƒ |  _ | i | d ƒ |  _ | i | d ƒ |  _ d } h  |  _ xF | i | ƒ D]5 \ } } | i ƒ  } t i | | ƒ | |  i | <qaWd } | i  | ƒ op xm | i | ƒ D]X \ } } | d j o | i# | d ƒ |  _$ qÀ| d j o | i | d ƒ |  _% qÀqÀWn |  i a& |  i a' |  i d j o
 t( a) nƒ |  i d j o
 t* a) ni |  i d j o
 t+ a) nO |  i d j o
 t, a) n5 |  i d j o
 t- a) n |  i d j o
 t. a) n |  i d j o
 t/ a0 n |  i d j o
 t1 a0 n |  i d j o
 t2 a3 n |  i d j o
 t4 a3 n |  i a5 |  i a6 |  i a7 |  i a8 |  i d j o
 t9 a: n5 |  i d  j o
 t; a: n |  i d! j o
 t< a: n |  i d" j o
 t= a> n |  i d# j o
 t? a> n |  i d$ j o
 t@ aA n |  i d% j o
 tB aA n d  S(&   Nt
   repositoryt   locations   \t   /t   umaski   t   modet   cases	   zodb-paths   slice-widths   slice-depths   custom-methods   file-formatt
   extensionss   copy-of-protections   undo-policyt	   mimetypest   dirlocks   sleep-secondss   sleep-countt   flats	   sync-zodbt   sliceds   sliced-reverses   sliced-hasht   customt	   normalizet   keept   physicalt   virtuals   zope-ids   mimetype-appends   mimetype-replacet   protectt   allows   backup-on-deletes   always-backup(C   t   ConfigParsert   parsert   readR   t   sectiont   filtert   Nonet   gett   replacet   splitR   R   t   intR   R   R   t	   zodb_patht   getintt   slice_widtht   slice_deptht   custom_methodt   file_formatR   t   copy_of_protectiont   undo_policyt   mimetypes_override_mapt   itemst   typet   extt   lowerR   t   add_typet   has_sectiont   keyR   t   getfloatR	   R
   t   REPOSITORY_PATHt   REPOSITORY_UMASKt   FLATt
   REPOSITORYt	   SYNC_ZODBt   SLICEDt   SLICED_REVERSEt   SLICED_HASHt   CUSTOMt	   NORMALIZEt   NORMALIZE_CASEt   KEEPt   PHYSICALt	   ZODB_PATHt   VIRTUALt   SLICE_WIDTHt   SLICE_DEPTHt   CUSTOM_METHODt   FILE_FORMATt   ZOPEIDt   REPOSITORY_EXTENSIONSt   MIMETYPE_APPENDt   MIMETYPE_REPLACEt   ENABLEDt   COPY_OF_PROTECTIONt   DISABLEDt   BACKUP_ON_DELETEt   UNDO_POLICYt   ALWAYS_BACKUP(   R   R   R*   R=   RB   R   R>   R,   (    (    R   R   =   s”        3	  !		









				





(   t   __name__t
   __module__R   R   R   R   R   (    (    (    R   R   %   s
   				((   R   t   syst   loggingR   R)   R   t   joint   INSTANCE_HOMER   t   dirnamet   __file__R   t	   getLoggerR   RF   RH   RI   RJ   RK   RL   RM   RO   RP   RR   R]   R[   RW   RY   RZ   R^   R`   t
   NO_PREVIEWt   GENERATEt   UPLOAD_NORESIZEt   UPLOAD_RESIZEt   dictR   t   configR   R   (!   RM   R   R   RY   R[   R`   RI   RZ   RK   Rl   RO   RP   RH   RL   RW   Rm   RJ   Ro   RF   R   R   RR   R]   R   R   Rk   R)   Rc   R   Rd   Rj   R^   R   (    (    R   t   ?   s@   					!q		