[python-bugzilla] [PATCH 2/2] Set rhbz_back_compat default to True

Don Zickus dzickus at redhat.com
Thu Mar 21 18:25:47 UTC 2013


The problem is I have two python bugzilla environments: 0.7.0 and 0.8.0.  Some
windows have the PYTHONPATH set up and get 0.8.0 other do not and get 0.7.0.
The flags attribute is accessed differently in different versions.  Very
annoying.

Now the rhbz_back_compat can fix that.  However, I can't use that variable on
0.7.0 as it doesn't exist.  Boooo!

So to help ease transition to the new reality, set rhbz_back_compat to True for
now.  Then once 0.8.0 is out, folks can slowly set 'rhbz_back_compat' to False
as their scripts are updated.

Then with 0.9.0 comes along, the default can be set to False.

I don't disagree with the change for rhbz_back_compat, I just need (and others
too) a slightly smoother migration path.

Signed-off-by: Don Zickus <dzickus at redhat.com>
---
 bugzilla/rhbugzilla.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bugzilla/rhbugzilla.py b/bugzilla/rhbugzilla.py
index becb72e..39ced7d 100644
--- a/bugzilla/rhbugzilla.py
+++ b/bugzilla/rhbugzilla.py
@@ -42,7 +42,7 @@ class RHBugzilla(Bugzilla42):
         """
         # 'multicall' is no longer used, keep it here for back compat
         self.multicall = True
-        self.rhbz_back_compat = False
+        self.rhbz_back_compat = True
 
         if "multicall" in kwargs:
             self.multicall = kwargs.pop("multicall")
-- 
1.7.1



More information about the python-bugzilla mailing list