summaryrefslogtreecommitdiff
path: root/src/mailman/core/system.py
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/core/system.py
parentb4d87c122b372e7805d9bbc712ccffea46c18d75 (diff)
downloadmailman-9ff1079e0efc68fc64b91c6d0728f933df84abc7.tar.gz
mailman-9ff1079e0efc68fc64b91c6d0728f933df84abc7.tar.zst
mailman-9ff1079e0efc68fc64b91c6d0728f933df84abc7.zip
Diffstat (limited to 'src/mailman/core/system.py')
-rw-r--r--src/mailman/core/system.py48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/mailman/core/system.py b/src/mailman/core/system.py
new file mode 100644
index 000000000..0f6d0834f
--- /dev/null
+++ b/src/mailman/core/system.py
@@ -0,0 +1,48 @@
+# 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__ = [
+ 'system',
+ ]
+
+
+import sys
+from zope.interface import implements
+
+from mailman import version
+from mailman.interfaces.system import ISystem
+
+
+
+class System:
+ implements(ISystem)
+
+ @property
+ def mailman_version(self):
+ return version.MAILMAN_VERSION_FULL
+
+ @property
+ def python_version(self):
+ return sys.version
+
+
+system = System()