Skip to content

Commit

Permalink
Some more Hyperimage rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Sep 18, 2019
1 parent 3ca1343 commit 5181386
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions imxml2django.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: <2019-08-02 16:25:56 (kthoden)>
# Time-stamp: <2019-08-06 15:05:17 (kthoden)>

"""
Create an XML file that can be inserted into the Django database
Expand Down Expand Up @@ -426,13 +426,15 @@ def djangoParseObject(xmlElement, indent=False, listtype=None, listnumber=0, uid
xmlResult.append(xmlEOAfigure)
intObjectNumber += 1
# Insert visual Number and uid
if figure_type != "hionlycollage":
if figure_type == "hionlycollage" or figure_type == "hionlysub":
pass
else:
strFigureNumber = dictFigures[xmlElement.find(".//anchor").get("id")]
xmlEOAfigure.set("number", strFigureNumber)
strFigureUID = xmlElement.find(".//anchor").get("id")
xmlEOAfigure.set("id", strFigureUID)

hi_figure_types = ["hitrue", "hionly", "hionlycollage"]
hi_figure_types = ["hitrue", "hionly", "hionlycollage"]#, "hionlysub"]

if figure_type in hi_figure_types:
xmlEOAfigure.set("hielement", xmlElement.get("hielement"))
Expand Down

0 comments on commit 5181386

Please sign in to comment.