summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces
diff options
context:
space:
mode:
authorBarry Warsaw2009-04-01 15:14:24 -0500
committerBarry Warsaw2009-04-01 15:14:24 -0500
commit9ff1079e0efc68fc64b91c6d0728f933df84abc7 (patch)
tree0a603521d2a859854d6f0b41e9e0dcbcccccad35 /src/mailman/interfaces
parentb4d87c122b372e7805d9bbc712ccffea46c18d75 (diff)
downloadmailman-9ff1079e0efc68fc64b91c6d0728f933df84abc7.tar.gz
mailman-9ff1079e0efc68fc64b91c6d0728f933df84abc7.tar.zst
mailman-9ff1079e0efc68fc64b91c6d0728f933df84abc7.zip
Hook in lazr.restful (which isn't in the Cheeseshop yet).
Add infrastructure that the first REST interface will use, i.e. providing the Mailman and Python versions. Update bin/version
Diffstat (limited to 'src/mailman/interfaces')
-rw-r--r--src/mailman/interfaces/domain.py2
-rw-r--r--src/mailman/interfaces/system.py39
2 files changed, 40 insertions, 1 deletions
diff --git a/src/mailman/interfaces/domain.py b/src/mailman/interfaces/domain.py
index 8c2a27e79..773290bc5 100644
--- a/src/mailman/interfaces/domain.py
+++ b/src/mailman/interfaces/domain.py
@@ -61,7 +61,7 @@ class IDomain(Interface):
contact_address = Attribute(
"""The contact address for the human at this domain.
- E.g. postmaster@python.org.
+ E.g. postmaster@example.com
:type: string
""")
diff --git a/src/mailman/interfaces/system.py b/src/mailman/interfaces/system.py
new file mode 100644
index 000000000..da7d019e6
--- /dev/null
+++ b/src/mailman/interfaces/system.py
@@ -0,0 +1,39 @@
+# Copyright (C) 2009 by the Free Software Foundation, Inc.
+#
+# This file is part of GNU Mailman.
+#
+# GNU Mailman is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+#
+# GNU Mailman is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
+
+"""System information."""
+
+from __future__ import absolute_import, unicode_literals
+
+__metaclass__ = type
+__all__ = [
+ 'ISystem',
+ ]
+
+
+from zope.interface import Interface, Attribute
+
+
+
+class ISystem(Interface):
+ """Information about the Mailman system."""
+
+ mailman_version = Attribute(
+ """The GNU Mailman version, as a string.""")
+
+ python_version = Attribute(
+ """The version of Python running Mailman, as a string.""")