Armin Ronacher
bcd00e5070
Fixed a typo
13 years ago
Armin Ronacher
d26af4fd6d
Fixed some smaller things in the docs
13 years ago
Armin Ronacher
cb54c462b8
Pass exc explicitly to the inner context.
13 years ago
Armin Ronacher
9bed20c07c
Added documentation for appcontext and teardown handlers
13 years ago
Armin Ronacher
34bbd3100b
Fixed a failing testcase
13 years ago
Armin Ronacher
cf1641e5be
Changed the implementation of returning tuples from functions
13 years ago
Armin Ronacher
0207e90155
Updated docs for the app context.
13 years ago
Armin Ronacher
f8f2e2dff4
Added more tests for the new stack behavior.
13 years ago
Armin Ronacher
307d1bc4e5
Added support for basic URL generation without request contexts.
13 years ago
Armin Ronacher
47288231fe
Implemented a separate application context.
13 years ago
Armin Ronacher
a1305973bf
Fixed a typo in a comment
13 years ago
jfinkels
91efb90fb3
Removed extra blank line to fix ReST formatted documentation string in wrappers.py. Should have gone with pull request #439 .
13 years ago
Ron DuPlain
0eb75b317b
Add notes on mutable values & sessions.
...
Using notes in 8445f0d939
13 years ago
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.
13 years ago
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.
13 years ago
Ron DuPlain
146088d580
Expand docs on send_file option hook, #433 .
13 years ago
Anton I. Sipos
71b351173b
Move JSONHTTPException and JSONBadRequest to new module flask.exceptions.
13 years ago
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
13 years ago
Ned Jackson Lovely
09370c3f1c
Clean up docs and review pull request #384
...
Spelunking through the issues at the PyCon sprints.
13 years ago
Christoph Heer
cb24646948
Add jsonp support inside of jsonify
13 years ago
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.
13 years ago
James Saryerwinnie
075b6b11c8
Fix issue 140
...
This allows for a view function to return something like:
jsonify(error="error msg"), 400
13 years ago
Jeffrey Finkelstein
9711fd4020
On JSON requests, the JSON response should have Content-Type: application/json and the body of the response should be a JSON object.
13 years ago
Thiago de Arruda
8445f0d939
Fixed assumption made on session implementations.
...
In the snippet 'session.setdefault(...).append(...)', it was being
assumed that changes made to mutable structures in the session are
are always in sync with the session object, which is not true for
session implementations that use a external storage for keeping their
keys/values.
13 years ago
Dave Shawley
8d7ca29a35
Cleaned up test case for issue #414 .
13 years ago
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.
13 years ago
Dmitry Shevchenko
0b3369355d
Allow loading template from iterable
13 years ago
FND
4aebc267bc
Hyphenate "class-based"
...
makes it more readable
13 years ago
Jeffrey Finkelstein
c5ebf9a97d
Added PATCH method to the list of HTTP method functions for use in the flask.views.MethodView class.
13 years ago
FND
2792dcf23e
simplified as_view documentation
...
in the process, rewrapped lines to 78 chars (the file's current maximum)
13 years ago
FND
76c1a1f722
fixed spelling of "instantiate"
...
while the interwebs suggest "instanciate" might be a valid spelling, it
seems quite uncommon and potentially irritating (to pedants like myself)
13 years ago
Ron DuPlain
b786eac557
Add test for limited imp loaders, #380 .
13 years ago
Ron DuPlain
56177bcbd1
Document app.testing=True for test client, #381 .
13 years ago
Ron DuPlain
2e5de98297
Use app.testing=True for asserts in messages test.
13 years ago
Ron DuPlain
49b77fbc7a
Add missing colons to versionadded.
13 years ago
Ron DuPlain
19d32cb172
Update Flask.run signature, note defaults.
13 years ago
Joe Esposito
46e7bc7083
In Flask.run, now when the host/port argument is None, it will use its default value.
13 years ago
Ron DuPlain
c93ea5551c
Keep flashed message examples in one place.
13 years ago
Ron DuPlain
81010bf7af
Add get_flashed_messages to CHANGES, expand docs.
13 years ago
Steven Osborn
fa069f94de
Allow category filtering in get_flashed_messages to allow rending categories in separate html blocks
13 years ago
Ron DuPlain
676b3a4c13
Check status code in test client or fail silently.
13 years ago
Ron DuPlain
b9907b4969
Expand get_flashed_messages tests.
...
Ready to pull request #336 .
http://github.com/mitsuhiko/flask/pull/336
13 years ago
Ron DuPlain
820d099e82
Add tests for template filter methods/decorators.
13 years ago
Ron DuPlain
ce4d589d5b
Add non-decorator template filter methods.
...
Suggested by @Poincare on GitHub, on @Reisen's pull request:
https://github.com/mitsuhiko/flask/pull/272
13 years ago
Reisen
2a4d3ef116
Added a template filter decorator to blueprints.
13 years ago
Kyle Wild
8532bd51a7
[docstring] Remove an extra `if` clause to clarify sentence
13 years ago
Kyle Wild
46651659c2
Fix a typo ("is"->"if") in the comments; clarify a bit
13 years ago
Priit Laes
a59cbd4f52
Minor grammar fix
13 years ago
Ron DuPlain
1f20a11284
Fall back to imports w/exotic pkg loaders, #380 .
...
Needs a test, which likely requires introducing a mock library.
13 years ago
Ron DuPlain
83189f20bf
Add .egg for zipimporter instance path test.
...
.gitignore contains '*.egg'
13 years ago