25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

make flat the default node plugin

SVN Revision: 2116
This commit is contained in:
Christophe Romain 2009-05-29 00:27:26 +00:00
parent db6a8c2e05
commit 497d4d26bb
2 changed files with 5 additions and 5 deletions

View File

@ -230,7 +230,7 @@ init([ServerHost, Opts]) ->
%% <em>node_plugin</em>. The 'node_' prefix is mandatory.</p> %% <em>node_plugin</em>. The 'node_' prefix is mandatory.</p>
%% <p>The modules are initialized in alphetical order and the list is checked %% <p>The modules are initialized in alphetical order and the list is checked
%% and sorted to ensure that each module is initialized only once.</p> %% and sorted to ensure that each module is initialized only once.</p>
%% <p>See {@link node_default:init/1} for an example implementation.</p> %% <p>See {@link node_hometree:init/1} for an example implementation.</p>
init_plugins(Host, ServerHost, Opts) -> init_plugins(Host, ServerHost, Opts) ->
TreePlugin = list_to_atom(?TREE_PREFIX ++ TreePlugin = list_to_atom(?TREE_PREFIX ++
gen_mod:get_opt(nodetree, Opts, ?STDTREE)), gen_mod:get_opt(nodetree, Opts, ?STDTREE)),
@ -1570,7 +1570,7 @@ delete_node(Host, Node, Owner) ->
%% Node = pubsubNode() %% Node = pubsubNode()
%% From = jid() %% From = jid()
%% JID = jid() %% JID = jid()
%% @see node_default:subscribe_node/5 %% @see node_hometree:subscribe_node/5
%% @doc <p>Accepts or rejects subcription requests on a PubSub node.</p> %% @doc <p>Accepts or rejects subcription requests on a PubSub node.</p>
%%<p>There are several reasons why the subscription request might fail:</p> %%<p>There are several reasons why the subscription request might fail:</p>
%%<ul> %%<ul>
@ -3017,7 +3017,7 @@ select_type(ServerHost, Host, Node) ->
features() -> features() ->
[ [
%TODO "access-authorize", % OPTIONAL %TODO "access-authorize", % OPTIONAL
"access-open", % OPTIONAL this relates to access_model option in node_default "access-open", % OPTIONAL this relates to access_model option in node_hometree
"access-presence", % OPTIONAL this relates to access_model option in node_pep "access-presence", % OPTIONAL this relates to access_model option in node_pep
%TODO "access-roster", % OPTIONAL %TODO "access-roster", % OPTIONAL
"access-whitelist", % OPTIONAL "access-whitelist", % OPTIONAL

View File

@ -62,7 +62,7 @@
%%% @type nodeType() = string(). %%% @type nodeType() = string().
%%% <p>The <tt>nodeType</tt> is a string containing the name of the PubSub %%% <p>The <tt>nodeType</tt> is a string containing the name of the PubSub
%%% plugin to use to manage a given node. For example, it can be %%% plugin to use to manage a given node. For example, it can be
%%% <tt>"default"</tt>, <tt>"collection"</tt> or <tt>"blog"</tt>.</p> %%% <tt>"flat"</tt>, <tt>"hometree"</tt> or <tt>"blog"</tt>.</p>
%%% @type jid() = #jid{ %%% @type jid() = #jid{
%%% user = string(), %%% user = string(),
@ -92,7 +92,7 @@
-record(pubsub_node, {nodeid, -record(pubsub_node, {nodeid,
id, id,
parent, parent,
type = "default", type = "flat",
owners = [], owners = [],
options = [] options = []
}). }).