List of metadata values

152 views
Skip to first unread message

Gabriel Diteko

unread,
Jun 23, 2016, 10:46:29 AM6/23/16
to Mayan EDMS
Hi.

I have a rather unusual request here. The documents I have been scanning have a unique data field, let just say ID for example. I would like to generate a list of all the scanned documents IDs. I have another list I want to check it against. Please help me out here.

Roberto Rosario

unread,
Jul 5, 2016, 7:28:57 PM7/5/16
to Mayan EDMS
source /usr/share/mayan-edms/bin/activate
mayan-edms.py shell

from metadata.models import DocumentMetadata
print '\n'.join(['{}, {}: {}'.format(dm.document, dm.metadata_type, dm.value) for dm in DocumentMetadata.objects.all()])

Gabriel Diteko

unread,
Jul 29, 2016, 3:15:59 AM7/29/16
to Mayan EDMS
Thank you mate. Works beautifully! I would just like to add here that Mayan EDMS is a stellar product! Really world class! Thank you for your passion!

Roberto Rosario

unread,
Nov 22, 2016, 8:10:31 PM11/22/16
to Mayan EDMS
Thanks!
Reply all
Reply to author
Forward
0 new messages