Project

General

Profile

Anomalie #2047

Question dans mysql_pwd.py sans oui/non

Added by Emmanuel GARETTE (2) about 10 years ago. Updated almost 10 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
09/10/2011
Due date:
% Done:

100%

Spent time:
Distribution:
EOLE 2.3

Description

La question "Voulez-vous que les autres mots de passe soient modifiés (oui/non) ?" n'utilise pas la fonction question_ouinon.

--- mysql_pwd.py    2011-09-10 19:36:18.813862532 +0200
+++ /usr/share/eole/mysql_pwd.py    2011-09-10 20:30:37.161863105 +0200
@@ -23,13 +23,15 @@

 Nouveau mot de passe root mysql : <nouveau mot de passe root>

-Voulez-vous que les autres mots de passe soient modifiés (oui/non) ?
+Voulez-vous que les autres mots de passe soient modifiés ? [oui/non]
+[non] :
 """ 

 import os, sys

 from creole.eosfunc import gen_random
 from pyeole.process import system_code, system_out
+from pyeole.ihm import question_ouinon

 from eolesql.log import log_console, log
 from eolesql.collect_pwd import get_password_conf
@@ -202,8 +204,7 @@

     # Modification des mots de passe des autres applications
     if ask == True:
-        modif = raw_input("\nVoulez-vous que les autres mots de passe soient modifiés (oui/non) ? ")
-        if modif not in ['oui', 'o', 'O']:
+        if question_ouinon('\nVoulez-vous que les autres mots de passe soient modifiés ?') == 'non':
             modify = False
     elif len(sys.argv) == 3:
         modify = False

Associated revisions

Revision 90ede13b (diff)
Added by moyooo over 11 years ago

first work on datetime see #2047
TODO : populate combobox / clean display...

Revision 05da6ba2 (diff)
Added by moyooo over 11 years ago

more work on datetime : see #2047

Revision 1d633727 (diff)
Added by Joël Cuissinat almost 10 years ago

mysql_pwd.py : utilisation de question_ouinon (fixes #2047)

Revision cf4a749e (diff)
Added by Johan Cwiklinski over 4 years ago

Add hidden input for actors for rules to match

Fixes #2047

Revision 24fe6dd5 (diff)
Added by Johan Cwiklinski over 4 years ago

Add hidden input for actors for rules to match

Fixes #2047

Revision b40d8c52 (diff)
Added by Johan Cwiklinski over 4 years ago

Load existing actors before playing rules; fixes #2047

Revision 39f2b51a (diff)
Added by Johan Cwiklinski over 4 years ago

Load existing actors before playing rules; fixes #2047

History

#1 Updated by Joël Cuissinat almost 10 years ago

  • Target version set to Mises à jour 2.3 - 03 RC

#2 Updated by Joël Cuissinat almost 10 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#3 Updated by Joël Cuissinat almost 10 years ago

  • Distribution set to EOLE 2.3

#4 Updated by Joël Cuissinat almost 10 years ago

  • Status changed from Résolu to Fermé
  • Assigned To set to Joël Cuissinat
root@amonecole:~# grep ouinon /usr/share/eole/mysql_pwd.py
from pyeole.ihm import question_ouinon
        if question_ouinon('\nVoulez-vous que les autres mots de passe soient modifiés ?') == 'non':

Et le script semble toujours fonctionner ;)

Also available in: Atom PDF