示例#1
0
 def _exportWorkspace(self):
     filename = QFileDialog.getSaveFileName(
         "/tmp", "Faraday export file  (*.faraday)", None,
         "save file dialog", "Choose a file to save the export")
     if filename and filename is not None:
         model.api.log("Export function %s" % filename)
         api.exportWorskpace("%s/" % CONF.getPersistencePath(),
                             "%s.faraday" % filename)
示例#2
0
 def _exportWorkspace(self):
     filename =  QFileDialog.getSaveFileName(
                 "/tmp",
                 "Faraday export file  (*.faraday)",
                 None,
                 "save file dialog",
                 "Choose a file to save the export" );
     if filename and filename is not None:
         model.api.log("Export function %s" % filename)
         api.exportWorskpace("%s/" % CONF.getPersistencePath(), "%s.faraday" % filename)