
mMJc           @   s   d  Z  d d l m Z m Z d d l m Z d d l m Z d d l m Z m	 Z	 m
 Z
 d d l m Z d d l j Z d d	 g Z d	 e f d
     YZ d S(   s   The base Controller API.i(   t   TGControllert   tmpl_context(   t   render(   t   request(   t   _t	   ungettextt   N_(   t   WidgetBunchNt
   Controllert   BaseControllerc           B   s   e  Z d  Z d   Z RS(   s   
    Base class for the controllers in the application.

    Your web application should have one of these. The root of
    your application is used to compute URLs used by your app.

    c         C   s4   t  j j d  t  _ t  j t _ t j |  | |  S(   s   Invoke the Controllers   repoze.who.identity(   R   t   environt   gett   identityR   R    t   __call__(   t   selfR
   t   start_response(    (    sO   /afs/athena.mit.edu/activity/s/sca/Scripts/turbogears/Monkey/monkey/lib/base.pyR      s    (   t   __name__t
   __module__t   __doc__R   (    (    (    sO   /afs/athena.mit.edu/activity/s/sca/Scripts/turbogears/Monkey/monkey/lib/base.pyR	      s   (   R   t   tgR    R   t	   tg.renderR   R   t   pylons.i18nR   R   R   t   tw.apiR   t   monkey.modelt   modelt   __all__R	   (    (    (    sO   /afs/athena.mit.edu/activity/s/sca/Scripts/turbogears/Monkey/monkey/lib/base.pyt   <module>   s   