import logging
import os
import sys
import json
import cherrypy
import time
import splunk
import splunk.bundle as bundle
import splunk.appserver.mrsparkle.controllers as controllers
import splunk.appserver.mrsparkle.lib.util as util
from splunk.appserver.mrsparkle.lib.decorators import expose_page
from splunk.models.event_type import EventType
logger = logging.getLogger('splunk.appserver.mrsparkle.controllers.DutyReport')
class DutyReport(controllers.BaseController):
'''Module System Tutorial Setup Controller'''
@expose_page(must_login=True, methods=['GET'])
def showkkk(self, **kwargs):
return _("hello world!")
转载于:https://my.oschina.net/lantianbaiyun/blog/468234