fixed default handling

This commit is contained in:
Lyla Fischer
2012-03-27 09:44:27 -04:00
parent ce5540b234
commit 64e187fdd4
2 changed files with 6 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ class textline(object):
def render(element, value, state):
eid=element.get('id')
count = int(eid.split('_')[-2])-1 # HACK
size = element.get('size') or 0
size = element.get('size')
context = {'id':eid, 'value':value, 'state':state, 'count':count, 'size': size}
html=render_to_string("textinput.html", context)
return etree.XML(html)