<s> from main . helper import * <EOL> class ShowStatus ( myRequestHandler ) : <EOL> @ web . removeslash <EOL> def get ( self ) : <EOL> result = { } <EOL> try : <EOL> self . db_get ( '<STR_LIT>' ) <EOL> self . json ( { <EOL> '<STR_LIT:result>' : True , <EOL> '<STR_LIT:time>' : round ( self . request . request_time ( ) , <NUM_LIT:3> ) <EOL> } ) <EOL> except Exception , e : <EOL> self . json ( { <EOL> '<STR_LIT:error>' : e , <EOL> '<STR_LIT:time>' : round ( self . request . request_time ( ) , <NUM_LIT:3> ) <EOL> } , <NUM_LIT> ) <EOL> handlers = [ <EOL> ( r'<STR_LIT>' , ShowStatus ) <EOL> ] </s>
