Commit graph

69 commits

Author SHA1 Message Date
Armin Ronacher
307d1bc4e5 Added support for basic URL generation without request contexts. 2012-04-09 15:04:35 +01:00
Ron DuPlain
c93ea5551c Keep flashed message examples in one place. 2012-01-16 23:16:43 -05:00
Ron DuPlain
81010bf7af Add get_flashed_messages to CHANGES, expand docs. 2012-01-16 23:10:21 -05:00
Steven Osborn
fa069f94de Allow category filtering in get_flashed_messages to allow rending categories in separate html blocks 2012-01-16 22:45:42 -05:00
Ron DuPlain
1f20a11284 Fall back to imports w/exotic pkg loaders, #380.
Needs a test, which likely requires introducing a mock library.
2012-01-16 09:23:40 -05:00
Ron DuPlain
a3b30b7e3b Handle zip & interactive cases in module helpers. 2012-01-07 17:54:37 -05:00
Ron DuPlain
d16491145d Update module helpers to avoid Python imports.
This avoids errors in creating Flask instances where there are import
errors in the module or package matching the import name.  Those runtime
errors will be apparent to the user soon enough, but tools which build
Flask instances meta-programmatically benefit from a Flask which does
not __import__.
2012-01-07 17:52:38 -05:00
Armin Ronacher
f52e7a9dc9 Added support for _method to url_for() 2011-11-04 02:46:22 +01:00
Armin Ronacher
ebd7468807 Added a newline 2011-10-07 15:09:02 -04:00
Armin Ronacher
1759d8e4d8 Added support for anchor link generation. 2011-10-06 10:57:03 -04:00
Armin Ronacher
ee8417dac8 Late but 2010 -> 2011 in some files 2011-09-01 16:57:00 +02:00
Armin Ronacher
bb1567dae4 Explained why os.getcwd is used for path finding 2011-08-27 00:42:06 +02:00
Armin Ronacher
8340d3c9f5 Updated docstring on make_response 2011-08-25 21:49:50 +01:00
Armin Ronacher
1d6f86bc87 Updated docstring 2011-08-10 23:25:33 +02:00
Armin Ronacher
c3844d1102 Rename _get_package_path to get_root_path to avoid confusion 2011-08-10 23:21:43 +02:00
Armin Ronacher
b3aaf6d5ca Refactored package finding 2011-08-10 23:19:33 +02:00
Armin Ronacher
175d43b2f9 Instance paths are now moved into virtualenv/share/appname-instance if installed 2011-08-10 17:46:20 +02:00
Armin Ronacher
187cb80dcc Documented instance root 2011-08-10 13:55:57 +02:00
Dan Callahan
290925e133 Minor documentation typo / grammar fixes 2011-07-19 16:42:11 -05:00
Armin Ronacher
2866ccda1f Switch to explicit Werkzeug imports 2011-07-15 18:03:48 +02:00
Ron DuPlain
57d9a2a118 Import with statement in helpers.py, #264. 2011-06-28 12:00:06 -04:00
Armin Ronacher
1e7577578f Expanded url_for docstring for blueprints 2011-06-27 09:30:27 +02:00
Armin Ronacher
2d946b96a1 Merge branch 'master' into blueprints 2011-06-25 12:26:13 +02:00
Armin Ronacher
abe1378cae Chnaged a bunch of behavior in blueprints for it to be more flexible. Improved backwards compat. 2011-06-16 23:55:49 +02:00
Armin Ronacher
6dae36f94d Started work on an upgrade script for blueprints 2011-06-05 13:19:28 +02:00
Simon Sapin
8017febac4 Don't fail for unicode filenames with send_file(add_etags=True) 2011-05-30 15:06:32 +02:00
Armin Ronacher
4d6cd1a390 URL building should work in theory 2011-05-29 19:56:16 +02:00
Armin Ronacher
7a08331ac0 Latest iteration of the blueprint code. Far from being done 2011-05-29 15:54:58 +02:00
Armin Ronacher
673fa18e6d Merge branch 'new-request-dispatching' into blueprints 2011-05-28 15:14:07 +02:00
Sharoon Thomas
57920a5808 Prevent pop if flashes not in session to avoid modification to session fixes #227 2011-05-17 11:41:12 -04:00
Armin Ronacher
017117778e Document that None skips in query strings. This fixes #224 2011-04-25 16:02:35 +02:00
Armin Ronacher
e774e3a69e Switch params and example 2011-04-18 23:20:24 +02:00
Armin Ronacher
d8fcd4260e Whitespace normalization 2011-04-18 23:19:59 +02:00
Simon Sapin
7ed3196e8d Add safe_join: returns the filename used by send_from_directory.
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-04-18 16:48:12 +02:00
Armin Ronacher
0ecc686372 Fixed a typo 2011-04-17 19:03:06 +02:00
Armin Ronacher
5910ef8a43 Lock loader creation 2011-03-18 09:16:33 +01:00
Armin Ronacher
0da56d7f5c deprecated init_jinja_globals 2011-03-18 09:15:28 +01:00
Armin Ronacher
0bf777ed81 Do not use Date, use Last-Modified. This fixes #164 2011-02-05 17:41:02 +01:00
Dag Odenhall
4a45345fc4 Fix typo in send_file docs
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-01-20 16:45:49 +01:00
Ivo Danihelka
07688d7b93 Fixed 'schemal' doc typo.
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-01-16 14:29:56 +01:00
Armin Ronacher
ed70b42798 Make sure that windows servers do not allow downloading arbitrary files 2010-12-23 14:15:18 +01:00
Georg Brandl
858806da69 Hint for positioning file pointer correctly before calling send_file().
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2010-11-08 18:29:09 +01:00
Armin Ronacher
fda14678c0 Deprecated send_file etag support and mimetype guessing for file-like objects. This fixes #104 2010-08-07 13:36:39 +02:00
jgraeme
549af62290 Fix some typos in the docstrings 2010-08-03 18:07:41 +08:00
Stephane Wirtel
801918603c Remove an unused function 2010-07-30 05:55:10 +08:00
Armin Ronacher
fee5bdafe8 Code cleanup 2010-07-25 17:34:47 +02:00
Armin Ronacher
90b8df3e4c Fixed paren in docstring 2010-07-17 13:10:50 +02:00
Armin Ronacher
6fc1492357 Added make_response 2010-07-17 11:36:16 +02:00
Armin Ronacher
f5b8c08284 endpoint is optional for modules. This fixes #86 2010-07-15 14:35:02 +02:00
Armin Ronacher
85ff63c32e Emit correct date. In theory 2010-07-13 23:52:55 +02:00