def get(self, id):
        row = get_record_by_ID(User, id, "user")

        if row[0]["admin"] == True:
            return { 'status': True}

        return {'status': False}
 def get(self, id):
 	output = get_record_by_ID(LabPipelineTracing, id, "lab_pipeline_tracking")
     return {'data' : marshal(output, lab_pipeline_tracking_fields)}
 def get(self, id):
     output = get_record_by_ID(Taxa, id, "taxa")
     return {'data' : marshal(output, taxa_fields)}
Example #4
0
 def get(self, id):
     output = get_record_by_ID(Kits, id, "kits")
     return {'data': marshal(output, kit_fields)}
Example #5
0
 def get(self, id):
     output = get_record_by_ID(Samples, id, "samples")
     return {'data': marshal(output, sample_fields)}
 def get(self, id):
     output = get_record_by_ID(User, id, "user")
     return {'data' : marshal(output, user_fields)}
Example #7
0
 def get(self, id):
     output = get_record_by_ID(LabSampleLoading, id, "lab_sample_loading")
     return {'data': marshal(output, lab_sample_loading_fields)}
Example #8
0
 def get(self, id):
     output = get_record_by_ID(TaxonInfo, id, "taxon_info")
     return {'data' : marshal(output, taxon_info_fields)}
Example #9
0
 def get(self, id):
     output = get_record_by_ID(Experiments, id, "experiments")
     return {'data': marshal(output, experiment_fields)}
Example #10
0
 def get(self, id):
     output = get_record_by_ID(KitTypesQuestionsAnswers, id,
                               "kit_types_questions_answers")
     return {'data': marshal(output, kit_types_questions_answers_fields)}
Example #11
0
 def get(self, id):
     output = get_record_by_ID(ResultsTaxoncount, id, "results_taxoncount")
     return {'data': marshal(output, results_taxoncount_fields)}