Beispiel #1
0
 def __init__(self, db, setup, extraArgs=None):
     DBUtils.__init__(self, db, setup)
     if type(extraArgs) == types.DictType:
         self._extraArgs = extraArgs
     else:
         self._extraArgs = {}
     reportsRevMap = {}
     for attr in dir(self):
         if attr.find("_report") == 0:
             if attr.find('Name', len(attr) - 4) == len(attr) - 4:
                 reportId = attr[7:-4]
                 reportName = getattr(self, attr)
                 reportsRevMap[reportId] = reportName
             else:
                 reportId = attr[7:]
                 if reportId not in reportsRevMap:
                     reportsRevMap[reportId] = reportId
     self.__reportNameMapping = {}
     for rId in reportsRevMap:
         self.__reportNameMapping[reportsRevMap[rId]] = rId
Beispiel #2
0
 def __init__( self, db, setup, extraArgs = None ):
   DBUtils.__init__( self, db, setup )
   if type( extraArgs ) == types.DictType:
     self._extraArgs = extraArgs
   else:
     self._extraArgs = {}
   reportsRevMap = {}
   for attr in dir( self ):
     if attr.find( "_report" ) == 0:
       if attr.find( 'Name', len( attr ) - 4 ) == len( attr ) - 4:
         reportId = attr[ 7 :-4 ]
         reportName = getattr( self, attr )
         reportsRevMap[ reportId ] = reportName
       else:
         reportId = attr[ 7: ]
         if reportId not in reportsRevMap:
           reportsRevMap[ reportId ] = reportId
   self.__reportNameMapping = {}
   for rId in reportsRevMap:
     self.__reportNameMapping[ reportsRevMap[ rId ] ] = rId
Beispiel #3
0
 def __init__(self, db, setup):
     DBUtils.__init__(self, db, setup)
Beispiel #4
0
 def __init__( self, db, setup ):
   DBUtils.__init__( self, db, setup )