def post(self): Q = self.request.get('Q') mu = self.request.get('mu') logging.info(mu) params = {"Q":Q, 'mu':mu} cloudid = pc.cloud(params) memcache.set(key='CID', value=cloudid) res = pc.cloud_res(cloudid) memcache.set(key='CID%s'%cloudid, value=res)
def longOnlyPrepare(self): params = {"params":"[1.3, 0.7, 0.8, 1.9, 1.2]"} self.cloudid = pc.cloud(params) return 0