diff options
| author | Barry Warsaw | 2009-04-01 16:22:40 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-04-01 16:22:40 -0500 |
| commit | c33b7e899e02e3c274b077b17caa016257580b37 (patch) | |
| tree | 9103e6759e6659822bad0b626f7224ce03a5fa62 /src/mailman/interfaces/system.py | |
| parent | 9ff1079e0efc68fc64b91c6d0728f933df84abc7 (diff) | |
| download | mailman-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.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.'), + )) |
