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.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]
Metadata
Release files for collective.dms.batchimport 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| collective_dms_batchimport-1.4.0.tar.gz | 26.8 kB | Without provenance | Details for collective_dms_batchimport-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| collective_dms_batchimport-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for collective_dms_batchimport-1.4.0-py3-none-any.whl |
Total release size: 47.1 kB
Release files / collective_dms_batchimport-1.4.0.tar.gz
| Download URL | collective_dms_batchimport-1.4.0.tar.gz |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0ba2e03f513d73e10f802d3baa38a2b6de449bf1a5ac8e7de2e8e24a2c7bf25
|
|
BLAKE2b-256 checksum How to use checksums |
7ff0cb0e75ddeb92827838304a1ed83d300bc1071d2adf86a1144b3dae69b83b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / collective_dms_batchimport-1.4.0-py3-none-any.whl
| Download URL | collective_dms_batchimport-1.4.0-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02cec4ca3a933b0f7f004e235fba0d2b84fc4fa42c5c794b642d40f9bf1e66ab
|
|
BLAKE2b-256 checksum How to use checksums |
417f2fb6d26b8a006bf4a38118b52edb2064d643dc316b3f8c3e26b8c8c1383d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for collective.dms.batchimport 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.