[FIX] doc/backend: typos in example code

This commit is contained in:
Richard Mathot 2014-11-24 10:22:47 +01:00
parent 5f756d2510
commit f636096638
1 changed files with 2 additions and 2 deletions

View File

@ -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', {