gnue
[Top][All Lists]
Advanced

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

GNUe Reports: Help wanted with report-filters.conf


From: Michael Goebel
Subject: GNUe Reports: Help wanted with report-filters.conf
Date: Thu, 29 Aug 2002 11:10:45 +1200

Version 0.0.1 and 0.0.2a (cvs snapshot 29/07/02) have the following
problem:

> gnue-reports zip-by-state.grd
/usr/local/gnue/etc/report-filters.conf
The file cannot be parsed. ConfigParser.ParsingError :: File contains
parsing errors: <???>
        [line 10]: '[simple:text]\012'
        [line 17]: '[simple:html]\012'
        [line 24]: '[simple:csv]\012'
        [line 38]: '[mailmerge:demo.rtf]\012'
DB000: Traceback (most recent call last):
DB000:   File "/usr/local/bin/gnue-reports", line 43, in ?
DB000:     GRRun().run()
DB000:   File "/usr/local/gnue/lib/python/gnue/reports/GRRun.py", line
215, in run
DB000:     omitGNUeXML=self.OPTIONS["exclude_xml"])
DB000:   File "/usr/local/gnue/lib/python/gnue/reports/GREngine.py",
line 57, in processReport
DB000:     self.filters = GRFilters.GRFilters()
DB000:   File "/usr/local/gnue/lib/python/gnue/reports/GRFilters.py",
line 45, in __init__
DB000:     self._config = GRFilterConfig()
DB000:   File "/usr/local/gnue/lib/python/gnue/reports/GRFilters.py",
line 89, in __init__
DB000:     self.readConfig(location)
DB000:   File "/usr/local/gnue/lib/python/gnue/reports/GRFilters.py",
line 114, in readConfig
DB000:     raise InvalidFormatError, 'The file cannot be parsed.'
DB000: NameError: There is no variable named 'InvalidFormatError'     

The report-filters.conf file is an exact copy of
sample.report-filters.conf.

The raise in (GRFilters.py, line 114, in readConfig) is actually
triggered by:

DB000:   File "/usr/local/gnue/lib/python/gnue/reports/GRFilters.py",
line 89, in __init__
DB000:     self.readConfig(location)
DB000:   File "/usr/local/gnue/lib/python/gnue/reports/GRFilters.py",
line 101, in readConfig
DB000:     self._parser.readfp(fileHandle)
DB000:   File "/usr/lib/python2.0/ConfigParser.py", line 250, in readfp
DB000:     self.__read(fp, filename)
DB000:   File "/usr/lib/python2.0/ConfigParser.py", line 469, in __read
DB000:     raise e

Now, in ConfigParser.py, the regular expression for section headers is
defined as:

    SECTCRE = re.compile(
        r'\['                                 # [
        r'(?P<header>[-\w_.*,(){} ]+)'        # a lot of stuff found by
IvL
        r'\]'                                 # ]
        )                               

which does not seem to allow for ':' in section header names ???
                                                                      
What am I being stupid about ? 
And, perhaps more importantly, what do I have to do to get reports to
work ?

Thanks a lot,
Michael
get those nice reports




reply via email to

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