Table of Contents

Class: HTML qm/external/DocumentTemplate/DT_HTML.py

HTML Document Templates

HTML Document templates use HTML server-side-include syntax, rather than Python format-string syntax. Here's a simple example:

<!--#in results--> <!--#var name--> <!--#/in-->

HTML document templates quote HTML tags in source when the template is converted to a string. This is handy when templates are inserted into HTML editing forms.

Base Classes   
DT_String.String
Methods   
SubTemplate
__str__
manage_edit
manage_editForm
management_interface
parseTag
quotedHTML
tagre
varExtra
  SubTemplate 
SubTemplate ( self,  name )

  __str__ 
__str__ ( self )

  manage_edit 
manage_edit (
        self,
        data,
        REQUEST=None,
        )

edit a template

  manage_editForm 
manage_editForm (
        self,
        URL1,
        REQUEST,
        )

Display doc template editing form

  management_interface 
management_interface ( self )

Hook to allow public execution of management interface with everything else private.

  parseTag 
parseTag (
        self,
        tagre,
        command=None,
        sargs='',
        )

Parse a tag using an already matched re

Return: tag, args, command, coname

where: tag is the tag, args is the tag's argument string, command is a corresponding command info structure if the tag is a start tag, or None otherwise, and coname is the name of a continue tag (e.g. else) or None otherwise

Exceptions   
ParseError, ( 'Unexpected tag', tag )
ParseError, ( 'unexpected end tag', tag )
  quotedHTML 
quotedHTML (
        self,
        text=None,
        character_entities=((( '&' ), '&amp;' ), (( "<" ), '&lt;' ), (( ">" ), '&gt;' ), (( '"' ), '&quot;' ) ),
        )

  tagre 
tagre ( self )

  varExtra 
varExtra ( self,  tagre )


Table of Contents

This document was automatically generated on Mon Jan 3 09:42:36 2005 by HappyDoc version 2.1