Tags:
create new tag
view all tags
I'm getting irritated by the difference between URL parameters and TWiki variables, something which I've never really understood, so I thought I'd explain and see if an argument develops.

IMHO a url parameter is just a transitory preference definition. I cannot see the rationale for %URLPARAM - it looks like something that was added as a quick hack. To my mind, saying ?fred=blah should define the preference variable %fred% for the duration of the request. At the same time, the arcane support for default values for URL params should be extended to TWiki variables, so that you can say %MYVAR{default="a value"}% (or %fred{default="a value"}% which should be synonymous with %URLPARAM{"fred" default="a value"}%.

Counter-arguments?

-- CrawfordCurrie - 09 Nov 2005

What happens if I have defined a local TWiki variable of the same name? Which value will be taken during view?

This proposal definitely would make some TWikiApplications more -- transparent, consistent, ... searching for the right term. smile

-- FranzJosefSilli - 09 Nov 2005

no counter argument from me - I want to see only one type of variable, the distinctions and different evaluation paths make me sad

-- SvenDowideit - 09 Nov 2005

The value taken during view should be the closest enclosing scope. The request is the narrowest possible scope, so values in the request should always override those defined in preferences (exception: ALLOWTOPICCHANGE which SHOULD NOT BE A PREFERENCES)

-- CrawfordCurrie - 09 Nov 2005

I've said it before and I'll say it again, access control "settings" are not preferences. View them being so as a quick kludge to get TWiki up and running that we are now stuck with.

Access control should be out-of-band. Look at any other system such as your file ssytem. The access control is not part of the file content.

-- AntonAylward - 09 Nov 2005

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-11-09 - AntonAylward
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.