<s> """<STR_LIT>""" <EOL> import os <EOL> import web <EOL> import socket <EOL> from karesansui . lib . rest import Rest , auth <EOL> from karesansui . lib . log . config import LogViewConfigParam <EOL> from karesansui . lib . const import LOG_VIEW_XML_FILE <EOL> class HostBy1Log ( Rest ) : <EOL> @ auth <EOL> def _GET ( self , * param , ** params ) : <EOL> host_id = self . chk_hostby1 ( param ) <EOL> if host_id is None : return web . notfound ( ) <EOL> self . view . host_id = host_id <EOL> config = LogViewConfigParam ( LOG_VIEW_XML_FILE ) <EOL> config . load_xml_config ( ) <EOL> self . view . apps = config . get_applications ( ) <EOL> return True <EOL> urls = ( '<STR_LIT>' , HostBy1Log , ) </s>
