summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-10-11 23:00:29 +0200
committermathieui <mathieui@mathieui.net>2011-10-11 23:00:29 +0200
commit2479201b306b73aec00d1968b47fc2014d6faa44 (patch)
tree611f05389046fdf7b914801ae295f73bf4ef2a77 /src
parentbe2d66f8a2ce63800d41f296d502e1338f6f7bed (diff)
downloadpoezio-2479201b306b73aec00d1968b47fc2014d6faa44.tar.gz
poezio-2479201b306b73aec00d1968b47fc2014d6faa44.tar.bz2
poezio-2479201b306b73aec00d1968b47fc2014d6faa44.tar.xz
poezio-2479201b306b73aec00d1968b47fc2014d6faa44.zip
Fix the data forms
Diffstat (limited to 'src')
-rw-r--r--src/data_forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data_forms.py b/src/data_forms.py
index 873aef85..a7bbe97f 100644
--- a/src/data_forms.py
+++ b/src/data_forms.py
@@ -408,7 +408,7 @@ class FormWin(object):
self._win = curses.newwin(height, width, y, x)
self.current_input = 0
self.inputs = [] # dict list
- for (name, field) in self._form.getFields():
+ for (name, field) in self._form.getFields().items():
if field['type'] == 'hidden':
continue
try:
@@ -488,7 +488,7 @@ class FormWin(object):
self._win.erase()
y = 0
i = 0
- for name, field in self._form.getFields():
+ for name, field in self._form.getFields().items():
if field['type'] == 'hidden':
continue
self.inputs[i]['label'].resize(1, self.width//3, y + 1, 0)