ó
ŁˇKWc           @   sű  d  d l  Z  d  d l m Z e e d e  j j e  j j e  j j e  d d    Z	 e e d d  Z
 e e d d-  Z e e d d  Z e e d d  Z e e d d  Z e e d d.  Z e e d d/  Z e e d d  Z e e d d  Z e e d d  Z e e d d  Z e e e d d   Z e e d e  Z e e d  d!  Z e e d" d#  Z e re e d$ d%  Z n e e d$ d&  Z e e d' e e d( e   Z e e k rÓe e Z Z n  d)   Z d*   Z  d+   Z! d,   Z" d S(0   i˙˙˙˙N(   t   settingst   CAPTCHA_FONT_PATHs   ..s   fonts/Vera.ttft   CAPTCHA_FONT_SIZEi   t   CAPTCHA_LETTER_ROTATIONiÝ˙˙˙i#   t   CAPTCHA_BACKGROUND_COLORs   #fffffft   CAPTCHA_FOREGROUND_COLORs   #001100t   CAPTCHA_CHALLENGE_FUNCTs%   captcha.helpers.random_char_challenget   CAPTCHA_NOISE_FUNCTIONSs   captcha.helpers.noise_arcss   captcha.helpers.noise_dotst   CAPTCHA_FILTER_FUNCTIONSs   captcha.helpers.post_smootht   CAPTCHA_WORDS_DICTIONARYs   /usr/share/dict/wordst   CAPTCHA_PUNCTUATIONs   _"',.;:-t   CAPTCHA_FLITE_PATHt   CAPTCHA_TIMEOUTi   t   CAPTCHA_LENGTHi   t   CAPTCHA_IMAGE_BEFORE_FIELDt   CAPTCHA_DICTIONARY_MIN_LENGTHi    t   CAPTCHA_DICTIONARY_MAX_LENGTHic   t   CAPTCHA_OUTPUT_FORMATs)   %(image)s %(hidden_field)s %(text_field)ss)   %(hidden_field)s %(text_field)s %(image)st   CAPTCHA_TEST_MODEt   CATPCHA_TEST_MODEc         C   sV   t  |   r |  St t d j |  j d  d   i  i  d g  |  j d  d  Sd  S(   Nt   .i˙˙˙˙t    (   t   callablet   getattrt
   __import__t   joint   split(   t   string_or_callable(    (    sK   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/captcha/conf/settings.pyt   _callable_from_string    s    c           C   s
   t  t  S(   N(   R   R   (    (    (    sK   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/captcha/conf/settings.pyt   get_challenge'   s    c           C   s   t  r t t t   Sg  S(   N(   R   t   mapR   (    (    (    sK   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/captcha/conf/settings.pyt   noise_functions+   s    c           C   s   t  r t t t   Sg  S(   N(   R   R   R   (    (    (    sK   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/captcha/conf/settings.pyt   filter_functions1   s    (   iÝ˙˙˙i#   (   s   captcha.helpers.noise_arcss   captcha.helpers.noise_dots(   s   captcha.helpers.post_smooth(#   t   ost   django.confR    R   t   patht   normpathR   t   dirnamet   __file__R   R   R   R   R   R   R   R   R	   R
   t   NoneR   R   t   intR   t   TrueR   R   R   R   t   FalseR   R   R   R   R    (    (    (    sK   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/captcha/conf/settings.pyt   <module>   s6   <			