changeset 383:710954cd1706

action.arnica_slides: fixed logic bug in ensureversion
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 09 May 2009 17:22:30 +0200
parents f0b716541202
children 6b6cc67478ff
files data/plugin/action/arnica_slides.py
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/action/arnica_slides.py	Sat May 09 17:08:17 2009 +0200
+++ b/data/plugin/action/arnica_slides.py	Sat May 09 17:22:30 2009 +0200
@@ -28,17 +28,16 @@
 action_name = __name__.split('.')[-1]
 
 def ensureversion(version):
-    """ Ensures that the version of MoinMoin is greater or equal than
-    version. 
+    """ Ensures that the version of MoinMoin is lower equal than the given version string. 
      
-    @param version: required version of MoinMoin (e.g. "1.3.4")
+    @param version: required version of MoinMoin (e.g. "1.9.0")
     """
     from MoinMoin.version import release
     version_int = [int(x) for x in version.split(".")]
     # use a regex here to get only the numbers of the release string (e.g. ignore betaX)
     release = re.compile('\d+').findall(release)[0:3]
     release = [int(x) for x in release]
-    return version_int >= release
+    return version_int <= release
             
 def image_rotate(file_name, angle, img_type):
     """ rotates the image