* src/GrampsDbBase.py (create_id): Use sys.maxint to get the maximum possible integer number
svn: r4377
This commit is contained in:
parent
9bd9116204
commit
1d6ec38629
@ -3,6 +3,8 @@
|
|||||||
that uses gtk+ only. Still incomplete.
|
that uses gtk+ only. Still incomplete.
|
||||||
* src/gramps_main.py: Removed canvas specific calls of the PedView
|
* 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>
|
2005-04-18 Don Allingham <don@gramps-project.org>
|
||||||
* src/edit_person.glade: re-add edit_person.glade
|
* src/edit_person.glade: re-add edit_person.glade
|
||||||
* src/EditPerson.py: start of new EditPerson dialog
|
* src/EditPerson.py: start of new EditPerson dialog
|
||||||
|
@ -35,6 +35,7 @@ import time
|
|||||||
import random
|
import random
|
||||||
import locale
|
import locale
|
||||||
import re
|
import re
|
||||||
|
from sys import maxint
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -211,8 +212,8 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
|
|||||||
|
|
||||||
def create_id(self):
|
def create_id(self):
|
||||||
return "%08x%08x%08x" % ( int(time.time()*10000),
|
return "%08x%08x%08x" % ( int(time.time()*10000),
|
||||||
self.rand.randint(0,0xffffffff),
|
self.rand.randint(0,maxint),
|
||||||
self.rand.randint(0,0xffffffff))
|
self.rand.randint(0,maxint))
|
||||||
|
|
||||||
def get_person_cursor(self):
|
def get_person_cursor(self):
|
||||||
assert False, "Needs to be overridden in the derived class"
|
assert False, "Needs to be overridden in the derived class"
|
||||||
|
Loading…
Reference in New Issue
Block a user