SYSTEM WARNING: 'date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in '/usr/share/mantis/www/core.php' line 264

0001565: RecursiveNull object is not comparable - MantisBT Endian Bugtracker
Endian Issue Tracker





Please see now our new Bugtracker system: JIRA








View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001565Endian FirewallOther Servicespublic2009-02-16 14:462009-10-27 12:01
Reporterpeter-endian 
Assigned Topeter-endian 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version2.2-rc3 
Target Version2.3Fixed in Version2.3 
Summary0001565: RecursiveNull object is not comparable
DescriptionCheetah's RecursiveNull, which is used when a variable is not defined, is not comparable.

Cheetah expressions like this:

#if HA_ENABLED != 'on'

will always be False when the variable is not defined within the searchlist, even when replaced with RecursiveNull(), which is equal to ''

Fix:
add a comparator to the RecursiveNull class:

def __eq__(self, x):
    return x == ''
TagsNo tags attached.
Attached Files

- Relationships
child of 0001489closedpeter-endian Remote syslog not working 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2009-02-16 14:46 peter-endian New Issue
2009-02-16 14:46 peter-endian Assigned To => peter-endian
2009-02-16 14:46 peter-endian Issue generated from: 0001489
2009-02-16 14:46 peter-endian Relationship added child of 0001489
2009-02-16 15:08 peter-endian Status new => confirmed
2009-02-16 15:54 peter-endian Status confirmed => resolved
2009-02-16 15:54 peter-endian Fixed in Version => 2.3
2009-02-16 15:54 peter-endian Resolution open => fixed
2009-10-27 12:01 peter-endian Status resolved => closed

Copyright © 2005-2008 Endian, SRL. All rights reserved.


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker