From f6e4d95c6f510dc4e539e8c7d9908b0a6181ff78 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Mon, 17 May 2010 22:09:01 +0200 Subject: [PATCH] PubSub: node_flat becomes default plugin (thanks to Karim Gemayel)(EJAB-1077) --- src/mod_pubsub/mod_pubsub.erl | 6 +- src/mod_pubsub/mod_pubsub_odbc.erl | 8 +- src/mod_pubsub/node.template | 56 +- src/mod_pubsub/node_buddy.erl | 60 +- src/mod_pubsub/node_club.erl | 60 +- src/mod_pubsub/node_dag.erl | 64 +- src/mod_pubsub/node_dispatch.erl | 38 +- src/mod_pubsub/node_flat.erl | 898 ++++++++++++++++++++++++-- src/mod_pubsub/node_flat_odbc.erl | 62 +- src/mod_pubsub/node_hometree.erl | 896 ++----------------------- src/mod_pubsub/node_hometree_odbc.erl | 6 +- src/mod_pubsub/node_mb.erl | 2 +- src/mod_pubsub/node_pep.erl | 52 +- src/mod_pubsub/node_pep_odbc.erl | 74 +-- src/mod_pubsub/node_private.erl | 60 +- src/mod_pubsub/node_public.erl | 60 +- src/mod_pubsub/nodetree_tree_odbc.erl | 2 +- 17 files changed, 1202 insertions(+), 1202 deletions(-) diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index c25160672..fc370a4c2 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -258,7 +258,7 @@ init_send_loop(ServerHost, State) -> %% node_plugin. The 'node_' prefix is mandatory.

%%

The modules are initialized in alphetical order and the list is checked %% and sorted to ensure that each module is initialized only once.

-%%

See {@link node_hometree:init/1} for an example implementation.

+%%

See {@link node_flat:init/1} for an example implementation.

init_plugins(Host, ServerHost, Opts) -> TreePlugin = list_to_atom(?TREE_PREFIX ++ gen_mod:get_opt(nodetree, Opts, ?STDTREE)), @@ -1912,7 +1912,7 @@ delete_node(Host, Node, Owner) -> %% Node = pubsubNode() %% From = jid() %% JID = jid() -%% @see node_hometree:subscribe_node/5 +%% @see node_flat:subscribe_node/5 %% @doc

Accepts or rejects subcription requests on a PubSub node.

%%

There are several reasons why the subscription request might fail:

%%