• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6916: Read-only and mirror web support

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement Closed   major 6.0.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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';

Edit | Attach | Watch | Print version | History: r40 < r39 < r38 < r37 < r36 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r40 - 2013-10-15 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback