Commit graph

10 commits

Author SHA1 Message Date
Thomas Waldmann
8bb972e5ae fix minitwit/flaskr test errors, improve docs about file open mode
app.open_resource needs to get called with the correct mode param (python3
will read bytes [not str] if the wrong mode is used), add mode param docs.

rv.data is bytes, fix the data type we compare it with to be also bytes
2013-05-25 19:13:48 +02:00
Gennady Kovshenin
82b29c09ac Use sqlite3.Row factory in Flaskr
As pointed out in issue #588 sqlite3.Row should be used instead of
using casting to dict(). Also altered the "Easy Querying" Patterns
example to include the more correct way to return rows as dicts.
Did not touch Tutorial examples ("Views"), as these are not up to
date with the current Flaskr code, and the "Show Entries" section
points out the "Easy Querying" section on how to convert to a
dict().
2012-11-05 06:00:46 +06:00
Armin Ronacher
c2e5799879 Updated examples to new sqlite patterns and added new section to appcontext docs 2012-10-09 14:02:32 -05:00
Armin Ronacher
d3ca55177a Updated the docs and examples to non-failing teardown handlers 2011-08-25 20:56:43 +01:00
Armin Ronacher
5ca17c86c0 Added a missing colon 2011-08-07 01:51:02 +02:00
Armin Ronacher
a9fc040c39 Updated documentation to use teardown request where appropriate 2011-05-27 20:21:41 +02:00
Ron DuPlain
6875a057ec Fixed small typos in docs. Added a cross-ref. 2010-10-07 19:32:07 +08:00
Adam Zapletal
4ed7a923f5 Minor sqlite3 documentation fixes (grammar, etc) 2010-06-28 15:12:33 +08:00
Chris Edgemon
a7ff9dbddd Proofreading the documentation 2010-04-19 23:25:51 -05:00
Armin Ronacher
123a1ad019 Breaking docs up into smaller pieces 2010-04-18 13:35:40 +02:00