From 6a0346a12ae30a9449a1964260be26dc042195ce Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 25 Jan 2011 21:17:11 +0100 Subject: Fix a little issue on the default values of text-multi --- src/data_forms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/data_forms.py b/src/data_forms.py index ae530551..dad5a456 100644 --- a/src/data_forms.py +++ b/src/data_forms.py @@ -158,7 +158,10 @@ class TextMultiWin(FieldInput, windows.Win): self.val_pos = 0 self.edition_input = None if not isinstance(self.options, list): - self.options = [self.options] + if isinstance(self.options, str): + self.options = [self.options] + else: + self.options = [] self.options.append('') def do_command(self, key): -- cgit v1.2.3