svn: r13752
This commit is contained in:
Gerald Britton
2009-12-10 21:06:00 +00:00
parent 0c18bc53ce
commit a82b115192
3 changed files with 18 additions and 25 deletions

View File

@ -48,5 +48,5 @@ class Disconnected(Rule):
'to any other person in the database')
def apply(self,db,person):
return (len(person.get_parent_family_handle_list())
+ len(person.get_family_handle_list()) == 0)
return not (person.get_parent_family_handle_list()
or person.get_family_handle_list())

View File

@ -59,8 +59,6 @@ class HasAttributeBase(Rule):
specified_type.set_from_xml_str(self.list[0])
name_match = attr.get_type() == specified_type
value_match = \
attr.get_value().upper().find(self.list[1].upper()) != -1
if name_match and value_match:
return True
if name_match:
return attr.get_value().upper().find(self.list[1].upper()) != -1
return False