| Module name | save SaveCgiScript |
| Location | TWIKIROOT/bin/save |
| Summary | When user saves changes, this writes changes to the data store |
| Primary Author | PeterThoeny |
Purpose
This
SlimCgiScript? commits changes at the end of the
EditPreviewViewWorkflow
Used by
One of:
- This script is part of the following CgiScriptWorkflow? : EditPreviewViewWorkflow
- This cgi script is invoked by the user when they have finished previewing.
Diagram:
TWiki Modules used
This CGI script depends on the following TWiki modules for functionality:
External Modules used
This CGI script also depends on the following external modules:
PublicMethods?
This section lists the methods that can be used by the scripts and by other modules
PrivateMethods?
These do not need to be not documented yet
Please see
CodevDocumentationProject and
CodevDocumentationProjectDev for comments on the format of these pages.
--
MartinCleaver - 23 Jun 2002
For the plugins and skins that have bypassed this preview, is this script still called? What are save's preconditions? Are they being met?
--
MartinCleaver - 24 Jun 2002
params:
(standard +)
newtopic
%CODE{"perl"}%
sub save
# wikiUserName
# check permission for undocumented cmd=... parameter
# get text and other parameters ( text, templatetopic, unlock, dontNotify )
# check if proper use of save script ( text, empty text (empty text error should go away --wbniv) )
# submitChangeForm: changeForm, return
# decodeSpecialChars
# repRev / topicparent, forms
# saveTopic, error checking
%ENDCODE%
I'm looking for somewhere that documents the url parameters that the save script accepts. Should it be documented here of should there be a
SaveDotPm topic?
--
SamHasler - 03 Sep 2004