* src/GrampsParser.py: remove debugging statement
* src/RelLib.py: remove debugging statement * src/gramps_main.py: If an invalid ID is found while attempting to access the history, invalidate the history list (set to empty list). This should only happen after a reordering of IDs. svn: r2282
This commit is contained in:
parent
7df344ec86
commit
9ce580c501
@ -275,7 +275,6 @@ class GrampsParser:
|
||||
if attrs.has_key('ref'):
|
||||
self.witness = RelLib.Witness(RelLib.Event.ID,attrs['ref'])
|
||||
if attrs.has_key('name'):
|
||||
print "name",attrs['name']
|
||||
self.witness = RelLib.Witness(RelLib.Event.NAME,attrs['name'])
|
||||
|
||||
def start_coord(self,attrs):
|
||||
|
@ -2304,12 +2304,9 @@ class GrampsDB(Persistent):
|
||||
return self.surnames
|
||||
|
||||
def addSurname(self,name):
|
||||
try:
|
||||
if name and name not in self.surnames:
|
||||
self.surnames.append(name)
|
||||
self.surnames.sort()
|
||||
except:
|
||||
print name
|
||||
|
||||
def getBookmarks(self):
|
||||
"""returns the list of Person instances in the bookmarks"""
|
||||
|
@ -397,6 +397,7 @@ class Gramps:
|
||||
item.show()
|
||||
gomenu.append(item)
|
||||
|
||||
try:
|
||||
if len(self.history) > 0:
|
||||
# Draw separator
|
||||
item = gtk.MenuItem()
|
||||
@ -422,6 +423,10 @@ class Gramps:
|
||||
else:
|
||||
self.back.set_sensitive(0)
|
||||
self.forward.set_sensitive(0)
|
||||
except:
|
||||
self.history = []
|
||||
self.back.set_sensitive(0)
|
||||
self.forward.set_sensitive(0)
|
||||
|
||||
self.gomenuitem.remove_submenu()
|
||||
self.gomenuitem.set_submenu(gomenu)
|
||||
|
Loading…
Reference in New Issue
Block a user