Tags:
create new tag
, view all tags
Module name save SaveCgiScript
Location TWIKIROOT/bin/save
Summary When user saves changes, this writes changes to the data store
Primary Author PeterThoeny

CVS history http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/twiki/twiki/bin/save
CVS alpha http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/twiki/twiki/bin/save?rev=HEAD&content-type=text/vnd.viewcvs-markup
Contributing authors (see CVS History)
IsClass NO
First TWikiRelease to be filled out

Purpose

This SlimCgiScript commits changes at the end of the EditPreviewViewWorkflow

Used by

One of:

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
  • none

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

Topic revision: r6 - 2006-05-04 - SamHasler
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.