SV: [ZPT] AttributeError

Magnus Heino magnus.heino@pleon.sigma.se
Tue, 4 Dec 2001 13:38:22 +0100


> What you try to store in the pagetemplate is not valid html. But it
> allows you to store the source anyway. When you try to render the
> pagetemplate it will show that error.

Well, in that case a PTRuntimeError should be raised. This exception reports
that self.id does not exist.

> >     raise PTRuntimeError, 'Page Template %s has errors.' % self.id
> > AttributeError: id