From 3125442cbf151eaa9b7a843e9750eb6329ddf825 Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Thu, 26 Aug 2010 16:57:32 +0200 Subject: Fix the regular expression check and make Config buttons more clear --- frontend/gtk-list.xml | 4 ++-- pyfirstaidkit/reporting.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/gtk-list.xml b/frontend/gtk-list.xml index 427652f..0a71aee 100644 --- a/frontend/gtk-list.xml +++ b/frontend/gtk-list.xml @@ -66,7 +66,7 @@ end - OK + Save and continue True True True @@ -81,7 +81,7 @@ - Cancel + Use defaults and continue True True True diff --git a/pyfirstaidkit/reporting.py b/pyfirstaidkit/reporting.py index 21a4b45..ea133a1 100644 --- a/pyfirstaidkit/reporting.py +++ b/pyfirstaidkit/reporting.py @@ -20,6 +20,7 @@ import logging import thread import weakref import re +import time from errors import * @@ -87,7 +88,7 @@ class ConfigQuestion(Question): self.title = title self.description = description self.items = map(lambda x: (x[0], x[1], x[2], x[3], - re.compile("^"+x[4]+"$"), x[5]), items) + re.compile("^("+x[4]+")$"), x[5]), items) class ChoiceQuestion(Question): """A question that offers multiple options. -- cgit