6 Mar
2003
6 Mar
'03
6:18 p.m.
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