new_module_test.lua 399 B

1234567891011121314151617
  1. dofile('../modpol.lua');
  2. modpol.orgs.reset()
  3. test_org = modpol.instance:add_org('test_org', 'luke')
  4. test_org:add_member('nathan')
  5. print(table.concat(test_org:list_members(), ", "))
  6. function completion()
  7. print("completed")
  8. end
  9. modpol.modules.join_org.initiate("paul", test_org, completion)
  10. -- process = modpol.modules.join_org_class.create("paul", test_org)
  11. -- process:initiate(completion)