From a5653bcf837f6941fd26d233fbba15976fb0897e Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Thu, 12 Aug 2010 17:28:28 +0400 Subject: s4 upgradeprovision: add more attrbutes the ignore list Also format in a pretty way the int64 ranges --- source4/scripting/python/samba/upgradehelpers.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source4/scripting/python') diff --git a/source4/scripting/python/samba/upgradehelpers.py b/source4/scripting/python/samba/upgradehelpers.py index a588a84346..7b09d4a441 100755 --- a/source4/scripting/python/samba/upgradehelpers.py +++ b/source4/scripting/python/samba/upgradehelpers.py @@ -886,3 +886,14 @@ def search_constructed_attrs_stored(samdb, rootdn, attrs): hashAtt[att][str(ent.dn).lower()] = str(ent[att]) return hashAtt + +def int64range2str(value): + """Display the int64 range stored in value as xxx-yyy + + :param value: The int64 range + :return: A string of the representation of the range + """ + + lvalue = long(value) + str = "%d-%d" % (lvalue&0xFFFFFFFF, lvalue>>32) + return str -- cgit