oops. forgot to add addin.xml for GridInfoPlugin. also, slight

reordering of plugin initialisation to ensure that it will return base
information about grid, even if [GridInfo] config section is not
there.
0.6.0-stable
Dr Scofield 2008-07-25 17:06:26 +00:00
parent b5f23b4c9c
commit c724e38433
2 changed files with 13 additions and 1 deletions

View File

@ -82,13 +82,14 @@ namespace OpenSim.ApplicationPlugins.GridInfo
}
_info["platform"] = "OpenSim";
_httpd.AddXmlRPCHandler("get_grid_info", XmlRpcGridInfoMethod);
IConfig gridInfoConfig = _app.ConfigSource.Source.Configs["GridInfo"];
foreach (string k in gridInfoConfig.GetKeys())
{
_info[k] = gridInfoConfig.GetString(k);
}
_httpd.AddXmlRPCHandler("get_grid_info", XmlRpcGridInfoMethod);
}
catch (NullReferenceException)
{

View File

@ -0,0 +1,11 @@
<Addin id="OpenSim.ApplicationPlugins.GridInfo" version="0.1">
<Runtime>
<Import assembly="OpenSim.ApplicationPlugins.GridInfo.dll"/>
</Runtime>
<Dependencies>
<Addin id="OpenSim" version="0.5" />
</Dependencies>
<Extension path = "/OpenSim/Startup">
<Type type="OpenSim.ApplicationPlugins.GridInfo.GridInfoPlugin" />
</Extension>
</Addin>