A little more file-moving, still much work to do and totally broken on action-module refactor
This commit is contained in:
parent
dc13e543d5
commit
0d384da48c
@ -8,9 +8,13 @@ modpol.modules.child_org.name = "Create child org"
|
||||
|
||||
-- == REQUEST ==
|
||||
|
||||
-- Initialization function
|
||||
-- function: modpol.modules.child_org:initialize
|
||||
|
||||
|
||||
-- gather data from initiator: child org name, comment
|
||||
|
||||
-- function: modpol.modules.child_org.request
|
||||
-- function: modpol.modules.child_org:request
|
||||
|
||||
|
||||
|
||||
|
@ -14,30 +14,9 @@
|
||||
modpol.default_policy = {
|
||||
target_org = nil,
|
||||
time_limit = nil,
|
||||
vote_threshold = 0
|
||||
vote_threshold = 1 -- a ratio of the total number of members
|
||||
}
|
||||
|
||||
-- Function: modpol.orgs:consent(params, result_function)
|
||||
-- params: table of optional preferences, e.g.:
|
||||
-- target_org
|
||||
-- time_limit
|
||||
-- vote_threshold (0-100 percent, 0 is automatic approval)
|
||||
-- result_function: function(input) that takes result boolean
|
||||
function modpol.orgs:consent(params, result_function)
|
||||
-- if appropriate, pass on to target org
|
||||
if params.target_org then
|
||||
local target_org = params.target_org
|
||||
params.target_org = nil
|
||||
params.target_org:consent(params, result_function)
|
||||
return
|
||||
end
|
||||
STUCK ON HOW TO IMPLEMENT THIS WITHOUT REQUIRING THE FULL PROCESS FUNCTIONALITY
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
-- PROCESSES
|
||||
-- functions that enable requests to create processes
|
||||
|
Loading…
x
Reference in New Issue
Block a user