示例#1
0
    def __get_context(self):
        context = {}
        result = {}

        context['resources'] = []
        # Important for UI, do not change key_file_id.
        context['resources'].append(dict(json="{'uuid':0, 'key_file_id':0}", uuid=0, name="Default (local resources)"))
        for resource in self.user_data.get_cluster_node_info():
            resource['json'] = json.dumps(resource)
            resource['name'] = 'Cluster: '+resource['username']+'@'+resource['ip']
            context['resources'].append(resource)
        context['selected'] = self.user_data.get_selected()
        logging.info("context['selected'] = {0}".format(context['selected']))
        context['initialData'] = json.dumps(ModelManager.getModels(self))
        context = dict(result, **context)
        # logging.debug("Parametersweep.py\n" + str(context))
        return context
示例#2
0
    def __get_context(self):
        context = {}
        result = {}

        context['resources'] = []
        # Important for UI, do not change key_file_id.
        context['resources'].append(
            dict(json="{'uuid':0, 'key_file_id':0}",
                 uuid=0,
                 name="Default (local resources)"))
        for resource in self.user_data.get_cluster_node_info():
            resource['json'] = json.dumps(resource)
            resource['name'] = 'Cluster: ' + resource[
                'username'] + '@' + resource['ip']
            context['resources'].append(resource)
        context['selected'] = self.user_data.get_selected()
        logging.info("context['selected'] = {0}".format(context['selected']))
        context['initialData'] = json.dumps(ModelManager.getModels(self))
        context = dict(result, **context)
        # logging.debug("Parametersweep.py\n" + str(context))
        return context
示例#3
0
 def get(self):
     self.render_response('parameter_sweep.html', **{ 'initialData' : json.dumps(ModelManager.getModels(self)) })
示例#4
0
 def get(self):
     self.render_response(
         'parameter_sweep.html',
         **{'initialData': json.dumps(ModelManager.getModels(self))})