#143 — setEnabled fails with inappropriate type comparison

by Kai Lautaportti last modified Feb 28, 2009 05:43 AM
State Resolved
Version: 1.2
Area Functionality
Issue type Bug
Severity Medium
Submitted by Kai Lautaportti
Submitted on Sep 10, 2008
Responsible Ricardo Newbery
Target release: 1.2.1
On Plone 2.5.5 (AT 1.4.6-final) the CacheTool.setEnabled() method results in the "Refusing to change CacheSetup status.." message because the "value" parameter passed in is a string (e.g. '1') representing a boolean value which gets compared to an actual boolean value.

In case CacheFu should allow enabling, the comparison '1' == True fails and the error message results.
Steps to reproduce:
Create a plain Plone 2.5 site
Quickinstall CacheSetup
Go to the "Cache Configuration tool" configlet
Click "Save"
Added by Ricardo Newbery on Feb 28, 2009 05:43 AM
Issue state: UnconfirmedResolved
Responsible manager: (UNASSIGNED)newbery
Target release: None1.2.1
Fixed in svn... http://dev.plone.org/collective/changeset/81449

No responses can be added.