Changed output of dump() method defined in BaseTemplateModel class

This commit is contained in:
rjy7 2010-09-10 15:01:57 +00:00
parent 57cbc5f1e0
commit c923bf7ba7
2 changed files with 2 additions and 1 deletions

View file

@ -255,6 +255,7 @@ public class IndividualController extends FreemarkerHttpServlet {
//data.put("vclassName", vclassName);
// RY We should not have references to a specific ontology in the vitro code!
// Figure out how to move this out of here.
boolean isPerson = individual.isVClass("http://xmlns.com/foaf/0.1/Person");
map.put("isPerson", isPerson);
if (isPerson) {

View file

@ -53,7 +53,7 @@ public abstract class BaseTemplateModel {
}
public String dump() {
return "I'm a BaseTemplateModel object";
return toString(); // fallback when subclass doesn't define a class-specific dump()
}
}