• 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.

Please make TWiki more consistent.

In many programming languages, quoting a string is not only acceptable, it's required. In the parameters of many TWiki plugins, quotes are required, e.g. TOC{depth="2"}

But if I

  * Set AUTOLINK "off"

that silently fails. I was supposed to use

  * Set AUTOLINK off

IN responding to Item2752, KJL wrote

"off" actually means on because anything else than an empty string or not defined at all means "true"

It's just plain wrong that off means off but "off" means on.

Please make TWiki understanding of strings more consistent throughout.

Actually neither syntax is correct. You really wanted
  • Set NOAUTOLINK = on
There are loads of these kinds of double-negatives floating around, and many, many cases where "off" really means "on". To correct them all is a mammoth task, and will break many existing sites that unconciously rely on "off" meaning "on". A better approach would be to fix the doc so that the user is advised to
  • Set NOAUTOLINK = enabled

I have confirmed that NOAUTOLINK works as specified.

Because Vicky got the syntax wrong the point of the bug report got lost I think.

All this means NOAUTOLINK enabled (autolink disabled).

  • Set NOAUTOLINK = 1
  • Set NOAUTOLINK = Kenneth
  • Set NOAUTOLINK = Disabled
  • Set NOAUTOLINK = "off"
  • Set NOAUTOLINK = False

And this means NOAUTOLINK disabled (autolink enabled).

  • Set NOAUTOLINK = 0
  • Set NOAUTOLINK = off

This is what can be confusing. Why does anything translate into "True" and only the exact string 0 or Off (case insensitive) means off?

We could revert the meaning. Then the question people will ask is: "Why does * Set NOAUTOLINK = "activated" mean off? It does not help anyone. We could consider if the value "off" in quotation marks should be seen as off but it is a very small patch on this.

And we cannot start reporting errors either because you may very well sometimes want to set a variable to a value with quotation marks.

I do not have an easy answer to this one. It would require a complete new feature to set variables.

As it it now I can only see discarding as the action on this bug report.


Summary "off" is not the same as off
ReportedBy TWiki:Main.VickiBrown
Codebase 4.0.4
SVN Range TWiki-4.1-beta1, Sun, 23 Jul 2006, build 11129
AppliesTo Engine

Priority Normal
CurrentState No Action Required


TargetRelease n/a
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r4 - 2006-08-13 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback