;ò
¢)?Bc           @   s   d  Z  d k Z d k Z d k l Z y e e f Wn e j
 o d Z d Z n Xd „  Z e	 d d „ Z
 e	 e e d „ Z e	 d „ Z d S(	   sª   Provide some customization for site-wide behavior.

This should be considered experimental for Mailman 2.1.  The default
implementation should work for standard Mailman.
N(   s   mm_cfgi   i    c         C   sn   y8 t  i d ƒ } z t  i |  d ƒ Wd  t  i | ƒ XWn/ t j
 o# } | i t i j o ‚  qj n Xd  S(   Ni    iý  (	   s   oss   umasks   omasks   makedirss   paths   OSErrors   es   errnos   EEXIST(   s   paths   es   omask(    (    s   /var/mailman/Mailman/Site.pys   _makedir$   s     c         C   s5   t  i i t i |  ƒ } | o t | ƒ n | Sd S(   sí  Return the file system path to the list directory for the named list.

    If domain is given, it is the virtual domain for the named list.  The
    default is to not distinguish list paths on the basis of virtual domains.

    If the create flag is true, then this method should create the path
    hierarchy if necessary.  If the create flag is false, then this function
    should not attempt to create the path heirarchy (and in fact the absence
    of the path might be significant).
    N(   s   oss   paths   joins   mm_cfgs   LIST_DATA_DIRs   listnames   creates   _makedir(   s   listnames   domains   creates   path(    (    s   /var/mailman/Mailman/Site.pys   get_listpath4   s
    
 c         C   sO   | o t i } n
 t i } t i i | |  ƒ } | o t
 | ƒ n | Sd S(   s˜  Return the file system path to the list's archive directory for the
    named list in the named virtual domain.

    If domain is given, it is the virtual domain for the named list.  The
    default is to not distinguish list paths on the basis of virtual domains.

    If the create flag is true, then this method should create the path
    hierarchy if necessary.  If the create flag is false, then this function
    should not attempt to create the path heirarchy (and in fact the absence
    of the path might be significant).

    If public is true, then the path points to the public archive path (which
    is usually a symlink instead of a directory).
    N(   s   publics   mm_cfgs   PUBLIC_ARCHIVE_FILE_DIRs   subdirs   PRIVATE_ARCHIVE_FILE_DIRs   oss   paths   joins   listnames   creates   _makedir(   s   listnames   domains   creates   publics   subdirs   path(    (    s   /var/mailman/Mailman/Site.pys   get_archpathH   s     	c         C   sV   d k  l } g  } x8 t i t i ƒ D]$ } | | ƒ o | i | ƒ q& q& W| Sd S(   sÛ   Return the names of all the known lists for the given domain.

    If domain is given, it is the virtual domain for the named list.  The
    default is to not distinguish list paths on the basis of virtual domains.
    (   s   list_existsN(	   s   Mailman.Utilss   list_existss   gots   oss   listdirs   mm_cfgs   LIST_DATA_DIRs   fns   append(   s   domains   list_existss   gots   fn(    (    s   /var/mailman/Mailman/Site.pys   get_listnamesd   s      (   s   __doc__s   oss   errnos   Mailmans   mm_cfgs   Trues   Falses	   NameErrors   _makedirs   Nones   get_listpaths   get_archpaths   get_listnames(	   s   Falses   oss   get_archpaths   get_listnamess   errnos   mm_cfgs   _makedirs   Trues   get_listpath(    (    s   /var/mailman/Mailman/Site.pys   ?   s   			