Skip to main content

The goal of syslab.dublettefinder is to find duplicate files (dublettes ;) in the ZODB and then warn the user via validation error during content edit/creation.

Project description

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:

Requires Plone 3.1.*

slc.dubblettefinder is deployed in a production environment with Plone 3.1.7 and relies on a deprecated api for registering catalog indexes that has been removed in later Plone (and PloneCatalog) versions.

You’ll get the following error on newer Plone versions:

:: ImportError: cannot import name _eioRegistry

If you have a need for slc.dublettefinder on a newer version of Plone, please email me at <brand at syslab dot com> and I’ll be happy to help.

Changelog

0.3b1 (2010-03-07)

  • Made slc.dublettefinder compatible with Plone 3.3 by removing the reliance deprecated code. [jcbrand]

0.2 (2010-01-26)

  • Initial public release [jcbrand]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slc.dublettefinder-0.3b1.tar.gz (29.0 kB view details)

Uploaded Source

File details

Details for the file slc.dublettefinder-0.3b1.tar.gz.

File metadata

File hashes

Hashes for slc.dublettefinder-0.3b1.tar.gz
Algorithm Hash digest
SHA256 98f102096204e816404af6ceb50c21aa300afcc02a8460957f4bda1ced123d2f
MD5 c7aa4a0cda0d49d46526e5989333de6a
BLAKE2b-256 81b3779d8e841c4726cf9e9876cce1fa0eb5418b8572ef73658fe366774306d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page