From ad17ae3e4f3c91476989fa2941500df0c01b3ada Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Fri, 12 Feb 2010 14:32:38 +0000 Subject: [PATCH] Get Only the 3 first numbers of version (others are not relevant for this tool). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32499 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Tool/IntrospectionTool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Tool/IntrospectionTool.py b/product/ERP5/Tool/IntrospectionTool.py index abdc8ab8d7..6658cca159 100644 --- a/product/ERP5/Tool/IntrospectionTool.py +++ b/product/ERP5/Tool/IntrospectionTool.py @@ -433,11 +433,11 @@ class IntrospectionTool(LogMixin, BaseTool): erp5_version = None from App import version_txt - zope_version = tuple_to_format_str(version_txt.getZopeVersion()[:2]) + zope_version = tuple_to_format_str(version_txt.getZopeVersion()[:3]) from sys import version_info # Get only x.x.x numbers. - py_version = tuple_to_format_str(version_info) + py_version = tuple_to_format_str(version_info[:3]) try: import pysvn # Convert tuple to x.x.x format -- 2.30.9