summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-06-15 10:11:39 +0000
committerRafael H. Schloming <rhs@apache.org>2010-06-15 10:11:39 +0000
commit525bee15b800f149c002482171c35a083d249407 (patch)
tree36a03f54ab17c62abaa3d3027a3c5dfd43a9f5b9 /python
parenta0d9bba9722e40f1213e8919562e0bc360f7ba84 (diff)
downloadqpid-python-525bee15b800f149c002482171c35a083d249407.tar.gz
added back values method for backwards compatibility
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@954787 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/ops.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/qpid/ops.py b/python/qpid/ops.py
index acb54aedc5..8c9f8a03e7 100644
--- a/python/qpid/ops.py
+++ b/python/qpid/ops.py
@@ -16,14 +16,19 @@
# specific language governing permissions and limitations
# under the License.
#
-import os, mllib, cPickle as pickle
+import os, mllib, cPickle as pickle, sys
from util import fill
class Primitive(object):
pass
class Enum(object):
- pass
+
+ # XXX: for backwards compatibility
+ @classmethod
+ def values(cls):
+ print >> sys.stderr, "warning, please use .VALUES instead of .values()"
+ return cls.VALUES
class Field: