Changeset 602:ef1d0a1fc9fa in documentViewer


Ignore:
Timestamp:
Nov 26, 2012, 12:49:43 PM (11 years ago)
Author:
casties
Branch:
default
Message:

fix bug with no dc-metadata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r599 r602  
    734734            else:
    735735                docinfo['presentationUrl'] = os.path.join(docPath, presentation)
     736               
     737        # make sure we have at least fake DC data
     738        if 'creator' not in docinfo:
     739            docinfo['creator'] = '[no author found]'
     740           
     741        if 'title' not in docinfo:
     742            docinfo['title'] = '[no title found]'
     743           
     744        if 'date' not in docinfo:
     745            docinfo['date'] = '[no date found]'
    736746       
    737747        return docinfo
Note: See TracChangeset for help on using the changeset viewer.