Metadata-Version: 2.5
Name: trytond_maestro_sendwork
Version: 8.0.0.1
Summary: Maestro send work module for Tryton
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <clemens.hupka@tryton-erp.eu>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: LICENSE
Keywords: distribution,documents,maestro,sendwork,tryton
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: trytond-company<8.1,>=8.0
Requires-Dist: trytond-maestro<8.1,>=8.0
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Requires-Dist: proteus<8.1,>=8.0; extra == 'test'
Description-Content-Type: text/x-rst

Maestro Send Work
=================

The ``maestro_sendwork`` module extends the ``maestro`` base module
with the distribution of documents to the accounts of an Active
Directory, the collection of the work they hand back in and the return
of the corrected work.

It is the *sendwork* feature of KoXo Administrator 3: a teacher picks
the accounts (or the secondary groups holding them) in the AD tree,
points the distribution at a folder of documents, and the documents
are copied into the drop folder of every account.  The work the
accounts hand back in is collected, listed and classified, and the
corrected work is returned to them; the distributed copies are removed
once the work has been collected.

Because the drop folders are filesystem folders, local to the server
or shared over SMB, the module requires an Active Directory
deployment: it is not meant for an NT4 or Samba domain layout.

Features
--------

* Distribution of the documents of a source folder to every account
  of a selection, with a number, a subject and a due date.
* Multi-recipient selection from the AD tree: accounts one at a time
  or whole secondary groups, expanded to the accounts they hold.
* A drop folder per recipient, laid out as ``documents`` (the
  distributed copies), ``returned`` (the work handed back in) and
  ``corrected`` (the corrected work).
* Collection of the returned files and folders, with their kind,
  size, checksum and modification time, and their classification by
  the operator.
* Return of the corrected work to the recipients.
* Automatic cleanup of the distributed documents once the work has
  been collected, with a retention delay beyond the collection.
* A cron that collects the work handed back in and cleans up the
  expired distributions.
* Delegated administration: a delegated administrator sees the
  distributions of the primary groups assigned to it.

Configuration
-------------

The distribution folder, the automatic collection and cleanup and the
retention delay are configured via the ``maestro.sendwork.config``
singleton under *Maestro → Configuration → Send Work Configuration*.

Dependencies
------------

* ``ir``
* ``res``
* ``company``
* ``maestro``

Models
------

* ``maestro.sendwork`` — a distribution, its state machine and its
  documents and recipients.
* ``maestro.sendwork.document`` — a document of the source folder.
* ``maestro.sendwork.recipient`` — the account a distribution is sent
  to and the drop folder it owns.
* ``maestro.sendwork.file`` — a file or folder handed back in.
* ``maestro.sendwork.config`` — configuration singleton.
