summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: