From 74c6238ae4e921ce01fe4b1b2beb5ad495d2b486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 10 Dec 2012 13:35:23 +0100 Subject: [PATCH] also rename documents with their category/subcategory --- themis/ocrloader/ocrloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themis/ocrloader/ocrloader.py b/themis/ocrloader/ocrloader.py index b37355d..49a8c1f 100644 --- a/themis/ocrloader/ocrloader.py +++ b/themis/ocrloader/ocrloader.py @@ -68,7 +68,7 @@ class LoadFromOcr(BrowserView): int(date[0:4]), int(date[4:6]), int(date[6:]), int(time[:2]),int(time[2:4]),int(time[4:6])) - if doctype in ('incoming_mails', 'outgoing_mails'): + if (category or subcategory): ocr_title = u'%s %s du %s à %s' % ( (category or subcategory), number,