@service.jsonrpc
def list_apps():
 regex = re.compile('^\\w+$')
 apps = [f for f in os.listdir(apath(r=request)) if regex.match(f)]
 return apps

@ service . jsonrpc def list_apps ( ) : regex = re . compile ( '^\\w+$' ) apps = [ f for f in os . listdir ( apath ( r = request ) ) if regex . match ( f ) ] return apps
list apps in site .