'Creates a new profile.'

def new_profile(self, widget=None):

    dlg = entries.EntryDialog(_('New    profile'), gtk.STOCK_NEW, [_('Name:'), _('Description:')])
    dlg.run()
    dlgResponse = dlg.inputtexts
    dlg.destroy()
    if (dlgResponse is None):
        return
    try:
        self.w3af.profiles.use_profile(None)
    except BaseFrameworkException as w3:
        dlg = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, str(w3))
        dlg.run()
        dlg.destroy()
        return
    self.w3af.mainwin.pcbody.reload(None)
    (filename, description) = dlgResponse
    filename = cgi.escape(filename)
    try:
        profile_obj = helpers.coreWrap(self.w3af.profiles.save_current_to_new_profile, filename, description)
    except BaseFrameworkException:
        self.w3af.mainwin.sb(_('Problem    hit!'))
        return
    self.w3af.mainwin.sb(_('New    profile    created'))
    self.load_profiles(selected=profile_obj.get_name())
    self.origActPlugins = self.w3af.mainwin.pcbody.get_activated_plugins()
    path = self.get_cursor()[0]
    newstatus = self._get_actionsSensitivity(path)
    self.w3af.mainwin.activate_profile_actions(newstatus)
