You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2010/06/15 12:11:39 UTC
svn commit: r954787 - /qpid/trunk/qpid/python/qpid/ops.py
Author: rhs
Date: Tue Jun 15 10:11:39 2010
New Revision: 954787
URL: http://svn.apache.org/viewvc?rev=954787&view=rev
Log:
added back values method for backwards compatibility
Modified:
qpid/trunk/qpid/python/qpid/ops.py
Modified: qpid/trunk/qpid/python/qpid/ops.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/ops.py?rev=954787&r1=954786&r2=954787&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/ops.py (original)
+++ qpid/trunk/qpid/python/qpid/ops.py Tue Jun 15 10:11:39 2010
@@ -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:
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org