* src/GrampsDbBase.py (create_id): Use sys.maxint to get the maximum possible integer number
svn: r4377
This commit is contained in:
@ -35,6 +35,7 @@ import time
|
||||
import random
|
||||
import locale
|
||||
import re
|
||||
from sys import maxint
|
||||
from gettext import gettext as _
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@ -211,8 +212,8 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
|
||||
|
||||
def create_id(self):
|
||||
return "%08x%08x%08x" % ( int(time.time()*10000),
|
||||
self.rand.randint(0,0xffffffff),
|
||||
self.rand.randint(0,0xffffffff))
|
||||
self.rand.randint(0,maxint),
|
||||
self.rand.randint(0,maxint))
|
||||
|
||||
def get_person_cursor(self):
|
||||
assert False, "Needs to be overridden in the derived class"
|
||||
|
Reference in New Issue
Block a user