ó
Yü˝cc           @   sj   d  Z  d d l Z d d l Z d d l m Z d d l m Z d d l m Z d Z d   Z	 d   Z
 d S(	   s+   
    help
        Print this help message.
i˙˙˙˙N(   t   mm_cfg(   t   Utils(   t   _t    c         C   s
   t  t  S(   N(   R   t   __doc__(   t   mlist(    (    s8   /export/web/mailman/mailman/Mailman/Commands/cmd_help.pyt   gethelp!   s    c      	   C   s  |  j  } |  j } xx | j   D]j } | j |  r | j | d d } t d  } |  j j |  |  j j |  |  j j d  Pq q Wi  } d d  l } t	 j
 j t	 j
 j | j j   }	 xÔ t	 j |	  D]Ă }
 |
 j d  sÓ |
 j d  r˙ qÓ n  t	 j
 j |
  d } d	 | } y t |  Wn t k
 rCqÓ n X| d
 } d  } t t j | d  rt j | j |  } n  | rÓ | | | <qÓ qÓ Wg  } | j   } | j   x | D] } | j | |  q˝Wt j |  } t j d i | j  d 6t! j" d 6| j# d d d d 6| j$   d 6| j%   d 6| d 6d | d |  j& d d d } |  j j d  |  j j |  d  S(   Nt   absolutei   s;   You can access your personal options via the following url:R   i˙˙˙˙t   cmd_s   .pyi    s   Mailman.Commands.i   R   s   help.txtt   listnamet   versiont   listinfot   listinfo_urlt   requestaddrt	   adminaddrt   commandsR   t   langt   rawt   help('   R   t   msgt   get_senderst   isMembert   GetOptionsURLR   t   resultst   appendt   Mailman.Commandst   ost   patht   dirnamet   abspatht   Commandst   __file__t   listdirt
   startswitht   endswitht   splitextt
   __import__t   ImportErrort   Nonet   hasattrt   syst   modulesR   t   keyst   sortt   EMPTYSTRINGt   joinR   t   maketextt	   real_nameR    t   VERSIONt   GetScriptURLt   GetRequestEmailt   GetOwnerEmailt   msgdata(   t   rest   argsR   R   t   sendert	   memberurlt   urlhelpt   modhelpst   MailmanR   t   filet   modulet   modnamet   cmdnameR   t   helptextR*   t   cmdR   (    (    s8   /export/web/mailman/mailman/Mailman/Commands/cmd_help.pyt   process&   s\    			$ 




(   R   R(   R   R;   R    R   t   Mailman.i18nR   R,   R   RB   (    (    (    s8   /export/web/mailman/mailman/Mailman/Commands/cmd_help.pyt   <module>   s   	