• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 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.

Note the three lines from spec below:

Input:                      Return:
  ( 'Web1', 'Web2.Topic' )    ( 'Web2', 'Topic' )
  ( '%MAINWEB%', 'Web2.Topic' ) ( 'Main', 'Topic' )
  ( '%TWIKIWEB%', 'Web2.Topic' ) ( 'TWiki', 'Topic' )

Normally, the Web2 overrides the $web parameter, unless that parameter was either the main or the twiki web.

It sure would be better to treat this consistently...

-- TW

Indeed, that is inconsistent. Cairo had this doc:

Input:                      Return:
  ( "Web",  "Topic" )         ( "Web",  "Topic" )
  ( "",     "Topic" )         ( "Main", "Topic" )
  ( "",     "" )              ( "Main", "WebHome" )
  ( "",     "Web/Topic" )     ( "Web",  "Topic" )
  ( "",     "Web.Topic" )     ( "Web",  "Topic" )
  ( "Web1", "Web2.Topic" )    ( "Web2", "Topic" )

So clearly, if "Web1" is "%MAINWEB%", "%TWIKIWEB%", or anything else, and topic is "Web2.Topic", the function should return ( "Web2", "Topic" )

-- PTh

Changing to defect based on PTh's description of the Cairo behavior.

-- TW

This is just a typo in the pod documentation. The behaviour is fine, in most cases. I improved the doc, added a testcase, and it shows up a problem with hierarchical web names, however (%MAINWEB%.Web is not always expanded).

CC

4.1.0 released

KJL

ItemTemplate
Summary Spec for normalizeWebTopicName is inconsistent
ReportedBy TWiki:Main.ThomasWeigert
Codebase 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4
SVN Range Thu, 29 Jun 2006 build 10750
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins 11001 11002 11003 11052
TargetRelease minor
Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2007-01-16 - KennethLavrsen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback