commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/reports/src GRFilters.py


From: Jason Cater
Subject: gnue/reports/src GRFilters.py
Date: Thu, 11 Apr 2002 19:37:27 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     Jason Cater <address@hidden>    02/04/11 19:37:27

Modified files:
        reports/src    : GRFilters.py 

Log message:
        misc work on filters

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/reports/src/GRFilters.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnue/reports/src/GRFilters.py
diff -c gnue/reports/src/GRFilters.py:1.1 gnue/reports/src/GRFilters.py:1.2
*** gnue/reports/src/GRFilters.py:1.1   Sat Apr  6 20:20:36 2002
--- gnue/reports/src/GRFilters.py       Thu Apr 11 19:37:27 2002
***************
*** 46,51 ****
--- 46,52 ----
  class GRFilterConfig:
  
    def __init__(self):
+     self.mappings = []
      location = GConfig.get('filters','')
      if location:
        if location[0] != '/':
***************
*** 56,63 ****
  
  
  
    def readConfig(self,location):
-     global _OPTION
      self._parser = ConfigParser()
  
      GDebug.printMesg(1,'Filters Configuration File: "%s"' % location)
--- 57,65 ----
  
  
  
+ 
+ 
    def readConfig(self,location):
      self._parser = ConfigParser()
  
      GDebug.printMesg(1,'Filters Configuration File: "%s"' % location)
***************
*** 66,72 ****
  
      try:
        self._parser.readfp(fileHandle)
!       
        try:
          fileHandle.close()
        except AttributeError:
--- 68,74 ----
  
      try:
        self._parser.readfp(fileHandle)
! 
        try:
          fileHandle.close()
        except AttributeError:
***************
*** 80,86 ****
        print'The file cannot be parsed. %s :: %s' % (sys.exc_type, 
sys.exc_value)
        raise InvalidFormatError, 'The file cannot be parsed.'
  
!     for option in self._parser.options(self._application):
!       _OPTION[option] =  self._parser.get(self._application,option)
  
  
--- 82,89 ----
        print'The file cannot be parsed. %s :: %s' % (sys.exc_type, 
sys.exc_value)
        raise InvalidFormatError, 'The file cannot be parsed.'
  
! 
!     for option in self._parser.options('mappings'):
!       self.mappings[string.lower(option)] = 
self._parser.get('mappings',option)
  
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]