Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(737)

Unified Diff: boto/sdb/db/manager/__init__.py

Issue 8386013: Merging in latest boto. (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Redoing vendor drop by deleting and then merging. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « boto/sdb/db/blob.py ('k') | boto/sdb/db/manager/pgmanager.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: boto/sdb/db/manager/__init__.py
diff --git a/boto/sdb/db/manager/__init__.py b/boto/sdb/db/manager/__init__.py
index 07777966007fce3165d13f43b99d513171864e6c..55b32a4dca21bdfb698a2c26310e723b4c2b467c 100644
--- a/boto/sdb/db/manager/__init__.py
+++ b/boto/sdb/db/manager/__init__.py
@@ -66,6 +66,9 @@ def get_manager(cls):
db_port = boto.config.getint(db_section, 'db_port', db_port)
enable_ssl = boto.config.getint(db_section, 'enable_ssl', enable_ssl)
debug = boto.config.getint(db_section, 'debug', debug)
+ elif hasattr(cls, "_db_name") and cls._db_name is not None:
+ # More specific then the generic DB config is any _db_name class property
+ db_name = cls._db_name
elif hasattr(cls.__bases__[0], "_manager"):
return cls.__bases__[0]._manager
if db_type == 'SimpleDB':
« no previous file with comments | « boto/sdb/db/blob.py ('k') | boto/sdb/db/manager/pgmanager.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698