Exemple #1
0
    def GET(self, path_str):
        ''' Return PROC data '''
        check_src_acl(web.ctx)

	path = '/proc/' + path_str
        check_proc_acl(web.ctx)

	data = read_path(path)
        return data 
Exemple #2
0
    def GET(self,path_str):
        ''' Handle GET requests for all else
            - Catch all
            - Node detail reporting
        '''
        check_src_acl(web.ctx)

        data = ''

        if path_str == 'platform':
            data = sys.platform
        else:
            data = "Hello @ /"

        return data