コード例 #1
0
def init_form(app_id=None):
    if app_id:
        filename = '{0}/{0}.yaml'.format(app_id)

        api,_ = verifier.load_doc(filename, 'apps/')
        return render_template('form.html',api_doc=api, submit="/api/experiment", function_name="initExp", base_dir="/assistant/static")
    
    message = ('Welcome to the next.discovery system.\n '
               'Available apps {}'.format(', '.join(utils.get_supported_apps())))

    return render_template('raw.html',doc=message)
コード例 #2
0
ファイル: resource_manager.py プロジェクト: jattenberg/NEXT
    def get_app_ids(self):
        """
        Returns a list of all implemented app_id's

        Inputs: ::\n
            None

        Outputs: ::\n
            (list of strings) app_id_list : list containing all app_id's that are fully operational in the system 
        
        Usage: ::\n
            rm.get_app_ids()
        """
        return utils.get_supported_apps()
コード例 #3
0
ファイル: resource_manager.py プロジェクト: yazici/NEXT
    def get_app_ids(self):
        """
        Returns a list of all implemented app_id's

        Inputs: ::\n
            None

        Outputs: ::\n
            (list of strings) app_id_list : list containing all app_id's that are fully operational in the system

        Usage: ::\n
            rm.get_app_ids()
        """
        return utils.get_supported_apps()
コード例 #4
0
def docs(app_id=None,form="raw"):
    if app_id:
        filename = '{0}/myApp.yaml'.format(app_id)

        utils.debug_print(filename)
        api,blank,pretty = doc_gen.get_docs(filename,'apps/')
        
        if form == "pretty":
            return render_template('doc.html',doc_string=pretty, base_dir="/assistant/static")
        elif form == "blank":
            return render_template('raw.html',doc=blank)
        elif form == "raw":
            return render_template('raw.html',doc=api)

    message = ('Welcome to the next.discovery system.\n '
               'Available apps {}'.format(', '.join(utils.get_supported_apps())))

    return render_template('raw.html',doc=message)
コード例 #5
0
ファイル: home.py プロジェクト: ayonsn017/NEXT_Chem
def redirect_form():
    available_apps = utils.get_supported_apps()
    return render_template('home.html', available_apps=available_apps)