[MERGE] Add a get_login method to UIFactory and test get_password

Vincent Ladeuil v.ladeuil+lp at free.fr
Mon Feb 19 21:16:55 GMT 2007


I needed to write tests involving querying user for login and
password.

I rewrote part of the tests in the process so that they can be
run from a dumb terminal (I get tired of
test_text_factory_prompts_and_clears failures).

Unicode experts comments welcome.

One point I couldn't decide was: should the login and passwords
be encoded ?

I have no idea of what can be encountered as valid characters for
login and passwords on all supported client systems and on all
supported servers (restricting to ASCII seems clearly wrong,
forcing utf-8 too, using unicode a joke ;). 

I thought that the safest was to not encode anything so that the
servers receive exactly what the users typed.

      Vincent

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070219/f968411b/attachment-0001.pgp 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fakestdin.patch
Type: text/x-patch
Size: 14765 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070219/f968411b/attachment-0001.bin 


More information about the bazaar mailing list