# HG changeset patch # User Jérôme Roy # Date 1361788498 -3600 # Node ID 5b3e17a63fad9cb67b2fba2b81855731eb00b954 # Parent 933f9693c53d9a59eb61d77af46d306183a82ee5 Correct typo in example diff -r 933f9693c53d -r 5b3e17a63fad entity.py --- a/entity.py Mon Feb 25 18:02:11 2013 +0100 +++ b/entity.py Mon Feb 25 11:34:58 2013 +0100 @@ -521,8 +521,8 @@ Example (in a shell session): - >>> companycls = vreg['etypes'].etype_class(('Company') - >>> personcls = vreg['etypes'].etype_class(('Person') + >>> companycls = vreg['etypes'].etype_class('Company') + >>> personcls = vreg['etypes'].etype_class('Person') >>> c = companycls.cw_instantiate(session.execute, name=u'Logilab') >>> p = personcls.cw_instantiate(session.execute, firstname=u'John', lastname=u'Doe', ... works_for=c)