How-To Created by michel . How-To, for a gentle introduction to DTML, see the DTML Manual Like Python, the language Zope is written in, DTML has a dynamic model of name spaces. A name space is a difficult concept to explain, therefore we will use some simple examples. In DTML, a name space is a group of related names.
Name spaces can be empty, or contain any number of objects.
When in the context of a name space, you can access any of it's members by name. Name spaces are collections, meaning that when the collection goes away, all reference to the objects in it go away also. When the context of a name space is left or no longer applicable, that name spaces objects and names no longer make sense in the context of the DTML code and can be reassigned. These name spaces are arranged in a stack. At any time in DTML, the sum of all the name spaces on the stack is available through the name space.