[Zope] Precondition for file
Evan Simpson
evan@digicool.com
Fri, 11 Feb 2000 22:16:18 -0600
Precondition is just a hook which allows File and its subclasses to veto
rendering by raising an exception. If 'precondition' is set, it is treated
as the name of a method of the object. This method is called during
invocation of 'index_html' (the method called eg. if the object is addressed
directly by a URL).
----- Original Message -----
From: Jim Sanford <jsanford@atinucleus.com>
> What is the purpose of the precondition entry for a file object and how do
I use it?
It's not documented (AFAIK) except by reference to the source.
Cheers,
Evan @ digicool