Method Summary |
|
__init__ (self,
reader,
parser,
writer,
source,
source_class,
destination,
destination_class,
settings)
Initial setup. |
|
apply_transforms(self,
document)
|
|
get_settings (self,
usage,
description,
settings_spec,
**defaults)
Set and return default settings (overrides in defaults keyword
argument). |
|
process_command_line (self,
argv,
usage,
description,
settings_spec,
**defaults)
Pass an empty list to argv to avoid reading sys.argv (the
default). |
|
publish (self,
argv,
usage,
description,
settings_spec,
settings_overrides,
enable_exit)
Process command line options and arguments (if self.settings not
already set), run self.reader and then self.writer . |
|
set_components(self,
reader_name,
parser_name,
writer_name)
|
|
set_destination(self,
destination,
destination_path)
|
|
set_io(self,
source_path,
destination_path)
|
|
set_reader (self,
reader_name,
parser,
parser_name)
Set self.reader by name. |
|
set_source(self,
source,
source_path)
|
|
set_writer (self,
writer_name)
Set self.writer by name. |
|
setup_option_parser(self,
usage,
description,
settings_spec,
**defaults)
|