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])
|
self.event_type.set_from_xml_str(self.list[0])
|
||||||
|
|
||||||
if self.date:
|
if self.date:
|
||||||
self.date = parser.parse(self.date)
|
self.date = DateHandler.parser.parse(self.date)
|
||||||
|
|
||||||
def apply(self, db, event):
|
def apply(self, db, event):
|
||||||
if self.event_type and event.get_type() != self.event_type:
|
if self.event_type and event.get_type() != self.event_type:
|
||||||
|
@ -52,7 +52,7 @@ class HasBirth(Rule):
|
|||||||
|
|
||||||
def prepare(self, db):
|
def prepare(self, db):
|
||||||
if self.list[0]:
|
if self.list[0]:
|
||||||
self.date = parser.parse(self.list[0])
|
self.date = DateHandler.parser.parse(self.list[0])
|
||||||
else:
|
else:
|
||||||
self.date = None
|
self.date = None
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class HasDeath(Rule):
|
|||||||
|
|
||||||
def prepare(self, db):
|
def prepare(self, db):
|
||||||
if self.list[0]:
|
if self.list[0]:
|
||||||
self.date = parser.parse(self.list[0])
|
self.date = DateHandler.parser.parse(self.list[0])
|
||||||
else:
|
else:
|
||||||
self.date = None
|
self.date = None
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ class HasFamilyEvent(Rule):
|
|||||||
self.date = None
|
self.date = None
|
||||||
try:
|
try:
|
||||||
if self.list[1]:
|
if self.list[1]:
|
||||||
self.date = parser.parse(self.list[1])
|
self.date = DateHandler.parser.parse(self.list[1])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user