Commit d44a81f4 by Piotr Mitros

Problem count

parent 4a664d88
...@@ -7,7 +7,8 @@ class textline(object): ...@@ -7,7 +7,8 @@ class textline(object):
@staticmethod @staticmethod
def render(element, value, state): def render(element, value, state):
eid=element.get('id') eid=element.get('id')
context = {'id':eid, 'value':value, 'state':state} count = int(eid.split('_')[-2])-1 # HACK
context = {'id':eid, 'value':value, 'state':state, 'count':count}
html=render_to_string("textinput.html", context) html=render_to_string("textinput.html", context)
return etree.XML(html) return etree.XML(html)
......
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