From 9e118c95e9ce6c86e01fadfef52ccfa86100ceba Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 1 Oct 2001 22:49:44 +0000 Subject: DumperSwitchboard: New class to provide a public interface for reading .db files, and to allow argument-less construction. This is used by bin/dumpdb. --- Mailman/Queue/Switchboard.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Mailman/Queue') diff --git a/Mailman/Queue/Switchboard.py b/Mailman/Queue/Switchboard.py index f2a411d15..f0714dd80 100644 --- a/Mailman/Queue/Switchboard.py +++ b/Mailman/Queue/Switchboard.py @@ -303,3 +303,13 @@ else: syslog('error', 'Undefined metadata format: %d (using marshals)', mm_cfg.METADATA_FORMAT) Switchboard = MarshalSwitchboard + + + +# For bin/dumpdb +class DumperSwitchboard(Switchboard): + def __init__(self): + pass + + def read(self, filename): + return self._ext_read(filename) -- cgit v1.3.1