webmcp

view 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
line source
1 function mondelefant.class_prototype:by_id(id)
2 return self:new_selector()
3 :add_where{ "id = ?", id }
4 :optional_object_mode()
5 :exec()
6 end
7 execute.inner()

Impressum / About Us