liquid_feedback_frontend

view model/policy.lua @ 210:2c422bcb79de

Added tag beta31 for changeset bfd8d88f72fc
- Added support to lock inactive member
- Added esperanto translations for new phrases
- Improved and corrected some esperanto phrases
- Display delegation warnings only for open issues
- Refactored code: admin, area, contact and delegation module
- Translated admin menu
- Added policy editor to admin area
- Save and display last login date
- Small fixes
author bsw
date Sat Feb 05 20:01:09 2011 +0100 (2011-02-05)
parents 46351752814f
children f3d6d08b0125
line source
1 Policy = mondelefant.new_class()
2 Policy.table = 'policy'
4 Policy:add_reference{
5 mode = '1m',
6 to = "Issue",
7 this_key = 'id',
8 that_key = 'policy_id',
9 ref = 'issues',
10 back_ref = 'policy'
11 }
13 function Policy:build_selector(args)
14 local selector = self:new_selector()
15 if args.active ~= nil then
16 selector:add_where{ "active = ?", args.active }
17 end
18 selector:add_order_by("index")
19 return selector
20 end

Impressum / About Us