[Zope] Newbie dtml question ( very simple )

Martijn Faassen M.Faassen@vet.uu.nl
Mon, 15 Mar 1999 18:26:19 +0100


"Dr. Armin Tschammer" wrote:

> XY.py :
> 
> d = {}
> d['x1']=1
> d['x2']=2
> X = DocumentTemplate.HTMLFile('X3.dtml')
> string = X(d)

Hmm.

Have you tried this, instead?

class Foo:
    pass

myfoo = Foo()
foo.x1 = 1
foo.x2 = 2
X = DocumentTemplate.HTMLFile('X3.dtml')
output = X(foo)

Regards,

Martijn