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.

Introduction

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”

Tests

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

https://secure.travis-ci.org/collective/collective.dms.batchimport.png

Contributors

  • Gauthier Bastien, IMIO

  • Stéphan Geulette, IMIO

  • Vincent Fretin, Ecreall

  • Cédric Messiant, Ecreall

  • Frédéric Peters, Entr’ouvert

  • David Convent, Entr’ouvert

Changelog

1.4.0 (2026-01-15)

  • Added file_metadata parameter to import_one and createDocument to set mainfile metadata. [chris-adam, sgeulette]

1.3.1 (2024-06-06)

  • Raised ValueError if internal_number_no is already used. [sgeulette]

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]

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

collective_dms_batchimport-1.4.0.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

collective_dms_batchimport-1.4.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file collective_dms_batchimport-1.4.0.tar.gz.

File metadata

File hashes

Hashes for collective_dms_batchimport-1.4.0.tar.gz
Algorithm Hash digest
SHA256 d0ba2e03f513d73e10f802d3baa38a2b6de449bf1a5ac8e7de2e8e24a2c7bf25
MD5 297054be41dd679e4e97bbb530d71614
BLAKE2b-256 7ff0cb0e75ddeb92827838304a1ed83d300bc1071d2adf86a1144b3dae69b83b

See more details on using hashes here.

File details

Details for the file collective_dms_batchimport-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for collective_dms_batchimport-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02cec4ca3a933b0f7f004e235fba0d2b84fc4fa42c5c794b642d40f9bf1e66ab
MD5 5e61a5849ea58469272122fd0637c850
BLAKE2b-256 417f2fb6d26b8a006bf4a38118b52edb2064d643dc316b3f8c3e26b8c8c1383d

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