From: Date: Sun, 16 Sep 2007 20:55:02 +0000 (-0400) Subject: merged in jinja template move X-Git-Url: https://projects.mako.cc/source/yourule/commitdiff_plain/ee98f53330408fd5f0c0a27720a3dc0d9edced89?hp=ba471ef56c488ae95dac054033c81a3541cda71c merged in jinja template move --- diff --git a/yourule.py b/yourule.py index 9e933d6..3de9e7b 100755 --- a/yourule.py +++ b/yourule.py @@ -17,14 +17,16 @@ def render(filename, vars): web.debug(web.ctx) # the url map for the application -urls = ( '/', 'index', +urls = ( '/?', 'index', '/ruler_([0-9\.]+)px_([0-9\.]+)([A-Za-z]+).(svg|png|jpg)', 'ruler_img', '/show/(.*(svg|png|jpg))', 'show_ruler', '/gallery(.*)', 'gallery', '/delete/(\d+)', 'delete', '/undelete/(\d+)', 'undelete') -database = create_database("sqlite:yourule.db") +database = create_database("sqlite:%s/db/yourule.db" % + os.path.dirname(__file__)) + store = Store(database) class Ruler(object):