Permalink
Browse files

When there are no database postprocessing then make it a no-opt.

Signed-off-by: Rob Hudson <rob@tastybrew.com>
  • Loading branch information...
brosner authored and Rob Hudson committed Apr 8, 2009
1 parent 027a030 commit 5e5b40af1beac592d92895d9192473bb6a5fcaaf
Showing with 7 additions and 5 deletions.
  1. +7 −5 dumpy/dumper.py
@@ -170,15 +170,17 @@ def __init__(self, db):
def parse_config(self):
super(PostProcess, self).parse_config()
self.processors = self._get_option_value(self.config, 'database %s' % (self.db), 'postprocessing')
self.processors = self._get_option_value(self.config, 'database %s' % (self.db,), 'postprocessing')
def process(self, file):
self.parse_config()
processors = [p.strip() for p in self.processors.split(',')]
if self.processors:
processors = [p.strip() for p in self.processors.split(',')]
for processor in processors:
print processor #FIXME
file = globals()[processor](self.db).process(file)
for processor in processors:
print processor #FIXME
file = globals()[processor](self.db).process(file)
class Bzip(PostProcessBase):
"""

0 comments on commit 5e5b40a

Please sign in to comment.