o
    ȷer                     @   s   d dl Z dd ZdS )    Nc              
   C   s  t jddd}t jddd}t jddd}t jddd}t jddd}t jdd	d
}t jddd}t jddd}t jddd}	t jddd}
| jdd}d| d | j }t j|skd| j }t j|rt j|d|}t j|d|}t j|d|}t j|d|}t j|d|}t j|d	|}t j|d|}t j|d|}t j|d|
}
nt	| dr| j
dur| j
}nt	| jd dr| jd jS |dkrddlm} || |||||||	|	S |dkrddlm} || |||||||	|	S td| )a  
    Returns the appropriate Manager class for a given Model class.  It
    does this by looking in the boto config for a section like this::

        [DB]
        db_type = SimpleDB
        db_user = <aws access key id>
        db_passwd = <aws secret access key>
        db_name = my_domain
        [DB_TestBasic]
        db_type = SimpleDB
        db_user = <another aws access key id>
        db_passwd = <another aws secret access key>
        db_name = basic_domain
        db_port = 1111

    The values in the DB section are "generic values" that will be used
    if nothing more specific is found.  You can also create a section for
    a specific Model class that gives the db info for that class.
    In the example above, TestBasic is a Model subclass.
    DBdb_userN	db_passwddb_typeSimpleDBdb_namedb_tabledb_hostzsdb.amazonaws.comdb_porti  
enable_sslTsql_dirdebugr   ._DB__db_name_manager)
SDBManagerXML)
XMLManagerzUnknown db_type: %s)botoconfiggetgetintgetbool
__module__replace__name__has_sectionhasattrr   	__bases__r   boto.sdb.db.manager.sdbmanagerr   boto.sdb.db.manager.xmlmanagerr   
ValueError)clsr   r   r   r   r   r	   r
   r   r   r   module_name
db_sectionr   r    r'   S/var/www/ideatree/venv/lib/python3.10/site-packages/boto/sdb/db/manager/__init__.pyget_manager   sN   





r)   )r   r)   r'   r'   r'   r(   <module>   s   