I need to store the output of a get function of a request handler before running the tornado server from outside the application.
Example:-
class Test(RequestHandler):
def get:
print "safds"'
....
...
I need to call get function without tornado loop server from outside. Is it possible ? Is there any turnaround. Please help.
Thanks
If you happen to end up reading this question, I knew that I had to somehow create an instance of my handler to be able to call the
post
orget
function inside. After looking at theRequestHandler
's implementation, I came up with the following snippet: