Module modpol.orgs.process
Process functions for orgs
Functions
modpol.orgs.call_module (module_slug, intiator, config, result) | Call modules |
modpol.orgs:delete_process (id) | Delete process by id |
modpol.orgs:add_pending_action (process_id, user, callback) | Add a new pending action |
modpol.orgs:remove_pending_action (process_id, user) | Remove a pending action |
modpol.orgs:wipe_pending_actions (process_id) | Wipe all pending actions for process |
modpol.orgs:has_pending_actions (user) | Check if there are pending actions for user |
modpol.orgs:interact (process_id, user) | Interact a user with given process |
Functions
- modpol.orgs.call_module (module_slug, intiator, config, result)
-
Call modules
Parameters:
- module_slug Same as module name
- intiator Initiator for module
- config Config for module
- result
- modpol.orgs:delete_process (id)
-
Delete process by id
Parameters:
- id Id of process
- modpol.orgs:add_pending_action (process_id, user, callback)
-
Add a new pending action
Parameters:
- process_id Process id
- user User adding the action
- callback
- modpol.orgs:remove_pending_action (process_id, user)
-
Remove a pending action
Parameters:
- process_id Process id to be removed
- user
- modpol.orgs:wipe_pending_actions (process_id)
-
Wipe all pending actions for process
Parameters:
- process_id
- modpol.orgs:has_pending_actions (user)
-
Check if there are pending actions for user
Parameters:
- user User
Returns:
-
True if there are pending actions for a user, false if not
- modpol.orgs:interact (process_id, user)
-
Interact a user with given process
Parameters:
- process_id
- user