Package sabx10 :: Package map :: Module map :: Class SabxProcessor
[hide private]
[frames] | no frames]

Class SabxProcessor

source code

                          object --+    
                                   |    
templating.generic.TemplateProcessor --+
                                       |
                                      SabxProcessor

Specialized TemplateProcessor to handle SABX files and turn them into Google Maps displayable maps.

Instance Methods [hide private]
 
__init__(self, template_file=None, man=None)
Add command-line options to set the input file and various directories the templates need to know about.
source code
 
process_options(self)
Save the dirs and setup for the input and output files.
source code
 
get_template_data(self)
Add all the extra-special goodness to the SABX data for our templates.
source code

Inherited from templating.generic.TemplateProcessor: process, process_template

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from templating.generic.TemplateProcessor: args, man, options, out_file, parser, template_data, template_file, template_path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, template_file=None, man=None)
(Constructor)

source code 

Add command-line options to set the input file and various directories the templates need to know about.

Parameters:
  • template_file (string) - name of template file to process
  • man (string) - man page text
Overrides: object.__init__

process_options(self)

source code 

Save the dirs and setup for the input and output files.

Parameters:
  • arg_count - count of non-optional command-line arguments expected
Raises:
  • NotEnoughArgsException - this exception is raised when there is no template file specified on the command-line
Overrides: templating.generic.TemplateProcessor.process_options

get_template_data(self)

source code 

Add all the extra-special goodness to the SABX data for our templates.

Overrides: templating.generic.TemplateProcessor.get_template_data