[Zope] Re: Invalid Page Template?

Evan Simpson evan@4-am.com
Thu, 06 Mar 2003 12:18:33 -0600


Edward Pollard wrote:
> Is there an easy way to tell if a Page Template is valid/invalid?
> (Meaning the same check that gets done to see if the red exclaimation
> mark should show up in the ZMI)

Do you mean *exactly* the same check (i.e. calling a method on the ZPT 
after writing to it)?

In that case you want pt_errors() and pt_warnings(), which return None 
or a sequence of strings describing the error or warning.

Cheers,

Evan @ 4-am