use unicode in the example of create_entity stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Wed, 14 Oct 2009 14:09:22 +0200
branchstable
changeset 3667 3a8caefec1fc
parent 3651 633b8971c95a
child 3668 365c5be5b43f
use unicode in the example of create_entity
__init__.py
--- a/__init__.py	Tue Oct 13 09:17:53 2009 +0200
+++ b/__init__.py	Wed Oct 14 14:09:22 2009 +0200
@@ -127,8 +127,9 @@
         
         Example (in a shell session):
 
-        c = create_entity('Company', name='Logilab')
-        create_entity('Person', ('works_for', 'Y'), Y=c.eid, firstname='John', lastname='Doe')
+        c = create_entity('Company', name=u'Logilab')
+        create_entity('Person', ('works_for', 'Y'),
+                      Y=c.eid, firstname=u'John', lastname=u'Doe')
 
         """
         rql = 'INSERT %s X' % etype