This is an automated email from the git hooks/post-receive script.
firstyear pushed a commit to branch master
in repository 389-ds-base.
commit 89e32553a8a31b1e3e99e5c1e36b80b07da1c0b0
Author: Rich Megginson <rmeggins(a)redhat.com>
Date: Wed Nov 20 19:15:42 2013 -0700
need time and datetime - add str method for RUV to format RUV in a readable format
Reviewed by: tbordaz (Thanks!)
---
src/lib389/lib389/_replication.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/lib389/lib389/_replication.py b/src/lib389/lib389/_replication.py
index fc9e8cb..2eade30 100644
--- a/src/lib389/lib389/_replication.py
+++ b/src/lib389/lib389/_replication.py
@@ -1,3 +1,5 @@
+import time
+import datetime
class CSN(object):
"""CSN is Change Sequence Number
@@ -144,6 +146,13 @@ class RUV(object):
def __eq__(self, oth):
return cmp(self, oth) == 0
+ def __str__(self):
+ ret = 'generation: %s\n' % self.gen
+ for rid in self.rid.keys():
+ ret = ret + 'rid: %s url: %s min: [%s] max: [%s]\n' % \
+ (rid, self.rid[rid]['url'], self.rid[rid].get('min',
''), self. rid[rid].get('max', ''))
+ return ret
+
def getdiffs(self, oth):
"""Compare two ruvs and return the differences
returns a tuple - the first element is the
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.