From 4c289f992c66b8e56b81932988eac045061a1c94 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Mon, 23 Mar 2015 17:30:57 +0100 Subject: [PATCH] Remove old code and debugging statements. --- src/scriptform.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scriptform.py b/src/scriptform.py index 4a5ebcc..65f9639 100755 --- a/src/scriptform.py +++ b/src/scriptform.py @@ -178,8 +178,6 @@ class FormDefinition: m = re.match('([0-9]{4})-([0-9]{2})-([0-9]{2})', value) if m: return value - #g = m.groups() - #return datetime.date(int(g[0]), int(g[1]), int(g[2])) elif field_def.get('required', False): raise ValueError( "Invalid value for date field: {}".format(value)) @@ -201,6 +199,7 @@ class FormDefinition: class ThreadedHTTPServer(ThreadingMixIn, BaseHTTPServer.HTTPServer): pass + class WebSrv: """ Very basic web server. @@ -481,7 +480,6 @@ class ScriptForm: def run(self, listen_addr='0.0.0.0', listen_port=80): ScriptFormWebApp.vitaform = self ScriptFormWebApp.callbacks = self.callbacks - #webapp = ScriptFormWebApp(vitaform, self.callbacks) WebSrv(ScriptFormWebApp, listen_addr=listen_addr, listen_port=listen_port)