-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Views in Flask-style decorators (RouteTableDef) #2472
Comments
I was taking a look at that and looks hard to give a 100% of consistency between decorators and views. Likely the best way to give support for decorating views is creating a new ad-hoc method called routes = web.RouteTableDef()
@routes.view('/view')
class MyView(web.View):
async def get(self):
return await get_resp(self.request)
async def post(self):
return await post_resp(self.request) Thoughts @asvetlov @socketpair? |
Brilliant idea. |
Is anyone working on this ? |
AFAIK nobody. |
On my TODO, but too many things these days. If you are keen on work on it,
go ahead
El 14/12/2017 22:41, "Andrew Svetlov" <notifications@github.com> escribió:
… AFAIK nobody.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2472 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABK1iViO4vqGlFzRKWyoeNs6abeqVXpLks5tAZXwgaJpZM4QT7_R>
.
|
Ok I'll take care of it. |
Fixed by #2611 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
see #2471 (comment)
The text was updated successfully, but these errors were encountered: