'Saves all the info to a profile.'

def _saveEverything(self):

    filename = self.panel.widg.get_children()[2].get_text()
    description = self.panel.widg.get_children()[0].get_text()
    if (not filename):
        msg = "The    configuration    can't    be    saved,    you    need    to    insert    a    profile    name!\n\n"
        dlg = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, msg)
        dlg.set_title('Missing    info')
        dlg.run()
        dlg.destroy()
        return
    filename = cgi.escape(filename)
    try:
        helpers.coreWrap(self.w3af.profiles.save_current_to_new_profile, filename, description)
    except BaseFrameworkException:
        self.w3af.mainwin.sb(_('There    was    a    problem    saving    the    profile!'))
        return
    self.w3af.mainwin.profiles.load_profiles(filename)
    self.w3af.mainwin.sb(_('New    profile    created'))
    self.destroy()
