EGON document fix #374
@ -146,17 +146,17 @@ class EgonGmlBuilder:
|
|||||||
|
|
||||||
def _gen_foto(self):
|
def _gen_foto(self):
|
||||||
revoc_docs, regular_docs = self.intervention.get_documents()
|
revoc_docs, regular_docs = self.intervention.get_documents()
|
||||||
docs_list = [
|
docs_list = {
|
||||||
{
|
"oneo:Foto": [
|
||||||
"oneo:Foto": {
|
{
|
||||||
"oneo:aufnahmezeitpunkt": doc.date_of_creation.strftime(DEFAULT_DATE_FORMAT),
|
"oneo:aufnahmezeitpunkt": doc.date_of_creation.strftime(DEFAULT_DATE_FORMAT),
|
||||||
"oneo:bemerkung": doc.comment,
|
"oneo:bemerkung": doc.comment,
|
||||||
"oneo:fotoverweis": base64.b64encode(doc.file.read()).decode("utf-8"),
|
"oneo:fotoverweis": base64.b64encode(doc.file.read()).decode("utf-8"),
|
||||||
"oneo:dateiname": doc.file.url.split("/")[-1],
|
"oneo:dateiname": doc.file.url.split("/")[-1],
|
||||||
"oneo:hauptfoto": False,
|
"oneo:hauptfoto": False,
|
||||||
}
|
} for doc in regular_docs
|
||||||
} for doc in regular_docs
|
]
|
||||||
]
|
}
|
||||||
return docs_list
|
return docs_list
|
||||||
|
|
||||||
def build_gml(self):
|
def build_gml(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user