Skip to content

Commit

Permalink
Debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus Thoden committed Feb 9, 2018
1 parent 15883c6 commit 4197634
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tralics2django.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4197634

Please sign in to comment.