Armin Ronacher
523e271183
Implemented simplified CLI interface
9 years ago
Armin Ronacher
6aee9f6d77
Resolve state issue for url_for with forced scheme
...
This fixes #1596
9 years ago
David Hou
9f1be8e795
Raise BadRequest if static file name is invalid
...
* Raise BadRequest if static file name is invalid
* Clean up syntax a bit
* Remove unnecessary close()
9 years ago
Shipeng Feng
cc536c8a7b
Fixed stream_with_context if decorated function has parameters
9 years ago
nivm
edb65cc0f0
remove 'flask' from etags to obscure server technologies
9 years ago
Timo Furrer
d526932a09
support timedelta for SEND_FILE_MAX_AGE_DEFAULT config variable
9 years ago
lobeck
128bc76af0
Revert "make external_url_handler example py3 compliant"
10 years ago
Christian Becker
93fe1d54bd
make external_url_handler example py3 compliant
...
- a raises statement with multiple values is no longer allowed in python 3
10 years ago
Markus Unterwaditzer
bc4c1777e9
Document static_folder
10 years ago
Keyan Pishdadian
805692108a
Update send_file() docs to clarify encoding requirement #1286
10 years ago
Markus Unterwaditzer
0d19fa0a06
Clarify some docs
...
Fix #1476
10 years ago
Markus Unterwaditzer
94a3968d69
Untangle logic a bit
10 years ago
Edward Z. Yang
29f7c10a5d
Remove bad security advice about send_file.
...
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
10 years ago
Parkayun
33534bb4a9
Happy New Year 2015
10 years ago
defuz
1501b79293
docs: :exc:`TypeError`
10 years ago
defuz
d338dc8a13
docs: ``.html``, ``.py``
10 years ago
defuz
17eee81da0
docs: ``Flask-Uploads``, ``X-Forwarded-Host``
10 years ago
defuz
ad011bc32d
docs: ``DEBUG``, ``SERVER_NAME``, ``PATH_INFO``
10 years ago
defuz
a8f570cc62
docs: :file:`app.py`, :file:`yourapp/templates`
10 years ago
defuz
8284217593
docs: ``True``, ``False`` and ``None``
10 years ago
Petr Zemek
d4f6734741
Remove a redundant "the" in a comment.
10 years ago
Petr Zemek
3767e7ba4f
Unify the uses of "urls" vs "URLs".
...
Use "URLs", which is more prevailing in the source code.
10 years ago
Petr Zemek
ec3d5800f2
Put two spaces before inline comments when there is only one space.
...
PEP8 (E261) suggests to use at least two spaces before inline comments.
10 years ago
Markus Unterwaditzer
0a7cc2b113
Fix typo
10 years ago
Markus Unterwaditzer
7183aefd62
Document building protocol-relative URLs
...
https://github.com/mitsuhiko/werkzeug/pull/528
10 years ago
Markus Unterwaditzer
b49074eb6b
Add documentation about url_for's default scheme
...
Fix #1129
11 years ago
Carlos E. Garcia
52fa195d45
few mispelling errors
11 years ago
Armin Ronacher
d4b3d16c14
Better support for namespace packages.
11 years ago
Armin Ronacher
a293b99b21
Fixed the last changeset.
11 years ago
Armin Ronacher
9554844e2a
Added workaround for Python 3.3's frozen loader
11 years ago
Armin Ronacher
76e2f9cd03
Fixed send_from_directory not rebasing to the root path. This fixes #921
11 years ago
Armin Ronacher
2506c0b9a9
Fixed sending etags for file streams with a name. This fixes #930 .
11 years ago
Daniel Neuhäuser
52098e1e4f
Happy New Year 2014
11 years ago
Zachary Wright Heller
5addabfbdd
Fix typo in helpers.py
11 years ago
John Hobbs
e31a2a80ec
Update url_for documentation
...
Previous documentation referenced a non-existent property on the Flask
object called "build_error_handler".
This should actually reference Flask.url_build_error_handlers.
11 years ago
Daniel Neuhäuser
94f4360137
Explain is_package AttributeError in find_package
...
When a PEP 302 import hook is used that doesn't implement .is_package()
an AttributeError is raised. This looks like a bug in Flask. This change
fixes that problem in the sense that it explains, that the
AttributeError is intentional.
12 years ago
Armin Ronacher
0190b770a1
Removed a bunch of code from _compat
12 years ago
Armin Ronacher
9ae8487330
Fixed a broekn testcase
12 years ago
Armin Ronacher
47572c5b40
Set the content length automatically before calling wrap_file
12 years ago
Daniel Neuhäuser
404265110a
Always return a list from get_flashed_messages
12 years ago
Thomas Waldmann
13cc69911c
fix typos
12 years ago
Thomas Waldmann
96b8ffbb29
always import from ._compat
12 years ago
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
12 years ago
Daniel Neuhäuser
a0801719f8
Remove six dependency
12 years ago
Thomas Waldmann
e1d356fb71
ported some more stuff to py 3.3
...
removed init_jinja_globals hack from app.py after consulting mitsuhiko
(didn't work on py 3.3 "as is")
removed with_statement future imports, not needed any more
needs more work on 2.7 as well as on 3.3
12 years ago
Thomas Waldmann
dcd052366b
python-modernize automated changes: fix_next
12 years ago
Thomas Waldmann
6caaa8a527
automated change using python-modernize: use 'as' in except
12 years ago
Paulo Poiati
b2aae044ca
Flash messages signals
...
If we send a signal when a template is rendered why not when a message
is flashed? One real world use case is in tests, this signal should make
flash messages expectation easier to implement.
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
Markus Unterwaditzer
2b30900e2c
Fix #623
12 years ago