branch | stable |
changeset 2172 | cf8f9180e63e |
parent 1808 | aa09e20dd8c0 |
child 2175 | 16d3c37c5d28 |
--- a/doc/book/en/annexes/cookbook.rst Fri Jun 19 09:19:27 2009 +0200 +++ b/doc/book/en/annexes/cookbook.rst Fri Jun 19 20:38:32 2009 +0200 @@ -70,11 +70,11 @@ you would not be able to use dbapi. :: from cubicweb import dbapi - + cnx = dbapi.connection(database='instance-id', user='admin', password='admin') cur = cnx.cursor() for name in ('Personal', 'Professional', 'Computers'): cur.execute('INSERT Blog B: B name %s', name) cnx.commit() - +