Commit fd2e2a9a authored by fred's avatar fred

give some time to soma

parent 07b1a4c2
import datetime
import os
import shutil
import time
from django.template import loader, Context
import xml.etree.ElementTree as ET
......@@ -84,5 +85,10 @@ def add_diffusion(diffusion):
fd.write(ET.tostring(palinsesto_xml))
connection.new_palinsesto('/tmp/soma.pl')
del connection
# give it some time (...)
time.sleep(3)
connection = pysoma.open_tcp('soma.panik', 12521, '', 0)
connection.set_default_palinsesto()
del connection
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment