[Checkins] SVN: z3c.saconfig/trunk/src/z3c/saconfig/README.txt Check whether there really is only a single record there.
Martijn Faassen
faassen at infrae.com
Fri Aug 15 14:50:32 EDT 2008
Log message for revision 89890:
Check whether there really is only a single record there.
Changed:
U z3c.saconfig/trunk/src/z3c/saconfig/README.txt
-=-
Modified: z3c.saconfig/trunk/src/z3c/saconfig/README.txt
===================================================================
--- z3c.saconfig/trunk/src/z3c/saconfig/README.txt 2008-08-15 18:05:53 UTC (rev 89889)
+++ z3c.saconfig/trunk/src/z3c/saconfig/README.txt 2008-08-15 18:50:31 UTC (rev 89890)
@@ -253,7 +253,10 @@
Now ``fred`` is indeed there::
>>> session = Session()
- >>> session.query(User).all()[0].name
+ >>> users = session.query(User).all()
+ >>> len(users)
+ 1
+ >>> users[0].name
u'fred'
And ``bob`` is still in ``site1``::
More information about the Checkins
mailing list