* 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

@ -35,7 +35,7 @@ import gtk
import BaseDoc
import Report
import Errors
import Calendar
import Date
from QuestionDialog import ErrorDialog
from SubstKeywords import SubstKeywords
@ -206,7 +206,7 @@ class FanChart:
birth_handle = person.get_birth_handle()
if birth_handle:
b = self.database.get_event_from_handle(birth_handle).get_date_object().get_year()
if b == Calendar.UNDEF:
if b == 0:
b = ""
else:
b = ""
@ -214,7 +214,7 @@ class FanChart:
death_handle = person.get_death_handle()
if death_handle:
d = self.database.get_event_from_handle(death_handle).get_date_object().get_year()
if d == Calendar.UNDEF:
if d == 0:
d = ""
else:
d = ""