examples/data_binding/main.py
def get(self, *args, **kwargs):
        #: Render view for get request, view is cached for websocket
        """ Execute the correct handler depending on what is connecting. """
        if self.is_websocket():
            return super(DemoHandler, self).get(*args, **kwargs)
        else:
            #return tornado.web.RequestHandler.get(self, *args, **kwargs)
            self.write(self.view.render())
def get(self, *args, **kwargs):
        #: Render view for get request, view is cached for websocket
        if self.is_websocket():
            return super(DemoHandler, self).get(*args, **kwargs)
        else:
            #return tornado.web.RequestHandler.get(self, *args, **kwargs)
            self.write(self.view.render())
def get ( self , * args , * * kwargs ) : #: Render view for get request, view is cached for websocket if self . is_websocket ( ) : return super ( DemoHandler , self ) . get ( * args , * * kwargs ) else : #return tornado.web.RequestHandler.get(self, *args, **kwargs) self . write ( self . view . render ( ) )
Execute the correct handler depending on what is connecting.
Execute the correct handler depending on what is connecting .