A product providing ClamAV antivirus integration for AT-based content types
Project description
Introduction
collective.ATClamAV aims at providing antivirus integration to plone sites. It does that by defining a validator that can be used with any content type that uses FileField(s). At the moment the open-source Clam Antivirus is supported. Clam Antivirus is available for all platforms.
Usage
To start, you need to have clamd running on some host accessible by your instances. collective.ATClamAV supports either UNIX socket connections or remote connections.
Install collective.ATClamAV and setup the host & port or the path to the clamd socket in the control panel (default is a network connection to clamd listening on localhost at port 3310). By default Files are going to be checked for viruses when added or updated.
Adding anti-virus protection to non-ATFile based content
In order to add anti-virus protection to your custom content types you only need to add the isVirusFree validator to your FileField(s). For instance:
FileField('file', validators = (('isNonEmptyFile', V_REQUIRED), ('isVirusFree', V_REQUIRED),), widget = FileWidget(label=u'File'), )
Credits
Some code was shamelessly borrowed from pyClamd.
Changelog
1.0b2
Added support for local UNIX sockets
1.0b1
Initial release [ggozad]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.ATClamAV-1.0b2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d29174fa71cb45daed01347aed42fa82ec7854ccd7e1f0f59037ad9f86945fb5 |
|
MD5 | f6ec2dd703b030a0acff6d7b89f34877 |
|
BLAKE2b-256 | 617615bc034203565abefc57aac21809415034791fa1c89519f5698adc5947ec |