³ò
šõÜNc           @   sF   d  Z  d d k Z d d k Td d k l Z d e f d „  ƒ  YZ d S(   sj   
$Rev: 592 $
$LastChangedBy: satoon101 $
$LastChangedDate: 2011-11-22 16:20:03 -0500 (Tue, 22 Nov 2011) $
iÿÿÿÿN(   t   *(   t   CvarDefaultst   CvarContextManagerc           B   s)   e  Z d  Z d „  Z d „  Z d „  Z RS(   sO   
    Context Management class used to create variables within config files
    c         C   s”   | |  _  d |  _ t | ƒ |  _ t | ƒ |  _ t | ƒ |  _ t	 | ƒ |  _
 t | ƒ |  _ t | ƒ |  _ d |  _ d |  _ d |  _ | |  _ d S(   s*   Called when the class is first initializedN(   t   cvarnamet   Nonet   namet   ListDescriptiont   descriptiont   ListInstructionst   instructionst	   ListNotest   notest   ListManagementt   extrat   ListExamplest   examplest   ListOptionst   optionst   defaultt   default_textt   textt   notify(   t   selfR   R   t   config(    (    sR   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/cfg/cvars.pyt   __init__   s    					c         C   s   |  S(   s8   Returns the class instance to use for Context Management(    (   R   (    (    sR   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/cfg/cvars.pyt	   __enter__.   s    c         C   s´   | o t  i d | ƒ t Sn |  i d j o t d |  i d ƒ ‚ n |  i d j o t d |  i d ƒ ‚ n |  i d j o t d |  i d ƒ ‚ n |  i t	 |  i <t
 S(   s4   Verifies that certain attributes have values on exiti    s   No "name" set for "t   "s   No default value set for "s   No "text" set for "N(   t   est   dbgmsgt   FalseR   R   t
   ValueErrorR   R   R   R   t   True(   R   t   exc_typet	   exc_valuet
   _traceback(    (    sR   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/cfg/cvars.pyt   __exit__4   s    (   t   __name__t
   __module__t   __doc__R   R   R#   (    (    (    sR   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/cfg/cvars.pyR      s   		(   R&   R   t
   attributest   defaultsR   t   objectR   (    (    (    sR   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/cfg/cvars.pys   <module>   s   
