Fix bug introduced in r22837
svn: r22879
This commit is contained in:
parent
da460a4b97
commit
024629c2e1
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user