Ñò
Ê¥WJc           @   s   d  Z  d d k l Z d d k l Z l Z d d k l Z e e ƒ Z	 d e f d „  ƒ  YZ
 e
 d d „  d	 d
 „  ƒ Z d „  Z d „  Z d S(   sK   Flash messaging system for sending info to the user in a
non-obtrusive way
iÿÿÿÿ(   t   Flash(   t   responset   request(   t	   getLoggert   TGFlashc           B   s2   e  Z d d  „ Z e d „  ƒ Z e d „  ƒ Z RS(   c         K   s"   t  t |  ƒ i t | ƒ | |  S(   N(   t   superR   t   __call__t   unicode(   t   selft   messaget   statust   extra_payload(    (    sf   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears2-2.0.1-py2.6.egg/tg/flash.pyR      s    c         C   s   |  i  ƒ  i d ƒ S(   NR	   (   t   pop_payloadt   get(   R   (    (    sf   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears2-2.0.1-py2.6.egg/tg/flash.pyR	      s    c         C   s   |  i  ƒ  i d ƒ p |  i S(   NR
   (   R   R   t   default_status(   R   (    (    sf   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears2-2.0.1-py2.6.egg/tg/flash.pyR
      s    N(   t   __name__t
   __module__t   NoneR   t   propertyR	   R
   (    (    (    sf   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears2-2.0.1-py2.6.egg/tg/flash.pyR      s   t   get_responsec           C   s   t  S(    (   R   (    (    (    sf   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears2-2.0.1-py2.6.egg/tg/flash.pyt   <lambda>   s    t   get_requestc           C   s   t  S(    (   R   (    (    (    sf   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears2-2.0.1-py2.6.egg/tg/flash.pyR      s    c           C   s   t  i S(   si   Returns the message previously set by calling flash()
    
    Additonally removes the old flash message (   t   flashR	   (    (    (    sf   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears2-2.0.1-py2.6.egg/tg/flash.pyt	   get_flash    s    c           C   s   t  i S(   sh   Returns the status of the last flash messagese
    
    Additonally removes the old flash message status(   R   R
   (    (    (    sf   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears2-2.0.1-py2.6.egg/tg/flash.pyt
   get_status&   s    N(   t   __doc__t   webflashR    t   pylonsR   R   t   loggingR   R   t   logR   R   R   R   (    (    (    sf   /afs/athena.mit.edu/user/x/a/xavid/lib/python2.6/site-packages/TurboGears2-2.0.1-py2.6.egg/tg/flash.pyt   <module>   s   		