Item2161: Some WebPreferences topics still refer to TWikiAccessControl etc.
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Web Site
Component:
Branches:
Most of the webs on this site mention
TWikiAccessControl,
TWikiAdminGroup,
TWikiForms,
TWikiLogos on their
WebPreferences page.
For instance
Home or
Search for others...
I think these should be changed to
System.AccessControl,
Main.AdminGroup,
System.DataForms respectively ??
(I'd do it myself if I had sufficient privileges)
As I'm lazy, I used perl:
perl -i.twiki -ple 'BEGIN{@ARGV=grep{!/^(?:Legacy|TWiki)/}@ARGV}s/TWiki(AccessControl|AdminGroup|SiteTools|WebLinks)/$1/g;s/TWikiForms/DataForms/g;s/TWikiPreferences/SitePreferences/g;s/TWiki(Logos|Contributor)/Project$1/g;s/T(WikiGuest)/$1/g;s/%TWIKIWEB%/System/g;s/TWiki(Registration)/User$1/g;s/TWikiDocumentation/CompleteDocumentation/g;print STDERR "$ARGV:$. $_" if /TWiki/i' */Web*.txt 2>&1|grep --color -i twiki
I leave the command here as it might be useful for somebody upgrading from TWiki.
One may remove the .twiki once confirmed I haven't screwed anything up (checked, but...)
--
OlivierRaginel - 06 Oct 2009
Hi Olivier - I'm not sure if your perl magic extended to the subwebs of International? e.g.
http://foswiki.org/International/DE/WebPreferences
--
EliotBlennerhassett - 07 Oct 2009
No, indeed, it did not process the sub-webs. I've just ran the command again with =*/*/Web*.txt+ so they should be fine now.
--
OlivierRaginel - 07 Oct 2009