You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ns...@apache.org on 2008/09/05 22:14:30 UTC

svn commit: r692525 - /incubator/qpid/trunk/qpid/python/qpid/management.py

Author: nsantos
Date: Fri Sep  5 13:14:29 2008
New Revision: 692525

URL: http://svn.apache.org/viewvc?rev=692525&view=rev
Log:
allow creation of objectId from first/second id components

Modified:
    incubator/qpid/trunk/qpid/python/qpid/management.py

Modified: incubator/qpid/trunk/qpid/python/qpid/management.py
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qpid/management.py?rev=692525&r1=692524&r2=692525&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qpid/management.py (original)
+++ incubator/qpid/trunk/qpid/python/qpid/management.py Fri Sep  5 13:14:29 2008
@@ -72,9 +72,13 @@
 class objectId(object):
   """ Object that represents QMF object identifiers """
 
-  def __init__(self, codec):
-    self.first  = codec.read_uint64()
-    self.second = codec.read_uint64()
+  def __init__(self, codec, first=0, second=0):
+    if codec:
+      self.first  = codec.read_uint64()
+      self.second = codec.read_uint64()
+    else:
+      self.first = first
+      self.second = second
 
   def __cmp__(self, other):
     if other == None: