* src/GrampsDbBase.py (create_id): Use sys.maxint to get the maximum possible integer number

svn: r4377
This commit is contained in:
Martin Hawlisch 2005-04-19 14:47:02 +00:00
parent 715cf4c956
commit 2521330c56
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,8 @@
that uses gtk+ only. Still incomplete.
* src/gramps_main.py: Removed canvas specific calls of the PedView
* src/GrampsDbBase.py (create_id): Use sys.maxint to get the maximum possible integer number
2005-04-18 Don Allingham <don@gramps-project.org>
* src/edit_person.glade: re-add edit_person.glade
* src/EditPerson.py: start of new EditPerson dialog

View File

@ -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"