summaryrefslogtreecommitdiff
path: root/src/mailman/docs
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/docs
parentb4d87c122b372e7805d9bbc712ccffea46c18d75 (diff)
downloadmailman-9ff1079e0efc68fc64b91c6d0728f933df84abc7.tar.gz
mailman-9ff1079e0efc68fc64b91c6d0728f933df84abc7.tar.zst
mailman-9ff1079e0efc68fc64b91c6d0728f933df84abc7.zip
Hook in lazr.restful (which isn't in the Cheeseshop yet).
Add infrastructure that the first REST interface will use, i.e. providing the Mailman and Python versions. Update bin/version
Diffstat (limited to 'src/mailman/docs')
-rw-r--r--src/mailman/docs/version.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mailman/docs/version.txt b/src/mailman/docs/version.txt
new file mode 100644
index 000000000..3ed0ce28c
--- /dev/null
+++ b/src/mailman/docs/version.txt
@@ -0,0 +1,26 @@
+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 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