entity.py
branchstable
changeset 9310 80c58c35145f
parent 9277 c964d8cf6efc
child 9340 b1e933b0e850
child 9432 030745ac9873
--- 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