Some Plugins may have a dependence on another Plugin:
- other plugin might be required for it to work
- might give enhanced functionality e.g. the presence of the SessionPlugin gives extra capability to the TigerSkinPlugin.pm
How should dependency be:
At present implementation could be:
- Check for presence of Plugin topic - not a guarantee that the plugin is actually present
- Check for presence of Plugin .pm file
Alternatively an array of enabled plugins could be supplied or a query written that indicates if a certain plugin is present. Would this be worth having?
Dependencies should be documented in the relavent section in the
Plugins Web.
A plugin should fail initialisation and call writeWarning if a necesary dependency is missing.
--
JohnTalintyre - 30 Jul 2001
This strikes me as being useful, but in the interests of gettting the
TWikiSpring2001 out soon, it might be best just to document the dependencies in the plugin pages, and leave any code changes till later.
--
RichardDonkin - 01 Aug 2001