changeset 367:ec52b8428a8b

rst parser: fixed docutils version check imported from: moin--main--1.5--patch-371
author Thomas Waldmann <tw@waldmann-edv.de>
date Sun, 08 Jan 2006 21:34:35 +0000
parents 83785fcf9e1d
children 79dbcefdff31
files ChangeLog MoinMoin/parser/rst.py
diffstat 2 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jan 08 11:30:17 2006 +0000
+++ b/ChangeLog	Sun Jan 08 21:34:35 2006 +0000
@@ -2,6 +2,20 @@
 # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5
 #
 
+2006-01-08 22:34:35 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-371
+
+    Summary:
+      rst parser: fixed docutils version check
+    Revision:
+      moin--main--1.5--patch-371
+
+    rst parser: fixed docutils version check
+    
+
+    modified files:
+     ChangeLog MoinMoin/parser/rst.py
+
+
 2006-01-08 12:30:17 GMT	Thomas Waldmann <tw@waldmann-edv.de>	patch-370
 
     Summary:
--- a/MoinMoin/parser/rst.py	Sun Jan 08 11:30:17 2006 +0000
+++ b/MoinMoin/parser/rst.py	Sun Jan 08 21:34:35 2006 +0000
@@ -151,7 +151,7 @@
         self.nodes = []
         # Make sure it's a supported docutils version.
         required_version = (0, 3, 10)
-        current_version = [int(i) for i in docutils.__version__.split('.')]
+        current_version = tuple([int(i) for i in (docutils.__version__.split('.')+['0','0'])[:3]])
         if current_version < required_version:
             err = 'ERROR: The installed docutils version is %s;' % ('.'.join([str(i) for i in current_version]))
             err += ' version %s or later is required.' % ('.'.join([str(i) for i in required_version]))