Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.atclamav

How to install collective.ATClamAV

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.atclamav
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
1.0b2 Available View build log
Windows (64-bit)
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
1.0b2 Available View build log
Mac OS X (10.5+)
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
1.0b2 Available View build log
Linux (32-bit)
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
1.0b2 Available View build log
Linux (64-bit)
1.2 Available View build log
1.1 Available View build log
1.0 Available View build log
1.0b2 Available View build log
 
License
GPL
Lastest release
version 1.2 on Mar 16th, 2011

collective.ATClamAV

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 File or Image field(s). The open-source Clam Antivirus is supported which 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 and Images 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'),
)
Testing

By default tests mock clamd and do not require it being installed. If you want to test your clamd setup as well, run tests on all levels i.e.

./bin/test -a2

using the provided buildout. Two plone.app.testing layers (with the mocker and without) are provided if you want to integrate the package in your own tests, see testing.py.

Development

If you want to get involved with the development of collective.ATClamAV please use github to submit your patches/issues.

Credits

Some code was shamelessly borrowed from pyClamd.

Changelog

1.2 - 2011-03-15
  • Sent all data over the socket instead of only the first buffer. [hannosch]
  • Added error logging for failed scans. [hannosch]
1.1 - 2011-02-15
  • Disable virus validator during debug mode but log a warning. This allows local development to take place without having clamav installed. [hannosch]
1.0 - 2011-01-11
  • Reengineering to support images. [hannosch]
  • Improve coverage and use plone.app.testing. [ggozad]
  • Plone 4 compatibility. [ggozad, hannosch]
  • pep-8 [ggozad]
1.0b2
  • Added support for local UNIX sockets [ggozad]
1.0b1
  • Initial release [ggozad]

Subscribe to package updates

Last updated Mar 16th, 2011

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.