def _save_object(self): guiapi.editInterface(self.interface, self.getWidgetValue("name_edit"), self.getWidgetValue("description_edit"), self.getWidgetValue("hostnames_edit"), self.getWidgetValue("mac_edit"), self.getWidgetValue("ipv4_edit"), self.getWidgetValue("network_segment_edit"), self.getWidgetValue("amount_ports_opened_edit"), self.getWidgetValue("amount_ports_closed_edit"), self.getWidgetValue("amount_ports_filtered_edit"), self.getWidgetValue("owned_edit")) name = self.getWidgetValue("name_edit") self.execCallback(name)
def save(self): kargs = self.getArgs() if kargs["name"]: guiapi.editInterface(self.interface, **kargs) return True return False