testingrule for 2307: return string rather than true/false

svn: r13010
This commit is contained in:
Jérôme Rapinat 2009-08-14 16:46:56 +00:00
parent 691088d116
commit 192637811d

View File

@ -1508,8 +1508,7 @@ class MarriedRelation(FamilyRule):
marr_date_ok = marr_date > 0
married = self.obj.get_relationship() == gen.lib.FamilyRelType.MARRIED
if not married and marr_date_ok:
return False
return True
return self.get_message
def get_message(self):
return _("Marriage event but not married")