Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Make JSONService more easily extensible #697

Open
pyjsorg opened this Issue Apr 27, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

pyjsorg commented Apr 27, 2012

[copied from Trac -- originally submitted by tv@beamnet.de]

Maybe it would be worthwile to make JSONService (and thus JSONProxy) more extensible by
replacing the hardcoded "JSONResponseTextHandler(request_info)" in sendRequest (imagine
underscores) by "self.makeTextHandler()(requestinfo)" and having a method makeTextHandler
return JsonResponseTextHandler.

This way one can derive JSONService/JSONProxy in a way to have own response text handler without
having to copy and paste the whole method. This is a bit clumsy, not because the method is terribly
complicated, but because it has lots of external dependencies.

Original issue: http://code.google.com/p/pyjamas/issues/detail?id=19 (March 14, 2007 09:13:26)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment