changeset 8483 | 4ba11607d84a |
parent 8190 | 2a3c1b787688 |
child 8754 | 9d5cfbde9856 |
--- a/doc/book/en/annexes/faq.rst Tue Jul 17 17:16:28 2012 +0200 +++ b/doc/book/en/annexes/faq.rst Tue Jul 17 12:24:46 2012 +0200 @@ -364,7 +364,7 @@ >>> crypted = crypt_password('joepass') >>> rset = rql('Any U WHERE U is CWUser, U login "joe"') >>> joe = rset.get_entity(0,0) - >>> joe.set_attributes(upassword=Binary(crypted)) + >>> joe.cw_set(upassword=Binary(crypted)) Please, refer to the script example is provided in the `misc/examples/chpasswd.py` file.