def run(self): self.status['running']=True str_name=gctrl.globalControl.uname str_email=gctrl.globalControl.email str_pwd=gctrl.globalControl.pword str_token=gctrl.globalControl.token try: self.status['tag']='正在进行高强度RC4加密...' efile=mrc.RC4_Encode_File(str_pwd,path) self.status['tag']='正在上传...' self.status['return_value']=mrc.upload(str_name,str_email,str_pwd,str_token,efile) except Exception,e: print 'MrUpload '+str(e) self.status['return_value']=205