Skip to content
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

Plating Decorator #118

Merged
merged 55 commits into from
Aug 2, 2016
Merged

Plating Decorator #118

merged 55 commits into from
Aug 2, 2016

Conversation

glyph
Copy link
Member

@glyph glyph commented Jul 23, 2016

Fixes #89

@codecov-io
Copy link

codecov-io commented Jul 23, 2016

Current coverage is 95.07% (diff: 100%)

No coverage report found for master at c5caaac.

Powered by Codecov. Last update c5caaac...918adb2

glyph added 25 commits July 23, 2016 03:35
This will allow us to know the difference between a method that just
applies plating and a method that does content negotitaion in the
future, since the @routed version will know that it unambiguously gets a
'request'.
proper Accept-header based version should happen too, but this version
is simpler and we want it for browser-based inspection anyway
we want to be able to call straight through to these methods to assert
about their results with a minimum of HTTP shenanigans for easy testing.
while no new code is required to implement it, verify this important
property.
and it gets in the way of the flat renderer / slot namespace we're
trying to set up
@glyph
Copy link
Member Author

glyph commented Jul 31, 2016

(I still have some docs in the works to go with the example but I don't anticipate they'll change the interface much)

@glyph
Copy link
Member Author

glyph commented Aug 1, 2016

OK I think this is ready for a proper code review. This is at the upper end of the amount of code someone can review at a time, so I don't want to add more to it, but there are more things, that I will create tickets for, that this needs to be complete:

#120

I don't think we have any way to link to internal API docs yet.
@glyph
Copy link
Member Author

glyph commented Aug 1, 2016

Codecov's complaints are legit! I wonder why it wasn't reporting before.

@glyph
Copy link
Member Author

glyph commented Aug 1, 2016

Rendered docs are here if you want to read them (RTD doesn't seem to have a PR preview?):

https://glyph.im/blob/pr/twisted/klein/118/docs/html/introduction/1-gettingstarted.html#streamlined-apps-with-html-and-json

distinct content.

While just a little HTML might have been fine for the 90s, modern web apps
quickly - sometimes immediately - outgrow HTML though; soon you'll want some
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"though" is redundant with "while". I think I prefer:

While just a little HTML might have been fine for the 90s, modern web apps quickly - sometimes immediately - outgrow HTML; soon...

@markrwilliams
Copy link
Member

@glyph so far so good! I'd like to drive this around for a few days, but I don't see a reason not to merge this now.

@glyph glyph merged commit 4b2b1b1 into twisted:master Aug 2, 2016
@glyph glyph deleted the plating branch August 2, 2016 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants