def set_from_string(self, data): if data != '*' and data != '*.*': values = parse_mysql_ids(data) if len(values) == 2: self.schema, self.object = tuple(values) else: self.object = data