thequbit / mayan-document-listener

A bridge between the mayan-edms and BarkingOwl
GNU General Public License v3.0
1 stars 0 forks source link

push new documents to mayab-edms as they are available within the database #6

Open thequbit opened 10 years ago

thequbit commented 10 years ago

watch the database (probably within a thread) for new documents. Use the requests library to 'download' the file, and pushed it to mayan-edms by calling the upload_single_file() function (the requests lib will only actually download the file when the upload_single_file() function is called to prevent the need to transfer the data twice).

Make sure to either delete the entry within the database, or flag it as read (probably want to flag it).