diff options
| author | Barry Warsaw | 2015-04-06 19:07:42 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-04-06 19:07:42 -0400 |
| commit | 20edc89f208b201e34628cc021c5bfe36ef5a035 (patch) | |
| tree | 244d3beab2787c52b7037d2ccb28a16232232631 /src/mailman/model/user.py | |
| parent | 4d8ef4efb330b0bfe6d9a07205240f152d813e85 (diff) | |
| download | mailman-20edc89f208b201e34628cc021c5bfe36ef5a035.tar.gz mailman-20edc89f208b201e34628cc021c5bfe36ef5a035.tar.zst mailman-20edc89f208b201e34628cc021c5bfe36ef5a035.zip | |
Diffstat (limited to 'src/mailman/model/user.py')
| -rw-r--r-- | src/mailman/model/user.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mailman/model/user.py b/src/mailman/model/user.py index 5fecc1836..f6aedd132 100644 --- a/src/mailman/model/user.py +++ b/src/mailman/model/user.py @@ -18,8 +18,8 @@ """Model for users.""" __all__ = [ + 'DomainOwner', 'User', - 'DomainOwner' ] @@ -35,7 +35,7 @@ from mailman.model.preferences import Preferences from mailman.model.roster import Memberships from mailman.utilities.datetime import factory as date_factory from mailman.utilities.uid import UniqueIDFactory -from sqlalchemy import Column, DateTime, ForeignKey, Integer, Unicode, Boolean +from sqlalchemy import Boolean, Column, DateTime, ForeignKey, Integer, Unicode from sqlalchemy.orm import relationship, backref from zope.event import notify from zope.interface import implementer @@ -180,9 +180,11 @@ class User(Model): return Memberships(self) + class DomainOwner(Model): - """Domain to owners(user) association class""" + """Internal table for associating domains to their owners.""" __tablename__ = 'domain_owner' + user_id = Column(Integer, ForeignKey('user.id'), primary_key=True) domain_id = Column(Integer, ForeignKey('domain.id'), primary_key=True) |
