ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/ResubmitterServer.py
Revision: 1.3
Committed: Wed Jun 10 11:40:52 2009 UTC (15 years, 10 months ago) by slacapra
Content type: text/x-python
Branch: MAIN
CVS Tags: CRAB_2_6_3_patch_2_pre1, CRAB_2_6_3_patch_1, CRAB_2_7_0_pre4, CRAB_2_7_0_pre3, CRAB_2_6_3, CRAB_2_6_3_pre5, CRAB_2_6_3_pre4, CRAB_2_6_3_pre3, CRAB_2_6_3_pre2, CRAB_2_7_0_pre2, CRAB_2_6_3_pre1, test_1, CRAB_2_7_0_pre1, CRAB_2_6_2, CRAB_2_6_2_pre2, CRAB_2_6_2_pre1, CRAB_2_6_1_pre4, CRAB_2_6_1_pre3, CRAB_2_6_1_pre2, CRAB_2_6_1_pre1, CRAB_2_6_1, CRAB_2_6_0, CRAB_2_6_0_pre14, CRAB_2_6_0_pre13, CRAB_2_6_0_pre12, CRAB_2_6_0_pre11, CRAB_2_6_0_pre10, CRAB_2_6_0_pre9, CRAB_2_6_0_pre8
Branch point for: CRAB_2_6_X_br
Changes since 1.2: +1 -1 lines
Log Message:
mods to use new filed "state" to check if action is allowed

File Contents

# User Rev Content
1 spiga 1.1 from SubmitterServer import SubmitterServer
2     from Resubmitter import Resubmitter
3     import common
4     from crab_util import *
5    
6     class ResubmitterServer(SubmitterServer, Resubmitter):
7     def __init__(self, cfg_params, jobs):
8     self.cfg_params = cfg_params
9    
10     nj_list = []
11 spiga 1.2
12     # get updated status from server
13     try:
14     from StatusServer import StatusServer
15     stat = StatusServer(self.cfg_params)
16     stat.resynchClientSide()
17     except:
18     pass
19    
20 slacapra 1.3 nj_list = self.checkAllowedJob(jobs,nj_list)
21 spiga 1.1
22     SubmitterServer.__init__(self, cfg_params, nj_list, 'range')
23    
24     return
25    
26