Log

core/moduleapi.lua @ 5527:7e7f45f587a1

description author age
moduleapi: Add module:get_option_inherited_set() to return a set that inherits items from a globally set set, if set Matthew Wild Sat, 27 Apr 2013 14:59:00 +0100
moduleapi: Add module:context(host) to produce a fake API context for a given host (or global). module:context("*"):get_option("foo") to get global options. Matthew Wild Sat, 27 Apr 2013 14:57:24 +0100
moduleapi: Make module:open_store() open a store named after the calling module by default Kim Alvefur Fri, 19 Apr 2013 14:42:32 +0200
moduleapi: Add module:open_store() as a front-end to storagemanager.open() Matthew Wild Fri, 19 Apr 2013 13:29:47 +0100
moduleapi: assert() that prosody.core_post_stanza is not nil Matthew Wild Fri, 05 Apr 2013 19:13:46 +0100
moduleapi: have get_host_items wrap on get_items from modulemanager, also add has_{feature/identity} to the API. Marco Cirillo Mon, 01 Apr 2013 23:44:28 +0000
core.*: Complete removal of all traces of the "core" section and section-related code. Kim Alvefur Sat, 23 Mar 2013 02:33:15 +0100
moduleapi: Revert previous commit and add comment, it's meant to be this way Matthew Wild Sat, 29 Sep 2012 17:07:08 +0100
moduleapi: Fix require of modulemanager (thanks mva!) Matthew Wild Sat, 29 Sep 2012 10:46:03 +0100
moduleapi: Clarify comment Matthew Wild Fri, 03 Aug 2012 14:07:41 +0100
moduleapi: If path name ends with '-cache' create table as weak (keys and values) Matthew Wild Mon, 30 Jul 2012 00:40:02 +0100
Merge with Florob Matthew Wild Sat, 28 Jul 2012 01:14:31 +0100
Eliminate direct setfenv usage Florian Zeitz Fri, 08 Jun 2012 05:04:38 +0200
moduleapi: Remove unused import of util.multitable Matthew Wild Thu, 19 Jul 2012 15:35:07 +0100
modulemanager, moduleapi: Turn module.event_handlers into a multitable and track object->event->handler associations correctly (thanks Zash) Matthew Wild Sat, 19 May 2012 15:39:16 +0100
moduleapi, modulemanager: Re-structure module.event_handlers so that the same handler can harmlessly handle multiple events (thanks Zash) Matthew Wild Fri, 18 May 2012 23:53:02 +0100
moduleapi: Don't auto-reload self when already reloading (fixes reload of modules with cyclic dependencies) Matthew Wild Fri, 11 May 2012 18:55:23 +0100
moduleapi: Add module:get_directory() to get module file's directory, and module:load_resource() to load a file relative to that directory Matthew Wild Sat, 28 Apr 2012 19:41:04 +0100
moduleapi: Import util.timer Matthew Wild Sat, 28 Apr 2012 02:40:36 +0100
moduleapi: Remove unused variable 'module_items' Matthew Wild Sat, 28 Apr 2012 02:24:41 +0100
moduleapi: Rename module:hook_stanza() -> module:hook_tag() (hook_stanza works for compat) Matthew Wild Fri, 27 Apr 2012 18:35:33 +0100
moduleapi: get_host_type(): Return nil for global modules (no host) Matthew Wild Fri, 27 Apr 2012 18:34:40 +0100
moduleapi: Fix parameters to unhook_object_event() Matthew Wild Thu, 26 Apr 2012 14:51:55 +0100
moduleapi: module:depends(): Don't load shared modules onto the current host if the current host is '*'... Matthew Wild Thu, 26 Apr 2012 07:04:59 +0100
moduleapi: Add module:unhook_object_event() Matthew Wild Thu, 26 Apr 2012 05:39:27 +0100
moduleapi: Add module:add_timer(delay, callback) - automatically halts the timer on module unload Matthew Wild Mon, 23 Apr 2012 15:38:40 +0100
moduleapi: module:depends(): Load shared modules onto the current host even if they are loaded globally already Matthew Wild Mon, 23 Apr 2012 14:15:07 +0100
moduleapi: module:provides(): Add "-provider" onto the key name Matthew Wild Mon, 23 Apr 2012 14:10:04 +0100
moduleapi: module:provides(): Fix usage of wrong table Matthew Wild Mon, 23 Apr 2012 14:09:35 +0100
moduleapi: Have modules internally store a reference to shared tables they use, to ensure they don't get collected while any module that had access to that table is still loaded (thanks Zash) Matthew Wild Sat, 21 Apr 2012 22:52:15 +0100
moduleapi: Add module:send() as an alias for core_post_stanza() from the current host's origin Matthew Wild Thu, 15 Mar 2012 02:53:05 +0000
moduleapi: Add module:provides(), a shortcut to add an item with the current module's name Matthew Wild Thu, 15 Mar 2012 02:52:31 +0000
moduleapi: Set module.global = true when module:set_global() is called Matthew Wild Wed, 14 Mar 2012 21:33:15 +0000
moduleapi: Add module:shared(), a way to easily share data between multiple loaded modules Matthew Wild Sun, 22 Jan 2012 19:48:53 +0000
moduleapi: Add module:depends(), a way to safely depend upon another module at runtime Matthew Wild Sun, 22 Jan 2012 19:35:50 +0000
modulemanager, moduleapi: Replace hooks multitable with an event_handlers map stored in individual modules. Also adds module:hook_object_event() to hook events on any util.events compatible object. Matthew Wild Sun, 22 Jan 2012 18:49:11 +0000
modulemanager: Move in-module API functions to core.moduleapi (half the file size, yay) Matthew Wild Sun, 22 Jan 2012 18:41:55 +0000