summaryrefslogtreecommitdiff
path: root/src/mailman/interfaces/system.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-04-01 16:22:40 -0500
committerBarry Warsaw2009-04-01 16:22:40 -0500
commitc33b7e899e02e3c274b077b17caa016257580b37 (patch)
tree9103e6759e6659822bad0b626f7224ce03a5fa62 /src/mailman/interfaces/system.py
parent9ff1079e0efc68fc64b91c6d0728f933df84abc7 (diff)
downloadmailman-c33b7e899e02e3c274b077b17caa016257580b37.tar.gz
mailman-c33b7e899e02e3c274b077b17caa016257580b37.tar.zst
mailman-c33b7e899e02e3c274b077b17caa016257580b37.zip
Diffstat (limited to 'src/mailman/interfaces/system.py')
-rw-r--r--src/mailman/interfaces/system.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/mailman/interfaces/system.py b/src/mailman/interfaces/system.py
index da7d019e6..62270803d 100644
--- a/src/mailman/interfaces/system.py
+++ b/src/mailman/interfaces/system.py
@@ -25,15 +25,24 @@ __all__ = [
]
-from zope.interface import Interface, Attribute
+from lazr.restful.declarations import export_as_webservice_entry, exported
+from zope.schema import TextLine
+
+from mailman.i18n import _
class ISystem(Interface):
"""Information about the Mailman system."""
- mailman_version = Attribute(
- """The GNU Mailman version, as a string.""")
+ export_as_webservice_entry()
+
+ mailman_version = exported(TextLine(
+ title=_('Mailman version'),
+ description=_('The GNU Mailman version.'),
+ ))
- python_version = Attribute(
- """The version of Python running Mailman, as a string.""")
+ python_version = exported(TextLine(
+ title=_('Python version'),
+ description=_('The Python version.'),
+ ))