2007-10-08 Don Allingham <don@gramps-project.org>

* various: gen.lib integration. probably touches almost every file

	* various: gen.utils integration


svn: r9101
This commit is contained in:
Don Allingham
2007-10-08 16:41:39 +00:00
parent 8038bc0dca
commit d58641415d
245 changed files with 2315 additions and 2355 deletions

View File

@@ -43,7 +43,7 @@ import gtk.glade
#
#-------------------------------------------------------------------------
import ManagedWindow
import RelLib
import gen.lib
import Utils
from PluginUtils import Tool, register_tool
@@ -82,7 +82,7 @@ class EventNames(Tool.BatchTool, ManagedWindow.ManagedWindow):
for handle in self.db.get_person_handles():
person = self.db.get_person_from_handle(handle)
for event_ref in person.get_event_ref_list():
if event_ref.get_role() == RelLib.EventRoleType.PRIMARY:
if event_ref.get_role() == gen.lib.EventRoleType.PRIMARY:
event_handle = event_ref.ref
event = self.db.get_event_from_handle(event_handle)
if event.get_description() == "":
@@ -93,7 +93,7 @@ class EventNames(Tool.BatchTool, ManagedWindow.ManagedWindow):
for handle in self.db.get_family_handles():
family = self.db.get_family_from_handle(handle)
for event_ref in family.get_event_ref_list():
if event_ref.get_role() == RelLib.EventRoleType.FAMILY:
if event_ref.get_role() == gen.lib.EventRoleType.FAMILY:
event_handle = event_ref.ref
event = self.db.get_event_from_handle(event_handle)
if event.get_description() == "":