diff --git a/tralics2django.py b/tralics2django.py index 1a2644a..0091c5b 100755 --- a/tralics2django.py +++ b/tralics2django.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- -# Time-stamp: <2018-01-25 14:37:16 (kthoden)> +# Time-stamp: <2018-01-26 14:48:17 (kthoden)> import pickle import os @@ -229,7 +229,7 @@ def djangoParseObject(xmlElement, indent=False, listtype=None, listnumber=0, uid strImageFileName = os.path.basename(strImageFileString) strImageFileNamewoSuffix = os.path.splitext(strImageFileName)[0] shutil.copy(os.getcwd() + "/" + strImageFileString, os.getcwd() + "/CONVERT/django/images/" + strImageFileDir + strImageFileName) - logging.debug("django figure%s." % strImageFileName) + logging.debug("Django figure %s." % strImageFileName) # yellow if os.path.splitext(strImageFileName)[1].lower() == ".pdf": logging.debug("Found a PDF file") @@ -778,7 +778,7 @@ def djangoParseHeadline(xmlElement): xmlEOAsection.set("number", dictSections[xmlChapterChild.get("id")]) intObjectNumber += 1 xmlHead = xmlChapter.find(".//head") - logging.debug(gettext(xmlHead)) + logging.debug("Section '%s'" % gettext(xmlHead)) xmlEOAsection.append(djangoParseHeadline(xmlHead)) xmlEOAchapter.append(xmlEOAsection) # Iterate over Children of Section @@ -792,7 +792,7 @@ def djangoParseHeadline(xmlElement): xmlEOAsubsection.set("number", dictSections[xmlSectionChild.get("id")]) intObjectNumber += 1 xmlHead = xmlSectionChild.find(".//head") - logging.debug(gettext(xmlHead)) + logging.debug("Subsection '%s'" % gettext(xmlHead)) xmlEOAsubsection.append(djangoParseHeadline(xmlHead)) xmlEOAchapter.append(xmlEOAsubsection) # Iterate over children of Subsection