Commit 56b7ecb2 authored by fred's avatar fred

1.11: use dictionary as context

parent 6b7fda14
......@@ -3,7 +3,7 @@ import os
import shutil
import time
from django.template import loader, Context
from django.template import loader
import xml.etree.ElementTree as ET
try:
......@@ -70,7 +70,7 @@ def add_diffusion(diffusion):
# create palinsesti
palinsesti_template = loader.get_template('nonstop/soma_palinsesti.xml')
context = Context()
context = {}
context['diffusion_path'] = diffusion_path
context['episode'] = diffusion.episode
context['start'] = diffusion.datetime
......
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