Package sabx10 :: Package utils :: Module tcx2sabx :: Class TcxProcessor
[hide private]
[frames] | no frames]

Class TcxProcessor

source code

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

Process a TCX file, pulling out all its point data for processing. Add in a uuid and title, then process it all through a jinja2 template. This class sub-classes TemplateProcessor to do most of the grunt work in handling command-line options and processing the jinja2 template.

Instance Methods [hide private]
 
__init__(self, template_file=None, man=None)
Add optparse options for the infile and the index.
source code
 
get_template_data(self)
Get the point data from the TCX file and save it in template_data.
source code

Inherited from templating.generic.TemplateProcessor: process, process_options, 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 optparse options for the infile and the index. Seed template_data with uuid.

Parameters:
  • template_file (string) - (optional) file name of template file
  • man (string) - (optional) extended program help
Overrides: object.__init__

get_template_data(self)

source code 

Get the point data from the TCX file and save it in template_data.

Overrides: templating.generic.TemplateProcessor.get_template_data