Precondition for file
11 Feb
2000
11 Feb
'00
10:11 p.m.
What is the purpose of the precondition entry for a file object and how do I use it? I can't seem to find any reference toit in any of the documentation. Jim Sanford
12 Feb
12 Feb
4:16 a.m.
New subject: [Zope] Precondition for file
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
9551
Age (days ago)
9552
Last active (days ago)
1 comments
2 participants
participants (2)
-
Evan Simpson -
Jim Sanford