diff options
Diffstat (limited to 'src/mailman/interfaces/system.py')
| -rw-r--r-- | src/mailman/interfaces/system.py | 19 |
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.'), + )) |
