summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-08-12 17:28:28 +0400
committerMatthieu Patou <mat@matws.net>2010-08-19 15:59:05 +0400
commita5653bcf837f6941fd26d233fbba15976fb0897e (patch)
treeb91e897bea47c921ad1a17a2ac07aeb7f3749eb7 /source4/scripting/python
parente378d7fd89beeffc20bafa04e0fcfb895eaccbf5 (diff)
downloadsamba-a5653bcf837f6941fd26d233fbba15976fb0897e.tar.gz
samba-a5653bcf837f6941fd26d233fbba15976fb0897e.tar.bz2
samba-a5653bcf837f6941fd26d233fbba15976fb0897e.zip
s4 upgradeprovision: add more attrbutes the ignore list
Also format in a pretty way the int64 ranges
Diffstat (limited to 'source4/scripting/python')
-rwxr-xr-xsource4/scripting/python/samba/upgradehelpers.py11
1 files changed, 11 insertions, 0 deletions
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