def add_attribute(self, attrib, value): if attrib == "" or value == "": gterror("attribute keys or values must not be empty!") gtlib.gt_feature_node_add_attribute(self.gn, attrib, value)
def add_attribute(self, attrib, value): if attrib == "" or value == "": gterror("attribute keys or values must not be empty!") gtlib.gt_feature_node_add_attribute(self.gn, str(attrib).encode("UTF-8"), str(value).encode("UTF-8"))