* RelLib/_*.py: Make objects serialize all the way down to built-in
python objects, so that Gramps classes are never pickled. * Date.py, CalSdn.py: Move to RelLib. * src/dates/Date_*.py: Use new Date. * src/plugins/*.py: Use new Date. * src/GrampsDb/_*.py: Use new Date, new unserialize. * src/*.py: Use new Date. svn: r5875
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2005 Donald N. Allingham
|
||||
# Copyright (C) 2000-2006 Donald N. Allingham
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -47,7 +47,6 @@ import GrampsDisplay
|
||||
#------------------------------------------------------------------------
|
||||
import RelLib
|
||||
import Utils
|
||||
import Date
|
||||
import Tool
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
@@ -160,8 +159,8 @@ class Verify(Tool.Tool):
|
||||
event = self.db.get_event_from_handle(event_handle)
|
||||
dateObj = event.get_date_object()
|
||||
if dateObj:
|
||||
if dateObj.get_calendar() != Date.CAL_GREGORIAN:
|
||||
dateObj.set_calendar(Date.CAL_GREGORIAN)
|
||||
if dateObj.get_calendar() != RelLib.Date.CAL_GREGORIAN:
|
||||
dateObj.set_calendar(RelLib.Date.CAL_GREGORIAN)
|
||||
year = dateObj.get_year()
|
||||
return year
|
||||
|
||||
|
||||
Reference in New Issue
Block a user