ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/DLSInfo.py
(Generate patch)

Comparing COMP/CRAB/python/DLSInfo.py (file contents):
Revision 1.8 by afanfani, Tue May 30 23:33:58 2006 UTC vs.
Revision 1.9 by afanfani, Thu Jun 1 11:11:17 2006 UTC

# Line 58 | Line 58 | class DLSNoReplicas(exceptions.Exception
58   ##############################################################################
59  
60   class DLSInfo:
61 <    def __init__(self, type):
61 >    def __init__(self, type, jobtype):
62          if type=="DLS_TYPE_DLI":
63 <           endpoint="lfc-cms-test.cern.ch/grid/cms/DLS/LFCProto"
63 >           if jobtype.count('orca')>0:
64 >             endpoint="lfc-cms-test.cern.ch/grid/cms/DLS/LFCProto"
65 >           else:  
66 >             endpoint="lfc-cms-test.cern.ch/grid/cms/DLS/LFC"
67             try:
68               import xml.dom.ext.reader
69             except:
# Line 80 | Line 83 | class DLSInfo:
83             msg = "DLS type %s not among the supported DLS ( DLS_TYPE_DLI and DLS_TYPE_MYSQL ) "%type
84             raise CrabException(msg)
85  
86 +        common.logger.debug(5,"DLS interface: %s Server %s"%(type,endpoint))      
87          try:
88            self.api = dlsClient.getDlsApi(dls_type=type,dls_endpoint=endpoint)
89          except dlsApi.DlsApiError, inst:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines