This is the Bugs topic for
TWiki:Codev/ReadOnlyAndMirrorWebs
features.
--
TWiki:Main/HideyoImazu
- 2012-08-23
Revision 23443
- %CONTENTMODE{web="WEB"}% variable has been introduced.
- %READONLY% has been removed because it's less versatile than %CONTENTMODE{web="WEB"}%.
- TWiki::Func::getContentMode() has been moved to TWiki::getContentMode() and now TWiki::Func::getContenMode() merely calls TWiki::getCOntentMode().
- ReadOnlyAndMirrorWebs has been refined.
Revision 23479
- %MASTERSITENAME% was defined in TWiki::new() if metadata repository is in use as if %MASTERSITENAME% is defined in WebPreferences. There should be no good reason for that, hence that code has been deleted.
- %SITENAME% and TWiki::Func::getSiteName() have been introduced.
- Documentation has been updated accordingly.
Revision 23480
- TWiki.IfStatements updated with context
-
content_master
and content_slave
contexts have been added.
-
mirror
context deleted because it no longer exists.
Revision 23593
- %CONTENTMODE% was not registered as a tag though the corresponding function was there.
Revision 23759
- TWiki::Func::getMasterWebScriptUrl() is made more like TWiki::Func::ScriptUrl()
Revision 24033
- TWiki::Store::getListOfWebs()
- It was not possible to get the complete list of webs and subwebs if
{Mdrepo}{WebRecordRequired}
is true. This was a show stopper for bin/statistics
and tools/mailnotify
.
- A new filter word
writable
is introduced. This is similar to canmoveto
but writable
yields all webs writable on the site regardless of disk whereas canmoveto
yeilds all webs writable and on the same disk as the current web.
Revision 24248
Revision 24398 and 24399
Revision 24445
On lib/TWiki.spec, read-only and mirror web related configuration parameters were:
$TWiki::cfg{SiteName} = 'am';
$TWiki::cfg{ScriptOnMaster}{edit} = 1;
$TWiki::cfg{ScriptOnMaster}{save} = 1;
$TWiki::cfg{ScriptOnMaster}{attach} = 1;
$TWiki::cfg{ScriptOnMaster}{upload} = 1;
$TWiki::cfg{ScriptOnMaster}{rename} = 1;
Now they are:
$TWiki::cfg{ReadOnlyAndMirrorWebs}{SiteName} = 'am';
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{edit} = 1;
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{save} = 1;
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{attach} = 1;
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{upload} = 1;
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{rename} = 1;
Those used to be under it's own top level section (---+ Read-only and mirror webs). But now, they are under "Large Site" top level secion.
All the changes derived from that are made.
--
TWiki:Main.HideyoImazu
- 2012-12-12
Revision 24571
As per TWiki:Main/PeterThoeny's suggestion, the following lines are consolidated
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{edit} = 1;
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{save} = 1;
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{attach} = 1;
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{upload} = 1;
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster}{rename} = 1;
into
$TWiki::cfg{ReadOnlyAndMirrorWebs}{ScriptOnMaster} = 'edit,save,attach,upload,rename';