SourceForge Logo Python Documentation  
Home


Designer documentation


Python documentation

1. Inner workings
2. Python API
3. DataSource
4. Types and exceptions


Download


Credits


Contact


Python API

Warning: the API is not set in stone, and will most likely change a gazillion times.

AHTS uses a template-driven data-system, not a program driven.

To write the template, you can use the utility function ahts.write:

   def write(templatename, datasource, templateroot='.', 
             outputfile=sys.stdout, trycached=0): 

where

templatename:
is the name of the template you want to write,
datasource:
is an object which provides the data (see next section).
templateroot:
the directory where AHTS searches for included and master templates.
outputfile:
where the output should be written. This should be a file-object.
  $Id: api.tml,v 1.1 2001/04/09 22:36:19 benderydt Exp $