Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python2.7
/
site-packages
/
boto
/
sdb
/
db
/
manager
/
File Content:
__init__.pyc
� �Wc @ s d d l Z d � Z d S( i����Nc C s t j j d d d � } t j j d d d � } t j j d d d � } t j j d d d � } t j j d d d � } t j j d d d � } t j j d d d � } t j j d d t � } t j j d d d � } t j j d d d � } | j j d d � } d | d | j } t j j | � s<d | j } n t j j | � r)t j j | d | � } t j j | d | � } t j j | d | � } t j j | d | � } t j j | d | � } t j j | d | � } t j j | d | � } t j j | d | � } t j j | d | � } nN t | d � rS| j d k rS| j } n$ t | j d d � rw| j d j S| d k r�d d l m } | | | | | | | | | | � S| d k r�d d l m } | | | | | | | | | | � St d | � � d S( s 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. t DBt db_usert db_passwdt db_typet SimpleDBt db_namet db_tablet db_hosts sdb.amazonaws.comt db_porti� t enable_sslt sql_dirt debugi t .t _t DB_t _db_namet _manageri����( t SDBManagert XML( t XMLManagers Unknown db_type: %sN( t botot configt gett Nonet getintt getboolt Truet __module__t replacet __name__t has_sectiont hasattrR t __bases__R t boto.sdb.db.manager.sdbmanagerR t boto.sdb.db.manager.xmlmanagerR t ValueError( t clsR R R R R R R R R R t module_namet db_sectionR R ( ( s@ /usr/lib/python2.7/site-packages/boto/sdb/db/manager/__init__.pyt get_manager sJ ( R R'