Comment 2 for bug 269028

Revision history for this message
ncq (karsten-hilbert) wrote : Re: [Bug 269028] Re: upgrade_db script does not ask for password on MS Windows and fails

-------- Original-Nachricht --------
> Datum: Thu, 11 Sep 2008 16:17:35 -0000
> Von: shilbert <email address hidden>
> An: <email address hidden>
> Betreff: [Bug 269028] Re: upgrade_db script does not ask for password on MS Windows and fails

> Actually the error seems to be something else. If I remove the %s ,
> %user on line 181 and provide a simple string like "Please provide your
> password" it shows a prompt in the shell.
>
> It then has the same problem on line 306 which contains a [%s] as well
> in a password prompt.
>
> For whatever it is worth.

As a fix try using two statements:

   print "you may now be asked for the password of user %s" % username
   getpass("blah foo:")

Karsten
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx