--- a/doc/book/en/annexes/faq.rst Fri Apr 22 16:24:56 2011 +0200
+++ b/doc/book/en/annexes/faq.rst Fri Apr 22 16:23:34 2011 +0200
@@ -380,11 +380,14 @@
You can prefer use a migration script similar to this shell invocation instead::
$ cubicweb-ctl shell <instance>
+ >>> from cubicweb import Binary
>>> from cubicweb.server.utils import crypt_password
>>> 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=crypted)
+ >>> joe.set_attributes(upassword=Binary(crypted))
+
+Please, refer to the script example is provided in the `misc/examples/chpasswd.py` file.
The more experimented people would use RQL request directly::