From f9888f3d0da0589c17ac48107cc7f2da21b2379c Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Tue, 15 Jun 2010 10:11:39 +0000 Subject: 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 --- python/qpid/ops.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'python/qpid') 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: -- cgit v1.2.1