-
Notifications
You must be signed in to change notification settings - Fork 17
/
TODO
62 lines (48 loc) · 1.7 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
TODO
====
Testing Docs
------------
- Add a page to the wiki about testing
- Uggedal's recipe: http://www.tipfy.org/paste/view/753812
Ideas to consider from webapp2
------------------------------
Just a bunch of ideas that could be ported to tipfy, but not necessarily will:
- Exception handling:
- Tipfy.error_handlers: dictionay mapping status codes to RequestHandler
classes.
- RequestHandler.handle_exception(): re-raises the exception by default, but
can be used in extended classes to handle an exception raised during
RequestHandler.__call__().
- Deprecate handle_exception middleware.
- Add RequestHandler.abort() and RequestHandler.error().
- Tipfy.run(): runs the app using google.appengine.ext.webapp.util.run_wsgi_app
or run_bare_wsgi_app.
- Full list of new methods for RequestHandler:
- __call__()
- abort()
- error()
- get_config()
- handle_exception()
- redirect()
- redirect_to()
- url_for()
- Add a router object to the WSGI app for the match/dispatch logic.
webapp2 ideas already implemented
---------------------------------
- Added RequestHandler.__call__(), deprecate RequestHandler.dispatch().
- Moved get_config() logic to Config.get_or_load(). Keep get_config() in app
as a convenience.
- Added RequestHandler methods:
- __call__()
- abort()
- get_config()
- redirect().
- redirect_to().
tipfy.ext.auth
--------------
- Sylvain_ on IRC: if you want to add Oauth2 (Facebook) authentication, you
can use this file : http://github.com/joerussbowman/tornado/blob/master/tornado/auth.py
tipfy.ext.ui?
-------------
- Consider the idea of a general purpose extension for UI components.
See http://github.com/facebook/tornado/blob/master/tornado/web.py#L1388