示例#1
0
 def abort(self):
     
     if not self.flagFinished:
         task_upper=self.taskname.split()[0].upper()
         try:            
             gipsy.aborttask( task_upper)
         except:
             return
         self.log=self.log+"\ngipsy.aborttask(\"%s\")\n"%task_upper
示例#2
0
 def abort(self):
    
     if not self.flagFinished:
         #It is NOT possible return the log, since the form is already closed when this task is executed.
         self.log=self.log+"\ngipsy.aborttask(\"%s\")\n"%self.task
         try: 
             #The method gipsy.aborttask, also trigger the method finished,due to that the notifikeys are appended to the ID_POLL
             gipsy.aborttask(self.task)
         except:
             return
示例#3
0
 def taskrequest(self, cb):
     taskkey = gipsy.usertext(cb.key)
     
     if taskkey not in self.form.keys:
         self.form.addkey(taskkey)
         gipsy.KeyCallback(self.writekey, taskkey, task=cb.task)
         self.form.showError(gipsy.usertext('R_'+cb.notifykey, default=1, defval=''))
     else:
             
         self.form.showError(gipsy.usertext('R_'+cb.notifykey, default=1, defval=''))
         self.form.showStatus(gipsy.usertext('S_'+cb.notifykey, default=1, defval=''), wi="error")
         gipsy.aborttask( self.task)