예제 #1
0
 def validateprocesseddataset(self, procdataset):
     if lexicon.processeddataset(procdataset):
         dslist = popCommonDB.getProcessedDataSetList(DBUSER)
         dslist = map(lambda x: x["COLLNAME"], dslist)
         if procdataset in dslist:
             return True
     raise Paramvalidationexception('processeddataset', 'param must be a valid processed dataset name')
예제 #2
0
 def validateprocesseddataset(self, procdataset):
     if lexicon.processeddataset(procdataset):
         dslist = popCommonDB.getProcessedDataSetList(DBUSER)
         dslist = map(lambda x: x["COLLNAME"], dslist)
         if procdataset in dslist:
             return True
     raise Paramvalidationexception(
         'processeddataset', 'param must be a valid processed dataset name')
예제 #3
0
def processedDataSets(request):
    data = popCommonDB.getProcessedDataSetList(DBUSER)
    jdata = {'DATA': data}
    jsondata = json.dumps(jdata)
    return HttpResponse(jsondata)