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
commitf9888f3d0da0589c17ac48107cc7f2da21b2379c (patch)
tree36a03f54ab17c62abaa3d3027a3c5dfd43a9f5b9 /python
parenta7840a6f7ed9b22483d8d87c3005aae09a491815 (diff)
downloadqpid-python-f9888f3d0da0589c17ac48107cc7f2da21b2379c.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: