Commit Graph

46 Commits

Author SHA1 Message Date
Armin Ronacher 5144d3b65a Merge branch 'master' into module-support 2010-04-24 17:47:24 +02:00
Armin Ronacher c0a9f5d0c4 Documentation update for the flask module support. 2010-04-24 17:35:25 +02:00
Armin Ronacher 67f4b0f315 Modules are now instanciated with the package name.
This makes it possible to load resources from the folder the module is
located in.
2010-04-24 17:07:16 +02:00
Armin Ronacher 2f181e1949 Removed unused package_name attribute 2010-04-23 17:16:59 +02:00
Armin Ronacher 5c52fe980e Added request/response processing based on modules. 2010-04-23 17:10:22 +02:00
Armin Ronacher e0148a00c0 Basic module support is working, but does not look very nice. 2010-04-23 17:01:20 +02:00
Armin Ronacher 444e642531 extended URL generation 2010-04-23 16:44:49 +02:00
Armin Ronacher a862ead5f2 Warn on None responses. 2010-04-23 16:30:04 +02:00
Armin Ronacher 88f671aaae Another try for #12 2010-04-23 16:04:54 +02:00
florentx dbe0df756b Use setdefault() because it sets session.modified correctly. 2010-04-21 16:36:20 +08:00
florentx 3eacc1d068 Use a tuple to store _flashes, and simplify the flask.Request class. 2010-04-21 16:36:19 +08:00
florentx f014ce29a7 Fix a doc oversight, and revert 5876a8fd. 2010-04-21 16:36:19 +08:00
Armin Ronacher 00f87f679c flask uses 127.0.0.1 as host by default now. stupid chrome. 2010-04-20 21:44:52 +02:00
Armin Ronacher af3b73f70d Tiny refactoring 2010-04-20 19:03:18 +02:00
florentx 75057bb411 Slightly faster _tojson_filter. 2010-04-20 18:44:54 +02:00
florentx 3c821a0fa4 Fix typos and remove unused import. 2010-04-20 18:40:58 +02:00
Armin Ronacher 9f6bc93e4d Fixed XSS problem by escaping all slashes in JSON.
This also probes simplejson first to figure out if it escapes slashes
which it did in earlier versions.
2010-04-20 15:12:16 +02:00
Armin Ronacher 3a1e518657 Fixed typo and added AUTHORS file and license text to docs. 2010-04-20 13:29:54 +02:00
Armin Ronacher 715f64d2af Some more documentation updates. 2010-04-20 13:01:10 +02:00
Armin Ronacher 06ec917dde Only escape backslashes if they follow "<" in JSON dumping for
templates.
2010-04-19 23:54:38 +02:00
Armin Ronacher 95750b3287 Documented some routing converter possibilities. 2010-04-19 23:49:02 +02:00
cgrinds 5acc491c94 Refactored the @route decorator to use the new add_url_rule method.
Tagged add_url_rule with versionadded of 0.2
2010-04-20 01:33:12 +08:00
unknown 3088a9371e Make it easier to associate a rule, endpoint and view_function
This resolves http://github.com/mitsuhiko/flask/issues/issue/11
2010-04-20 01:33:12 +08:00
Armin Ronacher ade490514d Fixed a security problem caused by changed simplejson semantics.
Notice: this was never in a release version of Flask.
2010-04-19 18:51:04 +02:00
Armin Ronacher 6e2be6a0b3 Added JSON Support and started working on jQuery docs 2010-04-19 15:39:07 +02:00
Armin Ronacher 0770f5c637 Removed two unused imports. 2010-04-18 23:37:03 +02:00
Armin Ronacher 190059c8f0 Added support for macro pulling and documented certain design decisions. 2010-04-18 15:44:06 +02:00
Armin Ronacher 63593d281b removed unused import 2010-04-18 14:39:27 +02:00
Armin Ronacher 0b9c2b5eb1 removed refactoring leftover 2010-04-17 14:32:52 +02:00
Armin Ronacher 5310fc3822 Session falls back to a dummy object now if secret_key is missing.
This makes it possible to still read-only access the empty session but
requires the secret key to be set for write access.  The error message
raised explains that.  This closes #10.
2010-04-17 14:10:47 +02:00
Armin Ronacher fb2d2e446b request_init -> before_request and request_shutdown -> after_request
This fixes #9.
2010-04-16 11:03:16 +02:00
Armin Ronacher 7b5015010b Preserve the request context in debug mode.
This makes it possible to access request information in the interactive
debugger.  Closes #8.
2010-04-16 02:27:37 +02:00
Armin Ronacher 40e0024d7b Added screenshot of the debugger to Flask docs. Flask now runs from the
shell again.
2010-04-16 02:14:54 +02:00
Armin Ronacher 1d8432ebfd Can't believe I forgot that future import. 2010-04-14 17:08:38 +02:00
Armin Ronacher 2d9bb69272 Flask now runs without the presence of pkg_resources as well. 2010-04-14 15:16:38 +02:00
Armin Ronacher ca520fb7e4 Static files are active in the WSGI app now, not just the server. 2010-04-14 14:11:00 +02:00
Armin Ronacher a01e8b49ca Fixed a documentation error and implemented template context processors. 2010-04-12 19:52:18 +02:00
Armin Ronacher 03148dba6b Added testing documentation 2010-04-11 19:18:40 +02:00
Armin Ronacher f2dc38cda6 Added tests for minitwit. Testing with Flask is awesome 2010-04-11 18:45:06 +02:00
Armin Ronacher 05f36c7f7e Heavily improved documentation 2010-04-11 02:20:10 +02:00
Armin Ronacher 3d719f35f5 Added docs, fixed some bugs I introduced last commit 2010-04-10 15:49:15 +02:00
Armin Ronacher 7d6b8e9ab3 Documented non-decorator uses of registation. 2010-04-09 13:56:47 +02:00
Armin Ronacher 4aa76212d1 Updated documentation. Starting to look pretty good 2010-04-09 01:32:39 +02:00
Armin Ronacher 3b36bef2e6 Improved documentation, added a contextmanager for request binding 2010-04-08 19:03:15 +02:00
Armin Ronacher 4ec7d2a0d8 Started working on documentation.
So far just the stable parts :)
2010-04-06 16:02:14 +02:00
Armin Ronacher 33850c0ebd Initial checkin of stuff that exists so far. 2010-04-06 13:12:57 +02:00