liquid_feedback_frontend
view model/member_image.lua @ 141:20e0b64cc1f9
use monospace/pre data on suggestion display and entry
this allows better formatting on the user suggestions without the overhead of using wiki there
fixes bug #215
this allows better formatting on the user suggestions without the overhead of using wiki there
fixes bug #215
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Wed Oct 06 14:34:45 2010 +0200 (2010-10-06) |
parents | 5c601807d397 |
children |
line source
1 MemberImage = mondelefant.new_class()
2 MemberImage.table = "member_image"
3 MemberImage.primary_key = { "member_id", "image_type" }
5 function MemberImage:by_pk(member_id, image_type, scaled)
6 return self:new_selector()
7 :add_where{ "member_id = ?", member_id }
8 :add_where{ "image_type = ?", image_type }
9 :add_where{ "scaled = ?", scaled }
10 :optional_object_mode()
11 :exec()
12 end