Welcome to the CHICKEN Scheme pasting service
500 pasted by andyjpb on Sun Apr 29 21:06:34 2012
Awful is running in development mode. primordial: Incoming request from 127.0.0.1 [Sun Apr 29 20:04:51 2012] "GET http://localhost:8080/files/p11793/THUMBNAIL HTTP/1.1" Error: (sql-de-lite) operation on closed database Call history: <eval> (second paths) <eval> (third paths) <eval> (send-image "select * from v_images where asset_id = @asset_id and type = @type;" asset_id type) <eval> [create-view-renderer] (prepare (db-connection) stmt) <eval> [create-view-renderer] (db-connection) sql-de-lite#resurrect sql-de-lite#finalized? get-handle1506 lru-cache#lru-cache-capacity lru-cache#lru-cache-ref sql-de-lite#prepare-handle error k668674 g672673 spiffy#handle-exception with-output-to-string <--
code added by andyjpb on Sun Apr 29 21:07:20 2012
(define-page (regexp "/files/[^/]+/[^/]+")
(lambda (path) (lambda ()
(let* ((paths (string-split path "/"))
(asset_id (second paths))
(type (third paths)))
(send-image "select * from v_images where asset_id = @asset_id and type = @type;" asset_id type)
""))) no-template: #t)