summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/domain.py
diff options
context:
space:
mode:
authorAbhilash Raj2015-03-28 18:57:55 +0530
committerAbhilash Raj2015-03-28 18:57:55 +0530
commit583d0ff8d46555c2ac2a72d9affd7c0e8e236161 (patch)
tree10b567c642d29e292eddb8a641389de42d58e450 /src/mailman/interfaces/domain.py
parent381f7ceb2d55179365809bf3b8f98313d9e86099 (diff)
downloadmailman-583d0ff8d46555c2ac2a72d9affd7c0e8e236161.tar.gz
mailman-583d0ff8d46555c2ac2a72d9affd7c0e8e236161.tar.zst
mailman-583d0ff8d46555c2ac2a72d9affd7c0e8e236161.zip
Diffstat (limited to 'src/mailman/interfaces/domain.py')
-rw-r--r--src/mailman/interfaces/domain.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mailman/interfaces/domain.py b/src/mailman/interfaces/domain.py
index 3ebfb0d6e..fd889a720 100644
--- a/src/mailman/interfaces/domain.py
+++ b/src/mailman/interfaces/domain.py
@@ -88,9 +88,8 @@ class IDomain(Interface):
description = Attribute(
'The human readable description of the domain name.')
- contact_address = Attribute("""\
- The contact address for the human at this domain.
- E.g. postmaster@example.com""")
+ owners = Attribute("""\
+ The relationship with the user database representing domain owners""")
mailing_lists = Attribute(
"""All mailing lists for this domain.
@@ -112,7 +111,7 @@ class IDomain(Interface):
class IDomainManager(Interface):
"""The manager of domains."""
- def add(mail_host, description=None, base_url=None, contact_address=None):
+ def add(mail_host, description=None, base_url=None, owner_id=None):
"""Add a new domain.
:param mail_host: The email host name for the domain.
@@ -123,10 +122,8 @@ class IDomainManager(Interface):
interface of the domain. If not given, it defaults to
http://`mail_host`/
:type base_url: string
- :param contact_address: The email contact address for the human
- managing the domain. If not given, defaults to
- postmaster@`mail_host`
- :type contact_address: string
+ :param owner_id: Owner of the domain, defaults to None
+ :type owner_id: integer
:return: The new domain object
:rtype: `IDomain`
:raises `BadDomainSpecificationError`: when the `mail_host` is