#143 — setEnabled fails with inappropriate type comparison

StateResolved
Version: 1.2
AreaFunctionality
Issue typeBug
SeverityMedium
Submitted byKai Lautaportti
Submitted onSep 10, 2008
Responsible Ricardo Newbery
Target release: 1.2.1
Return to tracker
Last modified on Feb 28, 2009 by Ricardo Newbery
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 byRicardo NewberyonFeb 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.