ó
TR¹Nc           @   s   d  e  f d „  ƒ  YZ d S(   t   FileProxyMixinc           B   s  e  Z d  Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z	 e d „  ƒ Z
 e d „  ƒ Z e d	 „  ƒ Z e d
 „  ƒ Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z e d „  ƒ Z d „  Z RS(   sü   
    A mixin class used to forward file methods to an underlaying file
    object.  The internal file object has to be called "file"::

        class FileProxy(FileProxyMixin):
            def __init__(self, file):
                self.file = file
    c         C   s
   |  j  j S(   N(   t   filet   encoding(   t   self(    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyt   <lambda>   s    c         C   s
   |  j  j S(   N(   R   t   fileno(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   flush(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   isatty(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   newlines(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   read(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   readinto(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   readline(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t	   readlines(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   seek(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t	   softspace(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   tell(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   truncate(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t   write(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t
   writelines(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s
   |  j  j S(   N(   R   t
   xreadlines(   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR      s    c         C   s   t  |  j ƒ S(   N(   t   iterR   (   R   (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyt   __iter__   s    (   t   __name__t
   __module__t   __doc__t   propertyR   R   R   R   R   R	   R
   R   R   R   R   R   R   R   R   R   R   (    (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyR       s$   N(   t   objectR    (    (    (    sD   /home/panlixing/Python_Projects/gaeseries/django/core/files/utils.pyt   <module>   s    