ó
Vü½cc           @   sf   d  Z  d d l m Z d d l m Z d d l m Z d d l m Z d Z d e f d „  ƒ  YZ	 d S(   s)   Administrative GUI for digest deliveries.iÿÿÿÿ(   t   mm_cfg(   t   Utils(   t   _(   t   GUIBaset	   real_namet	   list_namet	   host_namet   web_page_urlt   descriptiont   infot   cgiextt   _internal_namet   Digestc           B   s&   e  Z d  „  Z d d „ Z d „  Z RS(   c         C   s   d t  d ƒ f S(   Nt   digests   Digest options(   R   (   t   self(    (    s1   /export/web/mailman/mailman/Mailman/Gui/Digest.pyt   GetConfigCategory#   s    c         C   s5  | d k r d  St j } t d ƒ d t j t d ƒ t d ƒ f d t d ƒ f d t j t d	 ƒ t d
 ƒ f d t d ƒ f d t j t d ƒ t d ƒ f d t d ƒ f d t j d d t d ƒ f d t j t d ƒ t d ƒ f d t d ƒ f d t j d | f d t d ƒ t d ƒ t j	 d d d d | ƒf d t j d | f d t d ƒ t d ƒ t j	 d d d d | ƒf d  t j t d! ƒ t d" ƒ t d# ƒ t d$ ƒ t d% ƒ f d t d& ƒ t d' ƒ f d( t j t d ƒ t d ƒ f d t d) ƒ t d* ƒ f d+ t j t d ƒ t d ƒ f d t d, ƒ f g } | S(-   NR   s(   Batched-delivery digest characteristics.t
   digestablet   Not   Yesi   sC   Can list members choose to receive list traffic bunched in digests?t   digest_is_defaultt   RegularR   i    s1   Which delivery mode is the default for new users?t   mime_is_default_digestt   Plaint   MIMEs0   When receiving digests, which format is default?t   digest_size_threshholdi   sU   How big in Kb should a digest be before it gets sent out?  0 implies no maximum size.t   digest_send_periodicsJ   Should a digest be dispatched daily when the size threshold isn't reached?t   digest_headeri   s   Header added to every digests[   Text attached (as an initial message, before the table of contents) to the top of digests. s   headfoot.htmlt   rawt   mlistt   digest_footers   Footer added to every digests=   Text attached (as a final message) to the bottom of digests. t   digest_volume_frequencyt   Yearlyt   Monthlyt	   Quarterlyt   Weeklyt   Dailys0   How often should a new digest volume be started?sv   When a new digest volume is started, the volume number is
             incremented and the issue number is reset to 1.t   _new_volumes)   Should Mailman start a new digest volume?sg   Setting this option instructs Mailman to start a new volume
             with the next digest sent out.t   _send_digest_nowsO   Should Mailman send the next digest right now, if it is not
             empty?(
   t   NoneR    t   TEXTFIELDWIDTHR   t   Togglet   Radiot   Numbert   TextR   t   maketext(   R   R   t   categoryt   subcatt   WIDTHR	   (    (    s1   /export/web/mailman/mailman/Mailman/Gui/Digest.pyt   GetConfigInfo&   sL    		!		!							!		!.c         C   së   | d k rD | rD | j  ƒ  | j } | j } | j t d ƒ ƒ n£ | d k r” | r” | j ƒ  } | r~ | j t d ƒ ƒ qç | j t d ƒ ƒ nS | d k rÎ |  j | | t | | ƒ } | d  k rÎ d  Sn  t	 j
 |  | | | | ƒ d  S(	   NR$   sP   The next digest will be sent as volume
            %(volume)s, number %(number)sR%   s   A digest has been sent.s   There was no digest to send.R   R   (   R   R   (   t   bump_digest_volumet   volumet   next_digest_numbert   AddItemR   t   send_digest_nowt   _convertStringt   ALLOWEDSR&   R   t	   _setValue(   R   R   t   propertyt   valt   docR2   t   numbert   status(    (    s1   /export/web/mailman/mailman/Mailman/Gui/Digest.pyR8   ‹   s     
			N(   t   __name__t
   __module__R   R&   R0   R8   (    (    (    s1   /export/web/mailman/mailman/Mailman/Gui/Digest.pyR   "   s   	eN(   R   R   R   R   R   R	   R
   R   (
   t   __doc__t   MailmanR    R   t   Mailman.i18nR   t   Mailman.Gui.GUIBaseR   R7   R   (    (    (    s1   /export/web/mailman/mailman/Mailman/Gui/Digest.pyt   <module>   s    