Tags:
create new tag
, view all tags
Module name rename RenameCgiScript
Location TWIKIROOT/bin/rename
Summary Functionality to rename a topic
Primary Author PeterThoeny

CVS history http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/twiki/twiki/bin/rename
CVS alpha http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/twiki/twiki/bin/rename?rev=HEAD&content-type=text/vnd.viewcvs-markup
Contributing authors (see CVS History)
IsClass NO - is FatCgiScript
First TWikiRelease twiki-20010901-release

Purpose

To implement everything needed when relocating a topic. This might be as a different name within a web, as the same name to a different web or as a different name in a different web.

Used by

One of:

  • This cgi script is invoked by the user when the More | Move/Rename link is followed.

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

There is no %WIKIWORD% directive to implement a rename, this would be needed if this functionality were to be exposed to a WikiControlLanguage

This is a FatCgiScript. To rectify, consider the following:

  1. Move routines that implement the rename to a module in the backend, perhaps StoreDotPm:
    1. sub findReferringPages (would need passing values rather than the query object)
    2. sub gotLocks
    3. sub check (but perhaps better named as okayToRename)
  2. Leave these in RenameCgiScript:
    1. newTopicScreen, setVars, moreRefs

-- MartinCleaver - 24 Jun 2002

in the process of doing DeleteAccount I am going to move some of the functions into StoreDotPm

-- SvenDowideit - 31 Dec 2003

Topic revision: r4 - 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.