³ς
υάNc           @   s    d  Z  d e f d     YZ d S(   sj   
$Rev: 572 $
$LastChangedBy: satoon101 $
$LastChangedDate: 2011-10-24 12:25:43 -0400 (Mon, 24 Oct 2011) $
t	   AddonInfoc           B   sJ   e  Z d  Z d   Z d   Z d   Z d   Z d   Z e d    Z	 RS(   s   
    This will hold the sub-addon info similar to es.AddonInfo().
    It will be initialized in sub-addons that wish to use it.
    c         C   s:   d |  _  d |  _ d |  _ g  |  _ g  |  _ g  |  _ d S(   s7  
        Initialize the dictionary and populate it with mandatory
        information.

        NOTE:
            This class is intended for internal use only.

        USAGE:
            from gungame.core.addons import AddonInfo

            info = AddonInfo()

            # The addon's name, as if you were unsing es_load
            info.name = 'example_addon'

            # The title of the addon, as it would be displayed in a menu
            info.title = 'Example Addon'

            # The author's name
            info.author = 'yournamehere'

            # The version number
            info.version = '1.0'
                * This number will be overrided if you have the SVN keyword
                  Rev in the doc string

            # GunGame scripts that are required for your addon to run properly
            # This MUST be a list
            info.requires = ['gg_addon1', 'gg_addon2']

            # GunGame scripts that will conflict with your addon if loaded
            # This MUST be a list
            info.conflicts= ['gg_addon3', 'gg_addon4']
        t    N(   t   namet   titlet   authort   requirest	   conflictst   translations(   t   self(    (    sT   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/addons/info.pyt   __init__   s    $					c         C   s   |  i  | |  d S(   sG   
        Setting an attribute is equivalent to setting an item
        N(   t   __setitem__(   R   t   attrt   value(    (    sT   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/addons/info.pyt   __setattr__C   s    c         C   s   |  i  |  S(   sG   
        Getting an attribute is equivalent to getting an item
        (   t   __getitem__(   R   R   (    (    sT   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/addons/info.pyt   __getattr__K   s    c         C   sY   | |  i    j o) t d | d i |  i     f   n t t |   i | |  d S(   s<   Verifies that the "item" is a proper key name before settings3   AddonInfo instance has no key: "%s".  Use only "%s"s   ", "N(   t   _get_key_listt   KeyErrort   joint   superR    R
   (   R   t   itemR   (    (    sT   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/addons/info.pyR
   S   s
    #c         C   sx   | |  i    j o) t d | d i |  i     f   n | d j o | |  j o d Sqb n t t |   i |  S(   s<   Verifies that the "item" is a proper key name before gettings3   AddonInfo instance has no key: "%s". Use only "%s".s   ", "t   versions   0.0(   R   R   R   R   R    R   (   R   R   (    (    sT   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/addons/info.pyR   a   s    #c           C   s   d d d d d d d g S(   s4   
        Return a list of valid attributes.
        R   R   R   R   R   R   R   (    (    (    (    sT   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/addons/info.pyR   {   s    (
   t   __name__t
   __module__t   __doc__R	   R   R   R
   R   t   staticmethodR   (    (    (    sT   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/addons/info.pyR       s   	.				N(   R   t   dictR    (    (    (    sT   /home/saberrider/srcds/css/cstrike/addons/eventscripts/gungame51/core/addons/info.pys   <module>   s   