From e70e9f746a726130b848f45563b28a015b4e3fa2 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 6 Apr 2010 15:28:39 +0000 Subject: Added qpid-cluster-store tool to examine & modify cluster store status. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@931185 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/datatypes.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python') diff --git a/python/qpid/datatypes.py b/python/qpid/datatypes.py index e4cbcb7f10..fc267c48ef 100644 --- a/python/qpid/datatypes.py +++ b/python/qpid/datatypes.py @@ -313,6 +313,12 @@ class UUID: def __init__(self, bytes): self.bytes = bytes + @staticmethod + def parse(str): + fields=str.split("-") + fields[4:5] = [fields[4][:4], fields[4][4:]] + return UUID(struct.pack("!LHHHHL", *[int(x,16) for x in fields])) + def __cmp__(self, other): if isinstance(other, UUID): return cmp(self.bytes, other.bytes) -- cgit v1.2.1