ó
pÁìVc           @  sf   d  d l  m Z d  d l Z d  d l m Z d  d l m Z d  d l m Z d e f d „  ƒ  YZ	 d S(   iÿÿÿÿ(   t   unicode_literalsN(   t   settings(   t   ImproperlyConfigured(   t   AppConft   CompressorConfc           B  s6  e  Z e j Z e Z d  Z d  Z	 d Z
 d Z d Z d Z d  Z d  Z d g Z d Z d g 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# e Z$ d' Z% i  Z& d Z' i  Z( d „  Z) d d( d „  ƒ  YZ* d „  Z+ d „  Z, d „  Z- d „  Z. d „  Z/ d „  Z0 RS()   u"   compressor.parser.AutoSelectParseru   CACHEu(   compressor.storage.CompressorFileStorageu   compressor.css.CssCompressoru   compressor.js.JsCompressoru0   compressor.filters.css_default.CssAbsoluteFilteru   mtimeu$   compressor.filters.jsmin.JSMinFilteru   java -jar compiler.jaru    u   csstidyu   --template=highestu   java -jar yuicompressor.jaru   yuglifyu
   --terminali   u    compressor.cache.simple_cachekeyi<   i   i   i
   im  u   manifest.jsonc          C  s3   y d d  l  }  |  j ƒ  SWn t k
 r. d  SXd  S(   Niÿÿÿÿ(   t   jinja2t   Environmentt   ImportErrort   None(   R   (    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyt   JINJA2_GET_ENVIRONMENTH   s
    t   Metac           B  s   e  Z d  Z RS(   u   compress(   t   __name__t
   __module__t   prefix(    (    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyR
   O   s   c         C  sS   | d  k r t j } n  | d  k r7 t d d ƒ ‚ n  t j j t j j | ƒ ƒ S(   Nu   COMPRESS_ROOT defaults to u!   STATIC_ROOT, please define either(   R   R   t   STATIC_ROOTR   t   ost   patht   normcaset   abspath(   t   selft   value(    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyt   configure_rootR   s    c         C  s:   | d  k r t j } n  | j d ƒ s6 t d ƒ ‚ n  | S(   Nu   /u;   URL settings (e.g. COMPRESS_URL) must have a trailing slash(   R   R   t
   STATIC_URLt   endswithR   (   R   R   (    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyt   configure_url[   s
    c         C  s   | d  k r d } n  | S(   Nu   default(   R   (   R   R   (    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyt   configure_cache_backendd   s    	c         C  s   | s i t  j d 6} n  | S(   Nu
   STATIC_URL(   R   R   (   R   R   (    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyt   configure_offline_contexti   s    c         C  s   | s i t  j d 6} n  | S(   Nu
   STATIC_URL(   R   R   (   R   R   (    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyt!   configure_template_filter_contextn   s    c         C  s(   t  | t t f ƒ s$ t d ƒ ‚ n  | S(   NuT   The COMPRESS_PRECOMPILERS setting must be a list or tuple. Check for missing commas.(   t
   isinstancet   listt   tupleR   (   R   R   (    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyt   configure_precompilerss   s    N(    i  i€Q i ' i  i€Q i€3á(    (1   R   R   R   t   DEBUGt   ENABLEDt   Falset   VERBOSER   t   DEBUG_TOGGLEt   PARSERt
   OUTPUT_DIRt   STORAGEt   CSS_COMPRESSORt   JS_COMPRESSORt   URLt   ROOTt   CSS_FILTERSt   CSS_HASHING_METHODt
   JS_FILTERSt   PRECOMPILERSt   CLOSURE_COMPILER_BINARYt   CLOSURE_COMPILER_ARGUMENTSt   CSSTIDY_BINARYt   CSSTIDY_ARGUMENTSt
   YUI_BINARYt   YUI_CSS_ARGUMENTSt   YUI_JS_ARGUMENTSt   YUGLIFY_BINARYt   YUGLIFY_CSS_ARGUMENTSt   YUGLIFY_JS_ARGUMENTSt   DATA_URI_MAX_SIZEt   CACHE_BACKENDt   CACHE_KEY_FUNCTIONt   REBUILD_TIMEOUTt
   MINT_DELAYt   MTIME_DELAYt   OFFLINEt   OFFLINE_TIMEOUTt   OFFLINE_CONTEXTt   OFFLINE_MANIFESTt   TEMPLATE_FILTER_CONTEXTR	   R
   R   R   R   R   R   R   (    (    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyR   	   sV   
										(
   t
   __future__R    R   t   django.confR   t   django.core.exceptionsR   t   appconfR   R   (    (    (    se   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_compressor-1.4-py2.7.egg/compressor/conf.pyt   <module>   s
   