[Zope-CMF] Virus check

Chris Withers chrisw@nipltd.com
Tue, 17 Jun 2003 08:26:01 +0100


Arjan Huizer wrote:

> Hi,
> 
> I am running Zope 2.6.1 together with CMF 1.3 on a linux box. I would like to run a virus check on all uploaded files in the CMF. I have installed FProt on my Linux server. 
> 
> When I upload a file I get the following error:
> 
> ==========================
> Error Type: AttributeError 
> Error Value: validate_file 
> ==========================

What's the full traceback?

> Note that when I customize the validate_file script, everything does work. 

Does it show up in any ZMI directory views before you customise it?

BTW, you plan is flawed. You won't be able to call you virus checker from inside 
a skin method.

Look at writing an External Method instead...

cheers,

Chris