Skip to main content

Batch import of files into the Documents Management System

Project description

This package can read OS directories to find files to import. A metadata file can be associated to each file.

It creates for each file a dms item containing the file as a dmsmainfile.


This package provides a configuration view, where you can define:

  • a path to a directory to process, called the root directory

  • a path to a directory, where to move processed files

  • a table where filename prefixes can be associated to portal types

The root directory can contain a directory structure that will be followed to place in imported dms content. This directory structure must already exist in Plone.

Each file can be joined to a metadata file in json format (A directory like containing attributes).

Example files structure:

  • “folder 1” / “file1.pdf”

  • “folder 1” / “file1.pdf.metadata”

  • “folder 1” / “folder2” / “file2.pdf”


This add-on is tested using Travis CI. The current status of the add-on is :


  • Gauthier Bastien, IMIO

  • Stéphan Geulette, IMIO

  • Vincent Fretin, Ecreall

  • Cédric Messiant, Ecreall

  • Frédéric Peters, Entr’ouvert

  • David Convent, Entr’ouvert


1.3.0 (2022-04-01)

  • Corrected UnicodeEncodeError.

  • Removed prefix from filename

  • Sort filenames naturally

  • Used filename as title if no metadata

  • Added script to add metadata (nothing done for now) [sgeulette]

1.2.5 (2020-10-07)

  • Test portal type more generically. [sgeulette]

1.2.4 (2017-05-30)

  • Set internal_reference_no if not set. [sgeulette]

  • Added dmsmainfile portal type parameter at creation. [sgeulette]

1.2.3 (2016-04-15)

  • Removed useless message. [sgeulette]

1.2.2 (2014-11-28)

  • Removed a fake attribute present in the dict passed to createContentInContainer. [sgeulette]

1.2.1 (2014-11-27)

  • Return created objects [sgeulette]

1.2 (2014-10-24)

  • Added specific role and permission to call batchimport view [sgeulette]

1.1 (2014-03-24)

  • Remove useless parameter [sgeulette]

  • Don’t force title [sgeulette]

  • Skip useless directories [sgeulette]

  • Apply default_value only if necessary [sgeulette]

  • Pep8 corrections [sgeulette]

1.0 (2014-03-20)

  • Improvements [Frédéric Péters]

  • Use adopt_user to create document and main file [sgeulette]

  • add a new @@fileimport endpoint [cedricmessiant]

  • Added configlet [Frédéric Péters]

  • Some improvements [sgeulette]

  • Read and import of files [Frédéric Péters, David Convent]

  • Package created using templer [cedricmessiant]

Download files

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

Source Distribution

collective.dms.batchimport-1.3.0.tar.gz (25.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page