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 :
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.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.dms.batchimport-1.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c6aee6a25349bcf3e22fdf3e7eb68dd375e249a2df59ea179d669c1a483c167 |
|
MD5 | a0f906a8190df53c1304dcd87dd15237 |
|
BLAKE2b-256 | a77190ad2e0978de2ee18d1772615d7268740cf76a4bf89d46f9fdc39ce7b79d |