Armin Ronacher
6ab569b0e3
Added note on teardown in debug mode. Fixes #661
12 years ago
Armin Ronacher
3b393f89f6
Added template_global, fixes #657
12 years ago
Armin Ronacher
05f162329d
Added celery pattern
12 years ago
Kenneth Reitz
3fdcefbcda
Merge pull request #625 from soulseekah/master
...
Use sqlite3.Row factory in Flaskr (#588 )
12 years ago
Kenneth Reitz
17fc38c397
Merge pull request #617 from tony/jquery-example-iteration1
...
jQuery example: submit on enter, focus field on load, ajax to callback function, " to '.
12 years ago
Kenneth Reitz
777c0c56b5
Merge pull request #630 from untitaker/doc_fix_appctx
...
Fix #623
12 years ago
Kenneth Reitz
1e14783abd
Merge pull request #665 from trungly/deferred_callbacks_fix
...
Update docs/patterns/deferredcallbacks.rst
12 years ago
Kenneth Reitz
94a9b9665b
Merge pull request #660 from baijum/docs
...
WSGI specification has finalized for Python 3
12 years ago
Kenneth Reitz
b975dd4667
Merge pull request #667 from maxcountryman/secure-url-for
...
adding `_scheme` parameter to `url_for`
12 years ago
Kenneth Reitz
6fa449de00
Merge pull request #669 from schneems/master
...
update README to markdown
12 years ago
schneems
fb6dee3639
update README to markdown
12 years ago
Max Countryman
b5069d07a2
adding `_scheme` parameter to `url_for`
...
In order to better facilitate generation of URLs that make use of an HTTPS URL
scheme this patch adds a parameter with this specific purpose in mind. To
achieve this we explicitly pass in a param, `_scheme='https'`, and then set the
`url_scheme` attribute of our `MapAdapter` instance appropriately.
Importantly, `_external=True` must be set in order for this to work properly.
As such, failure to do so results in a `ValueError` being raised.
12 years ago
Armin Ronacher
61d3bbf1d2
Fixed last commit and added test
12 years ago
Armin Ronacher
f1537a9d7a
Always trap proxy exceptions
12 years ago
Trung Ly
b4fc4412e8
Update docs/patterns/deferredcallbacks.rst
...
fix example code in Deferred Callback docs: don't set response upon executing callback
12 years ago
Markus Unterwaditzer
2b30900e2c
Fix #623
12 years ago
Baiju Muthukadan
7a3d74f19f
WSGI specification has finalized for Python 3
...
Mention Python 3.x is not supported
12 years ago
Kenneth Reitz
ff2e8449ff
2013
12 years ago
Kenneth Reitz
e3e4f4c2b8
2013
12 years ago
Armin Ronacher
ab3d9d12c6
Merge pull request #655 from oliversong/master
...
SQLite doesn't recognize data type "string"
12 years ago
Armin Ronacher
e101655820
Merge pull request #649 from erikrose/doc-typos
...
Fix a typo in the deferred-callbacks docs.
12 years ago
Armin Ronacher
dfdbc00eaf
Merge pull request #653 from methane/patch-1
...
docs/extensiondev: Use `current_app` instead of `self.app`
12 years ago
Armin Ronacher
7ec45c2d02
Merge pull request #654 from untitaker/print_in_cgi2
...
Fixing my own pull request #647
12 years ago
oliversong
cc82feb084
Changing string to text in schema files
12 years ago
Armin Ronacher
2af0ffaef6
Added proxies to template context
12 years ago
Armin Ronacher
1949c4a9ab
flask.g is now on the app context and not the request context
12 years ago
Markus Unterwaditzer
c549e583c4
Fixing my own pull request #647
...
Wrote "stdin" instead of "stdout".
12 years ago
Armin Ronacher
61d43c7f12
Removed unnecessary end-tags and fixed some broken html
12 years ago
INADA Naoki
be0b5196bf
Update docs/extensiondev.rst
...
Use `current_app` instead of `self.app`.
12 years ago
Kenneth Reitz
823bebf13a
Merge pull request #636 from ghost/patch-1
...
Ended your paragraph tag.
12 years ago
Kenneth Reitz
813149677d
Merge pull request #647 from untitaker/print_in_cgi
...
Added hint about print statements in CGI.
12 years ago
Erik Rose
a319516518
Fix a typo in the deferred-callbacks docs.
12 years ago
Markus Unterwaditzer
160aa80781
Added hint about print statements in CGI.
...
Fix #646
12 years ago
Iyra Gaura
be1ed33271
Ended your paragraph tag.
12 years ago
Kenneth Reitz
fedc96c0b9
Merge pull request #609 from MostAwesomeDude/master
...
docs/deploying/wsgi-standalone: Add Twisted Web.
12 years ago
Kenneth Reitz
2fabc65505
Merge pull request #624 from soulseekah/patch-1
...
missing ' in templating example
12 years ago
Kenneth Reitz
4515b838ea
Merge pull request #634 from maxcountryman/master
...
correcting typo
12 years ago
Max Countryman
b6dac3812f
really fixing it this time
12 years ago
Max Countryman
30a51f2573
correcting typo
12 years ago
Kenneth Reitz
692a5c2588
Merge pull request #626 from maxcountryman/patch-1
...
correcting typo
12 years ago
Max Countryman
caefb67ccd
correcting typo
12 years ago
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().
12 years ago
soulseekah
3c54f30c2b
missing ' in example
...
Results in SyntaxError: EOL while scanning string literal
12 years ago
Armin Ronacher
2b885ce4dc
Added better error reporting for unicode errors in sessions
12 years ago
Tony Narlock
af76dd0fd4
Highlight first field on page load, enter sends submit request, double quote to single quote. Submission focuses first field again
12 years ago
Armin Ronacher
8339cb3508
Added support for unicode json dumping. This fixes #535
12 years ago
Armin Ronacher
5583fe8acf
Merge pull request #613 from untitaker/issue611
...
Fix #611
12 years ago
Armin Ronacher
f06c80a215
Merge pull request #614 from mizhi/master
...
Minor fix to views.py testsuite.
12 years ago
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.
12 years ago
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.
12 years ago