diff options
-rw-r--r-- | paste/evalexception/middleware.py | 4 | ||||
-rw-r--r-- | paste/fixture.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py index f871138..72f223b 100644 --- a/paste/evalexception/middleware.py +++ b/paste/evalexception/middleware.py @@ -193,7 +193,7 @@ class EvalException(object): local_vars = 'No local vars' return input_form(framecount, debug_info) + local_vars - show_frame = wsgiapp()(get_debug_info)(show_frame) + show_frame = wsgiapp()(get_debug_info(show_frame)) #@wsgiapp() #@get_debug_info @@ -211,7 +211,7 @@ class EvalException(object): % (preserve_whitespace(input_html, quote=False), preserve_whitespace(output))) - exec_input = wsgiapp()(get_debug_info)(exec_input) + exec_input = wsgiapp()(get_debug_info(exec_input)) def respond(self, environ, start_response): base_path = environ['SCRIPT_NAME'] diff --git a/paste/fixture.py b/paste/fixture.py index af694d8..10c08ac 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -951,7 +951,7 @@ class Select(Field): def value__set(self, value): for i, (option, checked) in enumerate(self.options): - if option == value: + if option == str(value): self.selectedIndex = i break else: |