Package Jobber :: Package browser :: Module jobs
[hide private]
[frames] | no frames]

Source Code for Module Jobber.browser.jobs

 1  ########################################################################### 
 2  # 
 3  # This program is part of Zenoss Core, an open source monitoring platform. 
 4  # Copyright (C) 2009, Zenoss Inc. 
 5  # 
 6  # This program is free software; you can redistribute it and/or modify it 
 7  # under the terms of the GNU General Public License version 2 as published by 
 8  # the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13   
14  from Products.Five.browser import BrowserView 
15   
16 -class ManageJobView(BrowserView):
17 """ 18 Provides a management API for jobs. 19 """
20 - def delete(self):
21 self.context.delete()
22
23 - def interrupt(self):
24 self.context.getJob().interrupt()
25