webmcp

annotate demo-app/app/main/_prefork/01-models.lua @ 255:9e4be058959d

New functions request.add_initializer(...) and request.add_variable(...) to allow per-request initialization; Merged request.process() with request.handler(...)
author jbe
date Sat Mar 14 23:39:47 2015 +0100 (2015-03-14)
parents 2169a62e12f5
children
rev   line source
jbe@254 1 function mondelefant.class_prototype:by_id(id)
jbe@254 2 return self:new_selector()
jbe@254 3 :add_where{ "id = ?", id }
jbe@254 4 :optional_object_mode()
jbe@254 5 :exec()
jbe@254 6 end
jbe@254 7 execute.inner()

Impressum / About Us