+DROP TABLE IF EXISTS gallery;
CREATE TABLE gallery (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
pixel_width REAL NOT NULL,
unit_width REAL NOT NULL,
units VARCHAR(100) NOT NULL,
- model VARCHAR(255) NOT NULL
+ model VARCHAR(255) NOT NULL,
+ show INTEGER NOT NULL DEFAULT 1
);
def POST(self, ruler_url):
input = web.input()
- errormsg = valid_input(input)
+ errormsg = validate_input(input)
if not input.model:
errormsg = 'Please fill out all fields.'
if __name__ == "__main__":
web.run(urls, globals(), web.reloader)
-application = web.wsgifunc(web.webpyfunc(urls, globals()))
+#application = web.wsgifunc(web.webpyfunc(urls, globals()))