#!/usr/bin/env python3


import sys
from message import Message
from persistence import Persistence
from const import XML_FILE_EXTENSION


message = Persistence.get_message_from_file(sys.argv[1])
if (message is not None):
    Persistence.message_to_solr_xml(message, sys.argv[2] + message.identifier + XML_FILE_EXTENSION)

#!/usr/bin/env python3


import sys
from document import Document
from persistence import Persistence
from const import XML_FILE_EXTENSION


document = Persistence.get_document_from_file(sys.argv[1])
if (document is not None):
    Persistence.document_to_solr_xml(document, sys.argv[2] + document.identifier + XML_FILE_EXTENSION)

Fix wrong naming in generate...py
Fix wrong naming in generate...py

Signed-off-by: Fabio Benigno <7de248c2f6c04081ad3a3569b5954b1b677fee3b@gmail.com>
