summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Mathot <rim@openerp.com>2014-11-24 10:22:47 +0100
committerRichard Mathot <rim@openerp.com>2014-11-24 10:22:47 +0100
commitf636096638bf6b3cea2de385d2fa2bca18f1d264 (patch)
tree1aa5f9cac4ecd47c4e233b01f34b5762b8f09017
parent5f756d25105178e73e394194eee48b54f046b957 (diff)
[FIX] doc/backend: typos in example code
-rw-r--r--doc/howtos/backend.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/howtos/backend.rst b/doc/howtos/backend.rst
index c9715893614..5e8135b9cd4 100644
--- a/doc/howtos/backend.rst
+++ b/doc/howtos/backend.rst
@@ -1725,12 +1725,12 @@ server with the library ``xmlrpclib``::
print "Logged in as %s (uid:%d)" % (USER,uid)
call = functools.partial(
- xmlcprlib.ServerProxy(ROOT + 'object').execute,
+ xmlrpclib.ServerProxy(ROOT + 'object').execute,
DB, uid, PASS)
# 2. Read the sessions
sessions = call('openacademy.session','search_read', [], ['name','seats'])
- for session in sessions :
+ for session in sessions:
print "Session %s (%s seats)" % (session['name'], session['seats'])
# 3.create a new session
session_id = call('openacademy.session', 'create', {