ó
mMJc           @   su   d  Z  d d l m Z m Z d d l m Z m Z d d l	 m
 Z
 d d l m Z d g Z d e f d „  ƒ  YZ d S(	   s1   Sample controller with all its actions protected.iÿÿÿÿ(   t   exposet   flash(   t   ugettextt   lazy_ugettext(   t   has_permission(   t   BaseControllert   SecureControllerc           B   sP   e  Z d  Z e d d e d ƒ ƒZ e d ƒ d „  ƒ Z e d ƒ d „  ƒ Z RS(   s$   Sample controller-wide authorizationt   managet   msgs,   Only for people with the "manage" permissions   monkey.templates.indexc         C   s   t  t d ƒ ƒ t d d ƒ S(   s9   Let the user know that's visiting a protected controller.s   Secure Controller heret   paget   index(   R   t   _t   dict(   t   self(    (    sY   /afs/athena.mit.edu/activity/s/sca/Scripts/turbogears/Monkey/monkey/controllers/secure.pyR
      s    c         C   s   t  d d ƒ S(   s4   Let the user know that this action is protected too.R	   t
   some_where(   R   (   R   (    (    sY   /afs/athena.mit.edu/activity/s/sca/Scripts/turbogears/Monkey/monkey/controllers/secure.pyR      s    (	   t   __name__t
   __module__t   __doc__R   t   l_t
   allow_onlyR    R
   R   (    (    (    sY   /afs/athena.mit.edu/activity/s/sca/Scripts/turbogears/Monkey/monkey/controllers/secure.pyR      s
   	N(   R   t   tgR    R   t   pylons.i18nR   R   R   R   t   repoze.what.predicatesR   t   monkey.lib.baseR   t   __all__R   (    (    (    sY   /afs/athena.mit.edu/activity/s/sca/Scripts/turbogears/Monkey/monkey/controllers/secure.pyt   <module>   s   	