Commit graph

1626 commits

Author SHA1 Message Date
Max Countryman
caefb67ccd correcting typo 2012-11-05 15:31:07 -08: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
soulseekah
3c54f30c2b missing ' in example
Results in SyntaxError: EOL while scanning string literal
2012-11-03 18:06:23 +06:00
Armin Ronacher
2b885ce4dc Added better error reporting for unicode errors in sessions 2012-10-30 14:47:17 +00:00
Tony Narlock
af76dd0fd4 Highlight first field on page load, enter sends submit request, double quote to single quote. Submission focuses first field again 2012-10-19 12:20:37 -04:00
Armin Ronacher
8339cb3508 Added support for unicode json dumping. This fixes #535 2012-10-18 00:48:15 +01:00
Armin Ronacher
5583fe8acf Merge pull request #613 from untitaker/issue611
Fix #611
2012-10-17 16:37:16 -07:00
Armin Ronacher
f06c80a215 Merge pull request #614 from mizhi/master
Minor fix to views.py testsuite.
2012-10-17 16:36:48 -07:00
Mitchell Peabody
275f830c83 There was a duplicated call to url_adapter.build(...)
try:
        rv = url_adapter.build(endpoint, values, method=method,
                               force_external=external)
    except BuildError, error:
        # We need to inject the values again so that the app callback can
        # deal with that sort of stuff.
        values['_external'] = external
        values['_anchor'] = anchor
        values['_method'] = method
        return appctx.app.handle_url_build_error(error, endpoint, values)

   rv = url_adapter.build(endpoint, values, method=method,
                          force_external=external)

If no exception was raised for url_adapter.build(...) then the same method call
would be made after the try...except block. This is unnecessary.
2012-10-17 11:56:39 -04:00
Mitchell Peabody
a15c6c569a The builder on github is using python 2.5, the views.py testsuite uses the with
statement, and thus flask/testsuite/views.py requires

from __future__ import with_statement

