diff options
| author | Barry Warsaw | 2015-04-06 17:08:54 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2015-04-06 17:08:54 -0400 |
| commit | 134c2ae98cf61da890cf8ceaacfc287629b4bbfa (patch) | |
| tree | 1a9577cfe217d3dcc50b3e05d65498d0008ed370 /src/mailman/interfaces/domain.py | |
| parent | f17be16aeac385854ca9693626027dbd553c2944 (diff) | |
| download | mailman-134c2ae98cf61da890cf8ceaacfc287629b4bbfa.tar.gz mailman-134c2ae98cf61da890cf8ceaacfc287629b4bbfa.tar.zst mailman-134c2ae98cf61da890cf8ceaacfc287629b4bbfa.zip | |
Diffstat (limited to 'src/mailman/interfaces/domain.py')
| -rw-r--r-- | src/mailman/interfaces/domain.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mailman/interfaces/domain.py b/src/mailman/interfaces/domain.py index ee5eafc78..33d835325 100644 --- a/src/mailman/interfaces/domain.py +++ b/src/mailman/interfaces/domain.py @@ -111,7 +111,7 @@ class IDomain(Interface): class IDomainManager(Interface): """The manager of domains.""" - def add(mail_host, description=None, base_url=None, owner_id=None): + def add(mail_host, description=None, base_url=None, owners=None): """Add a new domain. :param mail_host: The email host name for the domain. @@ -122,9 +122,10 @@ class IDomainManager(Interface): interface of the domain. If not given, it defaults to http://`mail_host`/ :type base_url: string - :param owners: List of owners of the domain, defaults to None - :type owners: list - :return: The new domain object + :param owners: Sequence of owners of the domain, defaults to None, + meaning the domain does not have owners. + :type owners: sequence of `IUser` or string emails. + :return: The new domain object. :rtype: `IDomain` :raises `BadDomainSpecificationError`: when the `mail_host` is already registered. |
