diff --git a/modpol/modules/child_org.lua b/modpol/modules/child_org.lua index e76abf5..8a1631a 100644 --- a/modpol/modules/child_org.lua +++ b/modpol/modules/child_org.lua @@ -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 diff --git a/modpol/orgs/defer_to.lua b/modpol/orgs/defer.lua similarity index 100% rename from modpol/orgs/defer_to.lua rename to modpol/orgs/defer.lua diff --git a/modpol/orgs/requests.lua b/modpol/orgs/requests.lua index f312a3f..4d8b545 100644 --- a/modpol/orgs/requests.lua +++ b/modpol/orgs/requests.lua @@ -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