Ñò
y‰qKc           @   s-   d  d k  l Z d  d k l Z d „  Z d S(   iÿÿÿÿ(   t   HttpResponse(   t   Languagec         C   si   g  } t  i i ƒ  D] } | | i q ~ } d } x# | d g D] } | d | 7} qA Wt | d d ƒS(   s   generates the robots.txt files   User-agent: *
t   accountss   Disallow: /%s/
t   mimetypes
   text/plain(   R   t   objectst   iteratort   codeR    (   t   requestt   _[1]t   languaget	   langcodest   contentt   langcode(    (    s;   /var/www/Pootle/local_apps/pootle_app/views/index/robots.pyt   view   s    - N(   t   django.httpR    t   pootle_language.modelsR   R   (    (    (    s;   /var/www/Pootle/local_apps/pootle_app/views/index/robots.pyt   <module>   s   