Ejemplo n.º 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)
Ejemplo n.º 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)