Commit 2cd15c70 authored by Jérôme Roy's avatar Jérôme Roy
Browse files

Correct typo in example

parent 933f9693c53d
......@@ -521,8 +521,8 @@ class Entity(AppObject):
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment