[ZPT] AttributeError
Magnus Heino
magnus.heino@pleon.sigma.se
Tue, 4 Dec 2001 13:06:39 +0100
Am I doing something dumb, or should this go into the collector?
/Magnus
Python 2.1.1 (#1, Aug 13 2001, 19:37:40)
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-96)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> from PageTemplates.PageTemplate import PageTemplate
>>> pt = PageTemplate()
>>> pt.write('<p')
>>> pt()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.1/site-packages/PageTemplates/PageTemplate.py",
line 91, in __call__
return self.pt_render(extra_context={'options': kwargs})
File "/usr/lib/python2.1/site-packages/PageTemplates/PageTemplate.py",
line 75, in pt_render
raise PTRuntimeError, 'Page Template %s has errors.' % self.id
AttributeError: id
>>>