From 9ff1079e0efc68fc64b91c6d0728f933df84abc7 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 1 Apr 2009 15:14:24 -0500 Subject: 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 --- src/mailman/docs/version.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/mailman/docs/version.txt (limited to 'src/mailman/docs') 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 -- cgit v1.3.1