View Issue Details

IDProjectCategoryView StatusLast Update
0003171Slicer4Core: Documentation and Wikipublic2014-03-06 04:58
Reporterjcfr Assigned Tojcfr  
PriorityhighSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.3.0Fixed in VersionSlicer 4.3.0 
Summary0003171: Fix redirection failure by remove disclaimer
Description

Example of failing redirect: http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Extensions/SwissSkullStripper

TagsNo tags attached.

Relationships

related to 0002887 closedjcfr Minimize confusion by adding disclaimer on top of old wiki page 

Activities

jcfr

jcfr

2013-07-25 08:11

administrator   ~0009190

Fixed by using the following script:

// -----------------
import mwdoc
doc = mwdoc.Documentation('slicer.org', '/slicerWiki/')
doc.login('UpdateBot', 'XXXXXXX')

Prepend documentation/versioncheck template. See http://na-mic.org/Mantis/view.php?id=2887 [^]

for version in ['4.0', '4.1', '4.2', 'Nightly']:
pages = doc.listPages('Documentation/%s/Extensions' % version)
for page in pages:
text = page.edit()
if '#REDIRECT' in text and '<noinclude>{{documentation/versioncheck}}</noinclude>\n' in text:
print("[INFO] Page '%s' need update" % page.name)
text = text.replace('<noinclude>{{documentation/versioncheck}}</noinclude>\n', '')
page.save(text, summary='Remove documentation/versioncheck from redirect page. See http://na-mic.org/Mantis/view.php?id=3171')
print "[INFO] Saving page: '%s'" % page.name
// -----------------

jcfr

jcfr

2014-03-06 04:56

administrator   ~0010817

Closing resolved issues that have not been updated in more than 3 months

Issue History

Date Modified Username Field Change
2013-06-16 09:43 jcfr New Issue
2013-06-16 09:43 jcfr Status new => assigned
2013-06-16 09:43 jcfr Assigned To => jcfr
2013-06-16 09:44 jcfr Priority normal => high
2013-06-16 09:44 jcfr Target Version => Slicer 4.3.0
2013-06-16 09:44 jcfr Description Updated
2013-06-16 09:45 jcfr Relationship added related to 0002887
2013-07-25 08:11 jcfr Note Added: 0009190
2013-07-25 08:11 jcfr Status assigned => resolved
2013-07-25 08:11 jcfr Fixed in Version => Slicer 4.3.0
2013-07-25 08:11 jcfr Resolution open => fixed
2014-03-06 04:56 jcfr Note Added: 0010817
2014-03-06 04:58 jcfr Status resolved => closed
2016-06-20 14:15 jcfr Category Core: Documentation & Wiki => Core: Documentation and Wiki