Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
 def save(self):
     kargs = self.getArgs()
     if kargs["name"]:
         guiapi.editInterface(self.interface, **kargs)
         return True
     return False
Ejemplo n.º 4
0
 def save(self):
     kargs = self.getArgs()
     if kargs["name"]:
         guiapi.editInterface(self.interface, **kargs)
         return True
     return False