r2 - 03 Dec 2007 - 02:31:24 - PeterThoenyYou are here: TWiki >  Support Web > HowToUnsetPreference
Tags:
, create new tag

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:
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo