Log

core/moduleapi.lua @ 6050:5d73412aa1ba 0.9.4

description author age
moduleapi: in module:provides(), add the name of the module in item._provided_by Kim Alvefur 2013-04-27
moduleapi: module:provides called without an item makes a copy of the environment instead. Fixes warnings about non-existent globals Kim Alvefur 2013-04-27
moduleapi: Add module:get_option_inherited_set() to return a set that inherits items from a globally set set, if set Matthew Wild 2013-04-27
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 2013-04-27
moduleapi: Make module:open_store() open a store named after the calling module by default Kim Alvefur 2013-04-19
moduleapi: Add module:open_store() as a front-end to storagemanager.open() Matthew Wild 2013-04-19
moduleapi: assert() that prosody.core_post_stanza is not nil Matthew Wild 2013-04-05
moduleapi: have get_host_items wrap on get_items from modulemanager, also add has_{feature/identity} to the API. Marco Cirillo 2013-04-01
core.*: Complete removal of all traces of the "core" section and section-related code. Kim Alvefur 2013-03-23
moduleapi: Revert previous commit and add comment, it's meant to be this way Matthew Wild 2012-09-29
moduleapi: Fix require of modulemanager (thanks mva!) Matthew Wild 2012-09-29
moduleapi: Clarify comment Matthew Wild 2012-08-03
moduleapi: If path name ends with '-cache' create table as weak (keys and values) Matthew Wild 2012-07-29
Merge with Florob Matthew Wild 2012-07-28
Eliminate direct setfenv usage Florian Zeitz 2012-06-08
moduleapi: Remove unused import of util.multitable Matthew Wild 2012-07-19
modulemanager, moduleapi: Turn module.event_handlers into a multitable and track object->event->handler associations correctly (thanks Zash) Matthew Wild 2012-05-19
moduleapi, modulemanager: Re-structure module.event_handlers so that the same handler can harmlessly handle multiple events (thanks Zash) Matthew Wild 2012-05-18
moduleapi: Don't auto-reload self when already reloading (fixes reload of modules with cyclic dependencies) Matthew Wild 2012-05-11
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 2012-04-28
moduleapi: Import util.timer Matthew Wild 2012-04-28
moduleapi: Remove unused variable 'module_items' Matthew Wild 2012-04-28
moduleapi: Rename module:hook_stanza() -> module:hook_tag() (hook_stanza works for compat) Matthew Wild 2012-04-27
moduleapi: get_host_type(): Return nil for global modules (no host) Matthew Wild 2012-04-27
moduleapi: Fix parameters to unhook_object_event() Matthew Wild 2012-04-26
moduleapi: module:depends(): Don't load shared modules onto the current host if the current host is '*'... Matthew Wild 2012-04-26
moduleapi: Add module:unhook_object_event() Matthew Wild 2012-04-26
moduleapi: Add module:add_timer(delay, callback) - automatically halts the timer on module unload Matthew Wild 2012-04-23
moduleapi: module:depends(): Load shared modules onto the current host even if they are loaded globally already Matthew Wild 2012-04-23
moduleapi: module:provides(): Add "-provider" onto the key name Matthew Wild 2012-04-23
moduleapi: module:provides(): Fix usage of wrong table Matthew Wild 2012-04-23
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 2012-04-21
moduleapi: Add module:send() as an alias for core_post_stanza() from the current host's origin Matthew Wild 2012-03-15
moduleapi: Add module:provides(), a shortcut to add an item with the current module's name Matthew Wild 2012-03-15
moduleapi: Set module.global = true when module:set_global() is called Matthew Wild 2012-03-14
moduleapi: Add module:shared(), a way to easily share data between multiple loaded modules Matthew Wild 2012-01-22
moduleapi: Add module:depends(), a way to safely depend upon another module at runtime Matthew Wild 2012-01-22
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 2012-01-22
modulemanager: Move in-module API functions to core.moduleapi (half the file size, yay) Matthew Wild 2012-01-22