at the beginning.
2012-10-16 16:57:57 -04:00
Markus Unterwaditzer
7ee40e9348 Fix #611
Minor but confusing typo in tutorial.
2012-10-16 21:56:51 +02:00
Corbin Simpson
f6a5a7a0cc docs/deploying/wsgi-standalone: Add Twisted Web.
I've been meaning to do this for quite some time, but I never got around to
it. Hopefully this is neutral and useful enough to be included in the main
docs.
2012-10-11 14:05:01 -07: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
3e9f4e254b Updated a comment that was misleading with recent flask sqlalchemy installations 2012-10-08 07:05:32 +02:00
Armin Ronacher
f34c028125 Added template tests and made config a true global 2012-10-08 07:01:49 +02:00
Armin Ronacher
5e88c8184d Removed deprecated and awkward flask.session module 2012-10-08 06:48:13 +02:00
Armin Ronacher
05c6502cbd Let json.* work even without app on the stack and added tests 2012-10-07 23:41:41 +02:00
Armin Ronacher
b146d8277a Added wrapper module around simplejson/json for much simplified customization. 2012-10-07 23:31:48 +02:00
Armin Ronacher
301e244df3 Consistent use of encoding naming 2012-10-07 22:59:52 +02:00
Armin Ronacher
3afcbf160e Extra safety for safe_join. Does not look exploitable but better safe than sorry. Fixes #501 2012-10-07 22:58:41 +02:00
Armin Ronacher
f701f69947 Documented new error case 2012-10-07 17:13:12 +02:00
Armin Ronacher
661ee54bc2 Raise exceptions if a function is overridden by a new endpoint. This fixes #570 2012-10-07 17:12:16 +02:00
Armin Ronacher
e2b3f07d7c Stop the joinspam 2012-10-07 16:16:21 +02:00
Armin Ronacher
6e4015d624 Removed tox file 2012-10-07 16:08:13 +02:00
Armin Ronacher
b6f37c40f8 Updated travis config for notifications 2012-10-07 16:08:00 +02:00
Armin Ronacher
f8b6033a3b Added a workaround for samefile. This fixes #600 2012-10-07 16:04:31 +02:00
Armin Ronacher
3c1d7758d5 Removed dev tag from setup.cfg. Fixes #596 2012-10-07 15:58:21 +02:00
Armin Ronacher
b5bb49d080 Added a new example for checksums on input data. This fixes #601 2012-10-07 15:46:21 +02:00
Armin Ronacher
c4f2075f4c tojson no longer escapes script blocks in HTML5 parsers. Fixed #605 2012-10-07 15:33:25 +02:00
Armin Ronacher
01ac057d36 Merge branch 'master' of github.com:mitsuhiko/flask 2012-10-07 15:24:28 +02:00
Armin Ronacher
3bec75d230 Set the content-length header for sendfile. Fixes #447 2012-10-07 15:24:03 +02:00
Armin Ronacher
c01d36aabd Merge pull request #548 from SimonSapin/patch-6
Remove the unused `ScriptNameStripper.to_strip` in the FastCGI doc example
2012-10-07 06:06:45 -07:00
Armin Ronacher
aecb760c6a Merge pull request #550 from AkaiKitsune/master
Added Windows documentation for mod_wsgi usage
2012-10-07 06:06:23 -07:00
Armin Ronacher
de5038f2fb Added total_seconds() helper for pythons before 2.7 2012-10-07 14:56:02 +02:00
Armin Ronacher
7f87091474 Added a missing exposed import. This fixes #575 2012-10-07 14:51:26 +02:00
Armin Ronacher
5b462dd382 Fixed a typo in the docs. This fixes #576 and #575 2012-10-07 14:50:21 +02:00
Armin Ronacher
18413ed1bf Added HTTP override middleware to docs. This fixes #582 2012-10-07 13:02:05 +02:00
Armin Ronacher
b2cf9e7212 Merge pull request #590 from pinchsp/master
Fixed small error in SQLAlchemy patterns documentation
2012-10-07 03:56:35 -07:00
Armin Ronacher
c5f938bc55 Merge pull request #583 from d1ffuz0r/issue_524
fixed issue #524
2012-10-07 03:55:55 -07:00
Armin Ronacher
39329bfc07 Merge pull request #591 from finbarrocallaghan/master
fixed some typos
2012-10-07 03:54:58 -07:00
Armin Ronacher
c9a7fdf1b0 Documented latest commit in changelog 2012-10-07 12:53:36 +02:00
Armin Ronacher
f034d8d345 Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332 2012-10-07 12:51:46 +02:00
Armin Ronacher
b2fc9febdd Merge pull request #607 from jfinkels/patch-3
Update docs/quickstart.rst
2012-10-07 03:49:36 -07:00
Armin Ronacher
62c0c67d88 Merge branch 'master' of github.com:mitsuhiko/flask 2012-10-07 12:49:03 +02:00
Armin Ronacher
4f1cb42123 make_test_environ_builder when used with subdomains was not working correctly, now it uses urlparse module for detecting full URL and changing path and base_url correctly 2012-10-07 12:48:19 +02:00
Armin Ronacher
261c4a6aee Updated documentation for the new sessions 2012-10-07 12:40:59 +02:00
Armin Ronacher
e1a576122b Merge branch 'json-sessions' 2012-10-07 10:33:37 +02:00
jfinkels
639817b621 Update docs/quickstart.rst
Removed incorrect syntax and simplified remaining sentence.
2012-10-05 02:49:55 -03:00
Kenneth Reitz
3b9fe7c486 Merge pull request #603 from rmacy/patch-1
Fixed typo occours to occurs
2012-10-01 12:46:42 -07:00
Ryan Macy
7233a3e0a2 Fixed typo occours to occurs
Fixed a typo in the docstring of handle_exception. Was occours, now occurs.
2012-10-01 14:45:02 -05:00