Commit graph

1113 commits

Author SHA1 Message Date
Jon Parise
bb99158c87 Remove an unused iteration variable.
We can just iterate over the namespace dictionary's keys here.  We
don't need its values.
2012-03-19 22:33:43 -07:00
Ron DuPlain
eac350d1e6 Merge remote branch 'njl/master'
Conflicts:
	docs/quickstart.rst
2012-03-13 19:27:24 -07:00
Ron DuPlain
d626787a34 Merge pull request #438 from garbados/improve_foreword
Improve foreword
2012-03-13 19:17:29 -07:00
Ron DuPlain
9601016157 Merge pull request #441 from wilsaj/docfix-route-converter-unicode-string
docfix: wrong converter name: unicode -> string  fixes #364
2012-03-13 17:00:35 -07:00
Ron DuPlain
a5d1cf415e Merge pull request #440 from jamesls/extension-docs
Reword the docs for writing a flask extension
2012-03-13 17:00:18 -07:00
Ron DuPlain
d94efc6db6 Expose send_file max-age as config value, #433.
Need to add the same hook in a Blueprint, but this is the first such
case where we need app.config in the Blueprint.
2012-03-13 16:34:16 -07:00
Ron DuPlain
146088d580 Expand docs on send_file option hook, #433. 2012-03-13 14:37:48 -07:00
Ron DuPlain
f4a31db9f6 Merge pull request #433 from dave-shawley/master
Introduced a method to adjust static file cache-control headers based on filename
2012-03-13 13:59:31 -07:00
Ron DuPlain
f7bb2b5f19 Merge pull request #430 from jamesls/issue140
Fix issue 140
2012-03-13 13:51:53 -07:00
Ron DuPlain
c1a2e3cf14 Add Rule #0 to extension development. 2012-03-13 13:41:03 -07:00
Ron DuPlain
3bf1750b5d Tighten quickstart deployment docs. 2012-03-13 12:12:47 -07:00
Ron DuPlain
1d1db80e06 Merge pull request #427 from kevinburke/fix-existing-tutorial
add heroku/deploy options to quickstart, and add clearer links in tutorial setup
2012-03-13 11:47:04 -07:00
Ron DuPlain
4e9b7867c9 Merge pull request #411 from PaulMcMillan/docs_fix
Remove redundant words from quickstart.
2012-03-13 11:43:13 -07:00
Max
8f568cfc19 Split foreword into two files; edited lots. 2012-03-12 17:12:55 -07:00
James Saryerwinnie
8d1546f8e6 Reword the docs for writing a flask extension
There was a minor bug in the example extension that's
been fixed.

I also updated the description of the fixed code accordingly, and
expanded on the usage of _request_ctx_stack.top for adding data
that should be accesible to view functions.

I verified that the existing code as is works as expected.
2012-03-12 16:28:39 -07:00
wilsaj
d4eb1af373 Merge branch 'docfix-route-converter-unicode-string' of github.com:wilsaj/flask into docfix-route-converter-unicode-string 2012-03-12 18:01:45 -05:00
wilsaj
a77938837c docfix: wrong converter name: unicode -> string fixes #364 2012-03-12 18:01:11 -05:00
wilsaj
756a5565ea docfix: wrong converter name: unicode -> string 2012-03-12 17:21:49 -05:00
Max
c78070d862 Wrapped paragraphs; changed some words. 2012-03-12 15:08:52 -07:00
Max
d8c2ec4cd8 Fixed linebreaks. 2012-03-12 15:03:26 -07:00
Max
74a72e86ad Changed some things in the foreward to diminish its discouragement. 2012-03-12 14:58:26 -07:00
Ned Jackson Lovely
68f93634de Second thoughts on mime type
After further review, changing the mime type on jsonp
responses from text/javascript to application/javascript,
with a hat-tip to
http://stackoverflow.com/questions/111302/best-content-type-to-serve-jsonp
2012-03-12 17:18:27 -04:00
Ned Jackson Lovely
27194a01d8 Fix typo in docs.
http://feedback.flask.pocoo.org/message/279
2012-03-12 16:02:53 -04:00
Ned Jackson Lovely
12544c3a8d Merge branch 'master' of git://github.com/mitsuhiko/flask 2012-03-12 15:27:41 -04:00
Ned Jackson Lovely
09370c3f1c Clean up docs and review pull request #384
Spelunking through the issues at the PyCon sprints.
2012-03-12 15:26:05 -04:00
Ron DuPlain
cb3d0b931d Merge pull request #436 from teebes/master
Specifying Python version metadata in setup
2012-03-12 11:34:07 -07:00
Ron DuPlain
561775cbf6 Merge pull request #435 from mattd/master
Doc grammar fix from pycon sprints.
2012-03-12 11:33:42 -07:00
Christoph Heer
cb24646948 Add jsonp support inside of jsonify 2012-03-12 14:27:35 -04:00
Thibaud Morel
8216e036e9 Specifying supported Python versions in setup.py metadata 2012-03-12 11:16:03 -07:00
Matt Dawson
2d237f3c53 Fix grammar in extension dev docs. 2012-03-12 10:57:00 -07:00
Dave Shawley
06b224676d Added _PackageBoundObject.get_static_file_options.
This method receives the name of a static file that is going to be served
up and generates a dict of options to use when serving the file.  The
default set is empty so code will fall back to the existing behavior if
the method is not overridden.

