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
Ron DuPlain
970de5e8b6
Add discussion to NoImportsTestCase.
13 years ago
Ron DuPlain
fde6e364a4
Update tests for new module helpers.
13 years ago
Ron DuPlain
a3b30b7e3b
Handle zip & interactive cases in module helpers.
13 years ago
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__.
13 years ago
Ron DuPlain
26a9c2079d
Add test to catch imports at Flask instantiation.
13 years ago
Armin Ronacher
c90858a95d
Added a branch to test functionality enabled by new test client
13 years ago
Armin Ronacher
9c8f138a42
Improved test coverage for the test client
13 years ago
Armin Ronacher
d628df6ab6
Store session after callbacks. This fixes #351
13 years ago
Priit Laes
9dd61eea6b
Added testcase for redirect and session keeparound bug
13 years ago
Armin Ronacher
7f4c12b335
Break up a circular dependency on shutdown
13 years ago
Armin Ronacher
f52e7a9dc9
Added support for _method to url_for()
13 years ago
Armin Ronacher
61a95196ac
Changed logic for debug level log settings
13 years ago
Armin Ronacher
ebd7468807
Added a newline
13 years ago
Armin Ronacher
1759d8e4d8
Added support for anchor link generation.
13 years ago
Armin Ronacher
b51fbdc8e0
Removed a newline
13 years ago
Armin Ronacher
0dd9dc37b6
Fixed an issue with an unused module for Python 2.5 (flask.session)
13 years ago
Armin Ronacher
766522cb58
Prepare for an 0.8.1 release
13 years ago
Armin Ronacher
3765cc2e9e
This is 0.9-dev
13 years ago
Armin Ronacher
d5e10e4685
Bump version number to 0.8
13 years ago
Armin Ronacher
95c4dcb4d5
Refactored flask.ext process to not swallow exceptions on weird Pythons.
13 years ago
Armin Ronacher
f01b654ac4
total_seconds -> seconds for 2.6 and earlier
13 years ago
Armin Ronacher
8da8a21b69
Moved the conversion thing into the ConfigAttribute.
13 years ago
Armin Ronacher
6dccf77546
PERMANENT_SESSION_LIFETIME can now be an integer. This fixes #310
13 years ago
Armin Ronacher
df1dd57045
Cleaned up url routing common docs. This fixes #279
13 years ago