Fix bug introduced in r22837

svn: r22879
This commit is contained in:
Nick Hall 2013-08-19 22:14:11 +00:00
parent da460a4b97
commit 024629c2e1
4 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ class HasData(Rule):
self.event_type.set_from_xml_str(self.list[0])
if self.date:
self.date = parser.parse(self.date)
self.date = DateHandler.parser.parse(self.date)
def apply(self, db, event):
if self.event_type and event.get_type() != self.event_type:

View File

@ -52,7 +52,7 @@ class HasBirth(Rule):
def prepare(self, db):
if self.list[0]:
self.date = parser.parse(self.list[0])
self.date = DateHandler.parser.parse(self.list[0])
else:
self.date = None

View File

@ -52,7 +52,7 @@ class HasDeath(Rule):
def prepare(self, db):
if self.list[0]:
self.date = parser.parse(self.list[0])
self.date = DateHandler.parser.parse(self.list[0])
else:
self.date = None

View File

@ -58,7 +58,7 @@ class HasFamilyEvent(Rule):
self.date = None
try:
if self.list[1]:
self.date = parser.parse(self.list[1])
self.date = DateHandler.parser.parse(self.list[1])
except:
pass