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
parent
b5f23b4c9c
commit
c724e38433
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue