def start_weibo_work(task): mdb = memdb() docname = 'weibo_'+task tasks = request.forms.get("tasks") mdb.push(docname,tasks) worker_status = mdb.dict_show('weibo') if worker_status != "BUSY": mdb.cleandoc(docname) if task == "followers": wf = weibofollowmanager().start() pass elif task = "miniblog": wm = weibominiblogmanager().start() pass
def __init__(self): self.result = RESULT_URL_PREFIX self.mdb = memdb() pass