azavea/OpenTreeMap — Issue #6: Max DBH and height validations need to return strings
Author: alsaihn
Created: 2012-03-05 20:47:25+00:00
State: open

Two tree model validation methods (for species-based max dbh and height) are not returning correctly when those tests fail.

The two problem lines are:
return self.dbh + " (species max: " + self.species.v_max_dbh + ")"
and
return self.height + " (species max: " + self.species.v_max_height + ")"

and should look something like:
return "%s (species max: %s)" % str(self.dbh), self.species.v_max_dbh

**reported in the user group: http://groups.google.com/group/opentreemap-user/browse_thread/thread/12498388165f2d24?hl=en