r4 - 04 May 2006 - 00:53:18 - SamHaslerYou are here: TWiki >  Codev Web > CodevDocumentationProject > RenameCgiScript
Tags:
, create new tag
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

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo