Commit graph

129 commits

Author SHA1 Message Date
Waqas Hussain
f33b657ef4 modulemanager: Load plugin libraries in the same environment as the plugins. 2010-02-11 05:36:03 +05:00
Waqas Hussain
85d418686a modulemanager: Make the plugin environment available directly (module.environment within plugins). 2010-02-11 05:34:53 +05:00
Matthew Wild
566248821c modulemanager: Remove obsolete actions code 2010-01-21 12:57:12 +00:00
Waqas Hussain
f742f93609 modulemanager: Fire item-removed events on module unload. 2009-12-10 03:02:04 +05:00
Waqas Hussain
8495a4cfff modulemanager: Fixed a global access. 2009-12-10 03:00:16 +05:00
Matthew Wild
44066a0897 modulemanager, net.dns: Remove trailing whitespace 2009-12-02 20:32:44 +00:00
Matthew Wild
29d4a0246b modulemanager: Fire events module-loaded and module-unloaded, both receive a table with 'module' and 'host' fields, thanks bjc 2009-12-01 19:57:33 +00:00
Matthew Wild
0ccdad92ef modulemanager: New module API methods for getting config options with type conversion, get_option_string, get_option_number, get_option_boolean, get_option_array, get_option_set 2009-11-23 16:07:33 +00:00
Matthew Wild
581c6ab9d1 modulemanager: api:get_option(): Handle correctly option values of boolean false, don't assume value unset 2009-11-08 15:09:11 +00:00
Waqas Hussain
9e0c207650 modulemanager: Module loading rewritten to gracefully deal with errors in module initialization. 2009-10-18 05:17:07 +05:00
Waqas Hussain
4b7031b383 modulemanager: Use componentmanager to create new components. 2009-10-18 03:15:33 +05:00
Waqas Hussain
a180af24ea modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae). 2009-10-18 01:19:03 +05:00
Waqas Hussain
fe8f9b9c37 modulemanager: Fixed traceback on loading modules on unknown hosts. 2009-10-17 23:50:09 +05:00
Waqas Hussain
bf059aa455 modulemanager: Slightly rearranged code for more robust unloading of modules. 2009-10-17 23:48:30 +05:00
Matthew Wild
6c0b6f76fb modulemanager: Re-organise module loading to still work when no global modules_enabled is defined in the config (thanks hoelzro for accidentally discovering this one) 2009-10-16 22:12:46 +01:00
Waqas Hussain
157842119d modulemanager: Changed api:get_host_items to include items from the global host in its result. 2009-10-13 14:58:45 +05:00
Matthew Wild
9ff673912f modulemanager: Bump log level of unhandled non-default-namespace elements, and log their full XML 2009-10-06 23:14:01 +01:00
Matthew Wild
e1543fa5b0 Merge with 0.5 2009-10-05 14:42:56 +01:00
Matthew Wild
c3ffb26132 modulemanager: Add host.modules to contain a table of modules for a host 2009-10-05 10:42:36 +01:00
Matthew Wild
3525d3e370 Merge with 0.5 2009-09-30 11:06:02 +01:00
Matthew Wild
271afa3673 modulemanager: Load modules for components, too 2009-09-30 11:05:26 +01:00
matthew
62ef87bb8f Merge with 0.5 2009-09-05 23:01:06 +01:00
Waqas Hussain
be1b9e55c0 modulemanager: Fixed: Internally generated stanzas could be missing namespaces, which causes tracebacks in logging (e.g., auto-generated offline presence) 2009-09-06 01:31:18 +05:00
Waqas Hussain
87af4a64f3 modulemanager: Removed unused variables and reference to core.discomanager 2009-08-18 12:55:37 +05:00
Waqas Hussain
e6991edfc5 modulemanager: Removed unnecessary code in the unload function 2009-08-18 12:54:16 +05:00
Waqas Hussain
ed8982a1e9 modulemanager: Removed legacy disco#items hook 2009-08-18 12:52:44 +05:00
Waqas Hussain
f56e892bf8 modulemanager: add_feature and add_identity APIs updated to use only the add_item API 2009-08-18 12:51:14 +05:00
Waqas Hussain
ff0bd781d2 modulemanager: Added module API function to get all items for a given host based on a key 2009-08-18 12:35:42 +05:00
Waqas Hussain
d772917f2d modulemanager: Module API functions add_item and add_feature updated to use the add_item API 2009-08-18 12:34:59 +05:00
Waqas Hussain
49c8f89be2 modulemanager: Changed the add_identity module API to accept an optional name parameter (the 'name' attribute for the <identity/> element) 2009-08-18 12:32:38 +05:00
Waqas Hussain
3900d20a7c Added: functions add_item and remove_item to add and remove items to the module API 2009-08-18 12:30:06 +05:00
Waqas Hussain
8b5ca7aabb modulemanager: Added get_option(name, default_value) to plugin API 2009-07-25 18:37:05 +05:00
Matthew Wild
118883d655 Remove version number from copyright headers 2009-07-10 03:11:45 +01:00
Matthew Wild
b20127b81a modulemanager: Small code improvement, move autoloaded modules list to the top of the file 2009-07-09 14:37:04 +01:00
Matthew Wild
455e77f21d configmanager, modulemanager: Allow components to have modules specified in the config (but don't load the global set of modules for them) 2009-07-09 14:34:49 +01:00
Waqas Hussain
d28fa4c70b modulemanager: Don't close stream on stream:error with unsupported-stanza-type (fixes #102) 2009-06-29 15:26:04 +05:00
Matthew Wild
f00a5d70b3 Automated merge with http://waqas.ath.cx:8000/ 2009-06-23 15:58:56 +01:00
Matthew Wild
a977acec89 modulemanager: Expose api table to allow others to extend the module API 2009-06-23 01:48:01 +01:00
Waqas Hussain
3f141a44c2 modulemanager: Enabled access to the module API from plugin libraries 2009-06-23 02:15:04 +05:00
Matthew Wild
4e32c53614 modulemanager: Fix copy/paste error, should be name instead of module_name 2009-06-22 21:54:34 +01:00
Matthew Wild
e418f8a9c6 modulemanager: Call 'load' method when loading a module 2009-06-22 02:58:05 +01:00
Waqas Hussain
dc5b5334b8 modulemanager: Added simple module:require implementation 2009-06-21 19:15:59 +05:00
Waqas Hussain
547e4f28d6 modulemanager: Removed unused function get_module_filename(name) 2009-06-14 21:06:43 +05:00
Waqas Hussain
376256439e modulemanager: Changed to use util.pluginloader 2009-06-14 21:03:59 +05:00
Waqas Hussain
100822df21 modulemanager: Change the ideitity attribute typ to type 2009-06-13 00:07:16 +05:00
Waqas Hussain
cfb4654a31 modulemanager: Added function add_identity(category, type) to the modules API 2009-06-12 14:32:32 +05:00
Matthew Wild
aa79672dbd modulemanager: Use module_name in log entry to fix 'error initialising module "nil"' error 2009-06-08 13:25:10 +01:00
Matthew Wild
78259b97be modulemanager: Don't require xmlns to be non-nil 2009-06-06 17:17:16 +01:00
Matthew Wild
650013e7ec modulemanager: module:log() -> self:log() fix 2009-06-06 17:15:26 +01:00
Matthew Wild
ca4e395f0c modulemanager: Allow setting priority of stanza handlers 2009-06-06 17:08:47 +01:00