[FIX] doc/backend: typos in example code
authorRichard Mathot <rim@openerp.com>
Mon, 24 Nov 2014 09:22:47 +0000 (10:22 +0100)
committerRichard Mathot <rim@openerp.com>
Mon, 24 Nov 2014 09:22:47 +0000 (10:22 +0100)
doc/howtos/backend.rst

index c971589..5e8135b 100644 (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', {