Feature Proposal: Make TWiki::UI::Save::_save available outside of its module
Motivation
When implementing savemulti for
SectionalEditPlugin, I found that the TWiki::UI::Save package was very easy to reuse, where in the previous versions of TWiki large portions of code had to be duplicated.
However, this reuse hinges on the fact that I called TWiki::UI::Save::_save from outside of this package. There is a warning in the code related to that subroutine stating that
# Private - do not call outside this module!
In order to support reuse, I request that this subroutine is made public. Any plugin that needs to modify how text is edited and subsequently saved and uses the savemulti style will need access to TWiki::UI::Save::_save.
Description
Really nothing is required other than freezing the API of this function.
Impact and Available Solutions
Documentation
I will add documentation if feature is accepted.
Examples
See
SectionalEditPlugin.
Implementation
The interface to Store has been heavily reworked, and includes simple methods for saving topics. On the assumption that this is what's needed I'm setting this to "done".
--
CrawfordCurrie - 13 Feb 2005
Discussion: