def export_family(self, family=None): if family is None: family = self.current element = FamilyElement(family) element.append_parents(self.parents(family)) element.append_variables(self.environment_rows(family)) return element
def export_family(self, family=None): if family is None: family = self.current # row isn't used, except to determine that the family exists row = self.cursor.select_row(table='families', clause=Eq('family', family)) element = FamilyElement(family) element.append_parents(self.parents(family)) element.append_variables(self.environment_rows(family)) return element