I needed this method to adjust the cache control headers for .js files that
one of my applications was statically serving.  The default expiration is
buried in an argument to send_file and is set to 12 hours.  There was no
good way to adjust this value previously.
2012-03-12 11:19:17 -04:00
Kevin Burke
2befab24c5 remove localtunnel things that were added to snippets 2012-03-11 23:17:40 -07:00
James Saryerwinnie
075b6b11c8 Fix issue 140
This allows for a view function to return something like:

    jsonify(error="error msg"), 400
2012-03-11 20:45:58 -07:00
Kevin Burke
605d0ee344 update links 2012-03-11 20:33:43 -07:00
Kevin Burke
6b9e6a5a52 add heroku/deploy options to quickstart, and add more clear links in tutorial setup. 2012-03-11 20:20:32 -07:00
Ron DuPlain
7ed3cba658 Split ebook build process into own make target. 2012-03-08 09:14:14 -08:00
Dave Shawley
8d7ca29a35 Cleaned up test case for issue #414. 2012-03-01 08:53:58 -05:00
Dave Shawley
76773e1d0a Fixed silent keyword arg to config.from_envvar.
The ``silent`` keyword argument to Config.from_envvar was not being honored
if the environment variable existed but the file that it mentioned did not.
The fix was simple - pass the keyword argument on to the underlying call to
``from_pyfile``.  I also noticed that the return value from ``from_pyfile``
was not being passed back so I fixed that as well.
2012-03-01 08:34:08 -05:00
Paul McMillan
b9f4e0bd9c Remove redundant words from quickstart. 2012-02-26 12:49:52 -08:00
awsum
20a3281209 Update docs/patterns/wtforms.rst 2012-02-25 15:29:13 -05:00
Andrew Ash
fc7fe62846 Update docs/errorhandling.rst 2012-02-25 15:29:13 -05:00
Ron DuPlain
fdad6713eb Add updates to render_template to CHANGES, #409. 2012-02-24 09:33:11 -05:00
Dmitry Shevchenko
0b3369355d Allow loading template from iterable 2012-02-24 00:46:20 -06:00
Ron DuPlain
04bb720d38 Fix Blueprint example with template_folder, #403. 2012-02-14 18:13:29 -05:00
Ron DuPlain
e070ede050 Use "." not "source" for shell sourcing.
Shell portability from mitsuhiko.
2012-02-07 10:42:25 -05:00
Kenneth Reitz
5e848176e5 typos and fixes 2012-02-06 21:05:51 -05:00
Kenneth Reitz
deb03da3ff Merge remote-tracking branch 'origin/pip' into pip 2012-02-06 21:04:13 -05:00
Kenneth Reitz
60f7e3a7b4 vent and no more . 2012-02-06 20:42:06 -05:00
Kenneth Reitz
73a8595335 vent and no more . 2012-02-06 20:41:13 -05:00
Kenneth Reitz
4a75198f36 pip and distribute installation 2012-02-06 20:29:14 -05:00