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

Comparing COMP/CRAB/python/DataDiscovery.py (file contents):
Revision 1.14 by slacapra, Wed Jan 17 18:17:58 2007 UTC vs.
Revision 1.15 by gutsche, Thu Feb 1 16:12:40 2007 UTC

# Line 5 | Line 5 | from DBSInfo import *
5   # ####################################
6   class DataDiscoveryError(exceptions.Exception):
7      def __init__(self, errorMessage):
8        exceptions.Exception.__init__(self, self.args)
8          self.args=errorMessage
9 +        exceptions.Exception.__init__(self, self.args)
10          pass
11  
12      def getErrorMessage(self):
# Line 16 | Line 16 | class DataDiscoveryError(exceptions.Exce
16   # ####################################
17   class NotExistingDatasetError(exceptions.Exception):
18      def __init__(self, errorMessage):
19        exceptions.Exception.__init__(self, self.args)
19          self.args=errorMessage
20 +        exceptions.Exception.__init__(self, self.args)
21          pass
22  
23      def getErrorMessage(self):
# Line 27 | Line 27 | class NotExistingDatasetError(exceptions
27   # ####################################
28   class NoDataTierinProvenanceError(exceptions.Exception):
29      def __init__(self, errorMessage):
30        exceptions.Exception.__init__(self, self.args)
30          self.args=errorMessage
31 +        exceptions.Exception.__init__(self, self.args)
32          pass
33  
34      def getErrorMessage(self):
# Line 38 | Line 38 | class NoDataTierinProvenanceError(except
38   # ####################################
39   # class to find and extact info from published data
40   class DataDiscovery:
41 <    def __init__(self, datasetPath, dataTiers, cfg_params):
41 >    def __init__(self, datasetPath, cfg_params):
42  
43   #       Attributes
44          self.datasetPath = datasetPath
45        self.dataTiers = dataTiers
45          self.cfg_params = cfg_params
46  
47          self.eventsPerBlock = {}  # DBS output: map fileblocks-events for collection
# Line 71 | Line 70 | class DataDiscovery:
70          dbs = DBSInfo(dbs_url, dbs_instance)
71          try:
72              self.datasets = dbs.getMatchingDatasets(self.datasetPath)
73 <        except dbsCgiApi.DbsCgiExecutionError, msg:
73 >        except DBS1API.dbsCgiApi.DbsCgiExecutionError, msg:
74              raise DataDiscoveryError(msg)
75          except DBSError, msg:
76              raise DataDiscoveryError(msg)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines