Tags:
create new tag
, view all tags

Question

Is there a way to "unset" a preference variable?

One issue I have discovered is that some plugins use preferences that are "set to anything is true".

The problem with this is that once set (for example in the site-wide prefs) there is no way to return it to "undef" so it appears as False (that I can see).

(In fact, IMO, these kinds of prefs should be 0/1 boolean types - using perl's undef is bad practice since its not a concept exposed to the user)

Is there a way to do this?

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: Lots plus a few I wrote!
Server OS: RedHat Linux FC3
Web server: Apache 2.0.52
Perl version: 5.8.5
Client OS: Windows XP
Web Browser: Firefox (of course! smile
Categories: Missing functionality

-- DarrenElkerton - 09 Oct 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Sorry, closing this after more than 30 days of inactivity. Please feel free to re-open if needed.

-- PeterThoeny - 03 Dec 2007

 
Change status to:
Topic revision: r2 - 2007-12-03 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.