# HG changeset patch # User Denis Laxalde # Date 1382015388 -7200 # Node ID 80c58c35145fc3142ebb0675267e708d1332ba39 # Parent a898c34200ad78ac88bed446c5dc053ce041e3e4 Fix example in cw_set method diff -r a898c34200ad -r 80c58c35145f 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