blob: a7d2285d3eb7e58b14c7c2f8b5b5186297857ceb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
===============
System versions
===============
Mailman system information is available through the ``system`` object, which
implements the ``ISystem`` interface.
::
>>> from mailman.interfaces.system import ISystem
>>> from mailman.core.system import system
>>> from zope.interface.verify import verifyObject
>>> verifyObject(ISystem, system)
True
The Mailman version is also available via the ``system`` object.
>>> print(system.mailman_version)
GNU Mailman ...
The Python version running underneath is also available via the ``system``
object.
::
# The entire python_version string is variable, so this is the best test
# we can do.
>>> import sys
>>> system.python_version == sys.version
True
|