î
ªÍ Xä  ã               @   sC   d  d l  m Z d  d l m Z d  d l m Z d d d „ Z d S)é    )Úunicode_literals)ÚHttp404)ÚugettextNc             C   sÄ   | s t  t d ƒ ƒ ‚ n  | j d ƒ d } y | | } Wn( t k
 rf t  t d ƒ | ƒ ‚ Yn X| ƒ  } t | d d ƒ pˆ |  j | _ | j pž d | | _ | j p´ d | | _ | |  ƒ S)	z%Provided for backwards compatibility.zNo feeds are registered.ú/r   zSlug %r isn't registered.Úfeed_urlNzfeeds/%s_title.htmlzfeeds/%s_description.html)	r   Ú_Ú	partitionÚKeyErrorÚgetattrÚpathr   Ztitle_templateZdescription_template)ÚrequestÚurlZ	feed_dictZslugÚfÚinstance© r   úF/home/ubuntu/projects/ifolica/build/django/django/contrib/gis/views.pyÚfeed   s    	r   )Ú
__future__r   Zdjango.httpr   Zdjango.utils.translationr   r   r   r   r   r   r   Ú<module>   s   