diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-12 08:52:42 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-12 08:52:42 +0000 |
| commit | 5eccc596525c396941cec8e985ebf7fa418e2026 (patch) | |
| tree | 23445f096863cc0d3bdec7e496d43eb8a4ca9437 | |
| parent | bd6fc4848e9cb234b0f24e52536f24a853be5b91 (diff) | |
Tweaked the dummy database backend initialisation.
In order to report more comphrehensible tracebacks, remove the super()
constructor call, since passing args to object.__init__ ends badly. So some
subclassing possibilities are now removed, but it's the "dummy" backend, so
we can make some compromises.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/backends/dummy/base.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/django/db/backends/dummy/base.py b/django/db/backends/dummy/base.py index a18c6094bf..a6d9092478 100644 --- a/django/db/backends/dummy/base.py +++ b/django/db/backends/dummy/base.py @@ -28,22 +28,20 @@ class DatabaseOperations(BaseDatabaseOperations): class DatabaseClient(BaseDatabaseClient): runshell = complain - + class DatabaseIntrospection(BaseDatabaseIntrospection): get_table_list = complain get_table_description = complain get_relations = complain get_indexes = complain - -class DatabaseWrapper(object): + +class DatabaseWrapper(object): operators = {} cursor = complain _commit = complain _rollback = ignore def __init__(self, *args, **kwargs): - super(DatabaseWrapper, self).__init__(*args, **kwargs) - self.features = BaseDatabaseFeatures() self.ops = DatabaseOperations() self.client = DatabaseClient(self) |
