Edgewall Software

Changes between Version 16 and Version 17 of WikiRename


Ignore:
Timestamp:
Mar 31, 2010, 3:32:19 PM (14 years ago)
Author:
Christian Boos
Comment:

remove part still talking about the branch and link to discussion in #3718

Legend:

Unmodified
Added
Removed
Modified
  • WikiRename

    v16 v17  
    44
    55Among the various possibilities for performing a rename, this implementation aims at simplicity. The page name is modified "in-place", i.e. the object identity is mutated and as such, the whole history is kept and becomes associated to the renamed wiki page.
    6 
    7  - Status: initial version, should work reasonably well.
    8  - View the changes: log:sandbox/wiki-rename
    9  - Test the branch, e.g.:
    10 {{{
    11 % svn co http://svn.edgewall.org/repos/trac/sandbox/wiki-rename
    12 % cd wiki-rename
    13 % python setup.py develop
    14 % python trac/web/standalone.py -p 8000 <your-test-environment>
    15 }}}
    166
    177You need to be a `WIKI_ADMIN` in order to be able to rename a page (or at the very least, have the new `WIKI_RENAME` permission).
     
    2313 - before the rename:
    2414
    25    || ''pagename'' || ''text'' || ''comment'' ||
     15   ||= pagename =||= text   =||= comment=||
    2616   || !WikiStart || version1 || comment1 ||
    2717   || !WikiStart || version2 || comment2 ||
     
    3020 - after the rename:
    3121
    32    || ''pagename'' || ''text'' || ''comment'' ||
     22   ||= pagename   =||= text   =||= comment=||
    3323   || !ProjectHome || version1 || comment1 ||
    3424   || !ProjectHome || version2 || comment2 ||
     
    3727   the !WikiStart page will be (optionally) recreated with a redirection to the new page:
    3828
    39    || ''pagename'' || ''text'' || ''comment'' ||
    40    || !WikiStart || See !ProjectHome ||Renamed !WikiStart to !ProjectHome  ||
     29   ||= pagename =||= text           =||= comment=||
     30   || !WikiStart || See !ProjectHome || !WikiStart → !ProjectHome  ||
    4131
    4232
     
    5444
    5545 * Would be nice to have a [http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2 HTTP 301 redirect] from the old wiki page to the new one, to keep searchengine rankings etc.
    56    - (cboos) right, real redirect is on the TODO list (#976)
     46   - (cboos) see ticket:3718#comment:3 (rather than #976)
    5747
    5848 * Another TODO: optionally rename sub-pages as well, and more generally, have the possibility to do batch renames