* src/DateParser.py: dynamically detect numerical parsing based

off locale. Do not depend on strptime.
* src/Utils.py: remove last remains of SingleDate
* src/PeopleModel.py: display "error" instead of a blank string
on an error
* src/EventEdit.py: removed unused parameter
* src/Exporter.py: remove unused gnome.ui import
* src/plugins/FanChart.py: remove old Calendar reference
* src/plugins/Verify.py: remove old Calendar reference


svn: r3620
This commit is contained in:
Don Allingham
2004-10-12 01:29:39 +00:00
parent 6e51f6b27d
commit 4b4fd78f7e
8 changed files with 38 additions and 22 deletions

View File

@@ -50,7 +50,6 @@ import gtk.glade
#------------------------------------------------------------------------
import RelLib
import Utils
import Gregorian
from gettext import gettext as _
@@ -117,8 +116,8 @@ class Verify:
event = self.db.get_event_from_handle(event_handle)
dateObj = event.get_date_object()
if dateObj:
if dateObj.get_calendar().NAME != Gregorian.Gregorian.NAME:
dateObj.set_calendar(Gregorian.Gregorian)
if dateObj.get_calendar() != Date.CAL_GREGORIAN:
dateObj.set_calendar(Date.CAL_GREGORIAN)
year = dateObj.get_year()
return year