[Erp5-report] r32499 rafael - /erp5/trunk/products/ERP5/Tool/IntrospectionTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 12 15:32:39 CET 2010


Author: rafael
Date: Fri Feb 12 15:32:38 2010
New Revision: 32499

URL: http://svn.erp5.org?rev=32499&view=rev
Log:

Get Only the 3 first numbers of version (others are not relevant for this tool).

Modified:
    erp5/trunk/products/ERP5/Tool/IntrospectionTool.py

Modified: erp5/trunk/products/ERP5/Tool/IntrospectionTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/IntrospectionTool.py?rev=32499&r1=32498&r2=32499&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/IntrospectionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/IntrospectionTool.py [utf8] Fri Feb 12 15:32:38 2010
@@ -433,11 +433,11 @@
        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




More information about the Erp5-report mailing list