minor fixes in the send()/execute() chain on the Agent base classes
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2490 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									922ede26b3
								
							
						
					
					
						commit
						8ec8258a52
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -44,7 +44,10 @@ class Agent(object): | |||
|         self.config = master.config | ||||
|         self.logger = master.logger | ||||
| 
 | ||||
|     def execute(self, job, params=None): | ||||
|     def send(self, job): | ||||
|         self.execute(job) | ||||
| 
 | ||||
|     def execute(self, job): | ||||
|         pass | ||||
| 
 | ||||
|     def log(self, job, result='OK'): | ||||
|  | @ -91,9 +94,6 @@ class Master(Agent): | |||
| 
 | ||||
| class SampleAgent(Agent): | ||||
| 
 | ||||
|     def send(self, job): | ||||
|         self.execute(job) | ||||
| 
 | ||||
|     def execute(self, job): | ||||
|         print 'Job %s on agent %s has been executed.' % (job.identifier, self.name) | ||||
|         self.log(job) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm