]> projects.mako.cc - yourule/commitdiff
merged in jinja template move
author<mako@atdot.cc> <>
Sun, 16 Sep 2007 20:55:02 +0000 (16:55 -0400)
committer<mako@atdot.cc> <>
Sun, 16 Sep 2007 20:55:02 +0000 (16:55 -0400)
yourule.py

index 9e933d667a8959610c8883962b37fbce15d9e9d6..3de9e7b4f03cd56323f730adf4fa1d0bbd37e6ca 100755 (executable)
@@ -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):

Benjamin Mako Hill || Want to submit a patch?