Fix example in cw_set method stable
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 17 Oct 2013 15:09:48 +0200
branchstable
changeset 9310 80c58c35145f
parent 9308 a898c34200ad
child 9311 8833ead6f3e4
Fix example in cw_set method
entity.py
--- a/entity.py	Thu Oct 24 11:07:57 2013 +0200
+++ b/entity.py	Thu Oct 17 15:09:48 2013 +0200
@@ -1279,8 +1279,8 @@
 
         >>> c = rql('Any X WHERE X is Company').get_entity(0, 0)
         >>> p = rql('Any X WHERE X is Person').get_entity(0, 0)
-        >>> c.set(name=u'Logilab')
-        >>> p.set(firstname=u'John', lastname=u'Doe', works_for=c)
+        >>> c.cw_set(name=u'Logilab')
+        >>> p.cw_set(firstname=u'John', lastname=u'Doe', works_for=c)
 
         You can also set relations where the entity has 'object' role by
         prefixing the relation name by 'reverse_'.  Also, relation values may be