annotate app/main/admin/_action/policy_update.lua @ 345:7d6a3c411f99
Code cleanup (removed code not needed any more)
| author |
bsw |
| date |
Tue Feb 28 22:27:19 2012 +0100 (2012-02-28) |
| parents |
7f41f3c44fae |
| children |
bc6934411019 |
| rev |
line source |
|
bsw@194
|
1 local policy = Policy:by_id(param.get_id()) or Policy:new()
|
|
bsw@194
|
2
|
|
bsw@194
|
3 param.update(
|
|
bsw@194
|
4 policy,
|
|
bsw@194
|
5 "index", "name", "description", "active",
|
|
bsw@194
|
6 "admission_time", "discussion_time", "verification_time", "voting_time",
|
|
bsw@194
|
7 "issue_quorum_num", "issue_quorum_den",
|
|
bsw@194
|
8 "initiative_quorum_num", "initiative_quorum_den",
|
|
bsw@282
|
9 "direct_majority_num", "direct_majority_den", "direct_majority_strict", "direct_majority_positive", "direct_majority_non_negative",
|
|
bsw@282
|
10 "indirect_majority_num", "indirect_majority_den", "indirect_majority_strict", "indirect_majority_positive", "indirect_majority_non_negative",
|
|
bsw@282
|
11 "no_reverse_beat_path", "no_multistage_majority"
|
|
bsw@194
|
12 )
|
|
bsw@194
|
13
|
|
bsw@194
|
14 policy:save()
|
|
bsw@194
|
15
|
|
bsw@194
|
16 slot.put_into("notice", _"Policy successfully updated")
|