Armin Ronacher
2866ccda1f
Switch to explicit Werkzeug imports
14 years ago
Ron DuPlain
57d9a2a118
Import with statement in helpers.py, #264 .
14 years ago
Armin Ronacher
1e7577578f
Expanded url_for docstring for blueprints
14 years ago
Armin Ronacher
abe1378cae
Chnaged a bunch of behavior in blueprints for it to be more flexible. Improved backwards compat.
14 years ago
Armin Ronacher
6dae36f94d
Started work on an upgrade script for blueprints
14 years ago
Simon Sapin
8017febac4
Don't fail for unicode filenames with send_file(add_etags=True)
14 years ago
Armin Ronacher
4d6cd1a390
URL building should work in theory
14 years ago
Armin Ronacher
7a08331ac0
Latest iteration of the blueprint code. Far from being done
14 years ago
Sharoon Thomas
57920a5808
Prevent pop if flashes not in session to avoid modification to session fixes #227
14 years ago
Armin Ronacher
017117778e
Document that None skips in query strings. This fixes #224
14 years ago
Armin Ronacher
e774e3a69e
Switch params and example
14 years ago
Armin Ronacher
d8fcd4260e
Whitespace normalization
14 years ago
Simon Sapin
7ed3196e8d
Add safe_join: returns the filename used by send_from_directory.
...
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
14 years ago
Armin Ronacher
0ecc686372
Fixed a typo
14 years ago
Armin Ronacher
5910ef8a43
Lock loader creation
14 years ago
Armin Ronacher
0da56d7f5c
deprecated init_jinja_globals
14 years ago
Armin Ronacher
0bf777ed81
Do not use Date, use Last-Modified. This fixes #164
14 years ago
Dag Odenhall
4a45345fc4
Fix typo in send_file docs
...
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
14 years ago
Ivo Danihelka
07688d7b93
Fixed 'schemal' doc typo.
...
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
14 years ago
Armin Ronacher
ed70b42798
Make sure that windows servers do not allow downloading arbitrary files
14 years ago
Georg Brandl
858806da69
Hint for positioning file pointer correctly before calling send_file().
...
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
14 years ago
Armin Ronacher
fda14678c0
Deprecated send_file etag support and mimetype guessing for file-like objects. This fixes #104
15 years ago
jgraeme
549af62290
Fix some typos in the docstrings
15 years ago
Stephane Wirtel
801918603c
Remove an unused function
15 years ago
Armin Ronacher
fee5bdafe8
Code cleanup
15 years ago
Armin Ronacher
90b8df3e4c
Fixed paren in docstring
15 years ago
Armin Ronacher
6fc1492357
Added make_response
15 years ago
Armin Ronacher
f5b8c08284
endpoint is optional for modules. This fixes #86
15 years ago
Armin Ronacher
85ff63c32e
Emit correct date. In theory
15 years ago
Armin Ronacher
ed16ae2183
Always register URL rules. This fixes #81
15 years ago
Armin Ronacher
5e1b1030e8
Added support for automagic OPTIONS
15 years ago
Thomas Schranz
0198313a22
added workaround for json on Google AppEngine
...
Google AppEngine unfortunately does not offer json/simplejson where
we would expect it to be, but since they do offer django and django
comes with simplejson as a frozen dependency, we can import it
from there.
prior art:
http://github.com/facebook/python-sdk/blob/master/src/facebook.py#L50
15 years ago
Armin Ronacher
c34b03e9a6
Documented send_from_directory
15 years ago
Armin Ronacher
ac13deff40
Re-added support for folder with static files, refactored static file sending
15 years ago
Armin Ronacher
b7109865a3
Removed circular dependency by going over a proxy. This is the better solution anyway
15 years ago
Armin Ronacher
8945a97a42
fixed possible security problem in module branch
15 years ago
Armin Ronacher
51a89bf35e
Restored 2.5 compatibility and actual fix for the json problem
15 years ago
Armin Ronacher
80eb6cfffc
Switched to relative imports in the package
15 years ago
Armin Ronacher
2b00ec4017
Small cleanups
15 years ago
Armin Ronacher
a3c9494f67
Moved templating stuff into a separate module
15 years ago
Armin Ronacher
a38dcd5e2b
Added support for loading templates from modules
15 years ago
Armin Ronacher
15012af700
Refactored static folder registration
15 years ago
Armin Ronacher
fedc06c295
dropped pkg_resources
15 years ago
Armin Ronacher
532347d6ad
phased out shared data middleware in flask for send_file
15 years ago
Armin Ronacher
d0c6ad7d28
Added support for conditional responses to send_file
15 years ago
Armin Ronacher
4f8ee8f129
Added missing comments, fixed setup.py and made tests pass
15 years ago
Justin Quick
c4f64c1c47
working import layout for module
15 years ago
Justin Quick
d0dc89ea80
in with the new. i have the bits in places where i think they should be, now i just need to work on the import scheme layout
15 years ago