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 slc.dublettefinder

How to install slc.dublettefinder

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install slc.dublettefinder
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.3.1 Available View build log
Windows (64-bit)
0.3.1 Available View build log
Mac OS X (10.5+)
0.3.1 Available View build log
Linux (32-bit)
0.3.1 Available View build log
Linux (64-bit)
0.3.1 Available View build log
 
License
GPL
Lastest release
version 0.3.1 on Jan 5th, 2011

Introduction

slc.dublettefinder is a Plone product plugin that warns you of possible file duplications in your Plone website.

It provides custom validators (that can be ignored with a checkbox on the form) that warns the user if the file or image being uploaded is a possible duplicate of a file already in the site.

It also provides a portlet that will show any possible file duplications when on the context of any file or image.

Works with the ATContentTypes ATFile and ATImage as well as Blobs.

Validators:

Validators are run when an object is newly created or being edited. They are used to for example check that the fields of the object where correctly filled in.

slc.dublettefinder registers three new validators for the main two file containing objects (ATFile and ATImage), and you can easily register them for your own file containing objects. See ./extensions/configure.zcml

The validators are called isUniqueObjectName, isUniqueFileName and isUniqueFileSize and can be found in ./validators.py.

The first validator check the object's Title against all other objects of the same type in the database, and warns you if there is a match.

The second validator checks the uploaded file's name against files in the database and the third validator checks the file's size.

All three validators will warn you if they find a match, and then allow you to override them (by clicking a checkbox) and continue adding your object.

Portlet:

A custom portlet is also provided, that will show you any possible duplicates of the object/context that you are currently viewing.

Compatibility:

Tested on Plone 3.1.* and Plone 3.3.*

Changelog

0.3.1 (2010-03-18)
  • Fixed warning message formatting. [jcbrand]
0.3 (2010-03-17)
  • Made slc.dublettefinder compatible with Plone 3.3 by removing the reliance deprecated

System Message: WARNING/2 (<string>, line 63)

Bullet list ends without a blank line; unexpected unindent.

code. [jcbrand]

0.2 (2010-01-26)
  • Initial public release [jcbrand]

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

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.