Table of Contents

Module: DT_With Zope-2.2.1-src/lib/python/DocumentTemplate/DT_With.py

Nested namespace access

The with tag is used to introduce nested namespaces.

The text enclosed in the with tag is rendered using information from the given variable or expression.

For example, if the variable person is bound to an object that has attributes name and age, then a with tag like the following can be used to access these attributes:

     <!--#with person-->
       <!--#var name-->,
       <!--#var age-->
     <!--#/with-->

Eather a name or an expr attribute may be used to specify data. A mapping attribute may be used to indicate that the given data should be treated as mapping object, rather than as an object with named attributes.

Imported modules   
from DT_Util import parse_params, name_param, InstanceDict, render_blocks, str, TemplateDict
Classes   
With

Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6