o ckF[r@sddlZddZdS)Nc Cstjddd}tjddd}tjddd}tjddd}tjddd}tjdd d }tjdd d }tjdd d}tjddd} tjddd} |jdd} d| d|j} tj| skd|j} tj| rtj| d|}tj| d|}tj| d|}tj| d|}tj| d|}tj| d |}tj| d |}tj| d |}tj| d| } nt |dr|j dur|j }nt |j ddr|j dj S|dkrddl m} | |||||||| | S|dkrddlm}||||||||| | Std|)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 = db_passwd = db_name = my_domain [DB_TestBasic] db_type = SimpleDB db_user = db_passwd = 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. DBdb_userN db_passwddb_typeSimpleDBdb_namedb_tabledb_hostzsdb.amazonaws.comdb_porti enable_sslTsql_dirdebugr._DB__db_name_manager) SDBManagerXML) XMLManagerzUnknown db_type: %s)botoconfiggetgetintgetbool __module__replace__name__ has_sectionhasattrr __bases__rboto.sdb.db.manager.sdbmanagerrboto.sdb.db.manager.xmlmanagerr ValueError)clsrrrrrr r r r r module_name db_sectionrrr'>/usr/lib/python3/dist-packages/boto/sdb/db/manager/__init__.py get_managersN            r))rr)r'r'r'r(s