doc/book/en/annexes/faq.rst
changeset 7250 fe27390bf2f8
parent 6592 4dad0ec0a44f
child 7529 2fdc310be7cd
--- 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::