<s> from muntjac . application import Application <EOL> from muntjac . addon . invient . demo . invient_demo_win import InvientChartsDemoWin <EOL> from muntjac . terminal . gwt . server . http_servlet_request_listener import IHttpServletRequestListener <EOL> class InvientChartsDemoApp ( Application , IHttpServletRequestListener ) : <EOL> def __init__ ( self ) : <EOL> super ( InvientChartsDemoApp , self ) . __init__ ( ) <EOL> self . _isAppRunningOnGAE = None <EOL> def isAppRunningOnGAE ( self ) : <EOL> if self . _isAppRunningOnGAE is None : <EOL> return False <EOL> return self . _isAppRunningOnGAE <EOL> def init ( self ) : <EOL> self . setMainWindow ( InvientChartsDemoWin ( ) ) <EOL> self . getMainWindow ( ) . showNotification ( <EOL> '<STR_LIT>' ) <EOL> def onRequestStart ( self , request , response ) : <EOL> if self . _isAppRunningOnGAE is None : <EOL> self . _isAppRunningOnGAE = False <EOL> def onRequestEnd ( self , request , response ) : <EOL> pass <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> from muntjac . main import muntjac <EOL> from invient_demo_app_servlet import InvientChartsDemoAppServlet <EOL> muntjac ( InvientChartsDemoApp , nogui = True , forever = True , debug = True , <EOL> contextRoot = '<STR_LIT:.>' ) </s>
