Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Commit

Permalink
When there are no database postprocessing then make it a no-opt.
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Hudson <rob@tastybrew.com>
  • Loading branch information
brosner authored and Rob Hudson committed Apr 8, 2009
1 parent 027a030 commit 5e5b40a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions dumpy/dumper.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -170,15 +170,17 @@ def __init__(self, db):
def parse_config(self): def parse_config(self):
super(PostProcess, self).parse_config() 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): def process(self, file):
self.parse_config() 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: for processor in processors:
print processor #FIXME print processor #FIXME
file = globals()[processor](self.db).process(file) file = globals()[processor](self.db).process(file)


class Bzip(PostProcessBase): class Bzip(PostProcessBase):
""" """
Expand Down

0 comments on commit 5e5b40a

Please sign in to comment.