# HG changeset patch # User casties # Date 1353934183 -3600 # Node ID ef1d0a1fc9fad7bd99a7a60b195032071ae3e78a # Parent 8c0625dfd36ef7c092fefd2d6db27e4bac366b26 fix bug with no dc-metadata. diff -r 8c0625dfd36e -r ef1d0a1fc9fa documentViewer.py --- a/documentViewer.py Wed Nov 21 17:36:23 2012 +0100 +++ b/documentViewer.py Mon Nov 26 13:49:43 2012 +0100 @@ -733,6 +733,16 @@ docinfo['presentationUrl'] = presentation else: docinfo['presentationUrl'] = os.path.join(docPath, presentation) + + # make sure we have at least fake DC data + if 'creator' not in docinfo: + docinfo['creator'] = '[no author found]' + + if 'title' not in docinfo: + docinfo['title'] = '[no title found]' + + if 'date' not in docinfo: + docinfo['date'] = '[no date found]' return docinfo