[Checkins] SVN: Products.ZNagios/trunk/ fix plugin for zope2.10.11

Harald Friessnegger harald at webmeisterei.com
Thu Oct 21 11:33:38 EDT 2010


Log message for revision 117804:
  fix plugin for zope2.10.11

Changed:
  U   Products.ZNagios/trunk/CHANGES.txt
  U   Products.ZNagios/trunk/Products/ZNagios/__init__.py
  U   Products.ZNagios/trunk/setup.py

-=-
Modified: Products.ZNagios/trunk/CHANGES.txt
===================================================================
--- Products.ZNagios/trunk/CHANGES.txt	2010-10-21 07:20:08 UTC (rev 117803)
+++ Products.ZNagios/trunk/CHANGES.txt	2010-10-21 15:33:37 UTC (rev 117804)
@@ -1,6 +1,15 @@
 Changelog
 =========
 
+0.4.2 - 2010-10-21
+------------------
+
+- fixed ``Control_Panel/munin`` for Zope 2.10.11
+  which is used for plone 3.3.4 and 3.3.5 and ships
+  w/o version information
+  (see https://bugs.launchpad.net/zope2/+bug/510477)
+  [fRiSi]
+
 0.4.1 - 2010-06-14
 ------------------
 

Modified: Products.ZNagios/trunk/Products/ZNagios/__init__.py
===================================================================
--- Products.ZNagios/trunk/Products/ZNagios/__init__.py	2010-10-21 07:20:08 UTC (rev 117803)
+++ Products.ZNagios/trunk/Products/ZNagios/__init__.py	2010-10-21 15:33:37 UTC (rev 117804)
@@ -36,6 +36,13 @@
     http://svn.zope.org/Zope/tags/2.11.1/lib/python/Zope2/App/startup.py?view=markup
     """
     major, minor, micro = getZopeVersion()[:3]
+    
+    # handle zope2.10.11 (shipped with plone3.3.5 that misses the version number
+    # see https://bugs.launchpad.net/zope2/+bug/510477
+    if major == -1:
+        major = 2
+        minor = 10
+        
     assert major == 2, "ZNagios has been built for Zope2, " \
         "your version seems to be %d" % major
 

Modified: Products.ZNagios/trunk/setup.py
===================================================================
--- Products.ZNagios/trunk/setup.py	2010-10-21 07:20:08 UTC (rev 117803)
+++ Products.ZNagios/trunk/setup.py	2010-10-21 15:33:37 UTC (rev 117804)
@@ -1,6 +1,6 @@
 from setuptools import setup, find_packages
 
-version = '0.4.1'
+version = '0.4.2'
 
 setup(name='Products.ZNagios',
       version=version,



More information about the checkins mailing list