diff options
| author | Abhilash Raj | 2014-09-19 22:41:56 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-09-19 22:41:56 +0530 |
| commit | c339f06cca6ddf1d28cde2614a94c2a0c905957a (patch) | |
| tree | 89682556800053817cb61f2a7b039f39dd7ddd39 /src/mailman/database/model.py | |
| parent | 6dd2ac32ee1f1e8f588c08fd5363f0f794d0a6b1 (diff) | |
| download | mailman-c339f06cca6ddf1d28cde2614a94c2a0c905957a.tar.gz mailman-c339f06cca6ddf1d28cde2614a94c2a0c905957a.tar.zst mailman-c339f06cca6ddf1d28cde2614a94c2a0c905957a.zip | |
Diffstat (limited to 'src/mailman/database/model.py')
| -rw-r--r-- | src/mailman/database/model.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mailman/database/model.py b/src/mailman/database/model.py index dedd7a34b..d86ebb80e 100644 --- a/src/mailman/database/model.py +++ b/src/mailman/database/model.py @@ -35,23 +35,6 @@ from mailman.config import config class ModelMeta(object): """Do more magic on table classes.""" - _class_registry = set() - - def __init__(self, name, bases, dict): - # Before we let the base class do it's thing, force an __tablename__ - # property to enforce our table naming convention. - self.__tablename__ = name.lower() - # super(ModelMeta, self).__init__(name, bases, dict) - # Register the model class so that it can be more easily cleared. - # This is required by the test framework so that the corresponding - # table can be reset between tests. - # - # The PRESERVE flag indicates whether the table should be reset or - # not. We have to handle the actual Model base class explicitly - # because it does not correspond to a table in the database. - if not getattr(self, 'PRESERVE', False) and name != 'Model': - ModelMeta._class_registry.add(self) - @staticmethod def _reset(db): meta = Model.metadata |
