diff -up ./tw2/jit/widgets/sqla.py.orig ./tw2/jit/widgets/sqla.py --- ./tw2/jit/widgets/sqla.py.orig 2011-03-27 01:11:56.556813628 -0400 +++ ./tw2/jit/widgets/sqla.py 2011-03-27 01:15:45.626366949 -0400 @@ -29,6 +29,8 @@ class SQLARadialGraph(AjaxRadialGraph): show_relations = twc.Param("(bool) show relationships?", default=True) show_attributes = twc.Param("(bool) show attributes?", default=True) + auto_label = twc.Param("(bool) prefix node names with with class name?", default=True) + depth = twc.Param("(int) number of levels of relations to show.", default=3) def prepare(self): @@ -126,8 +128,9 @@ class SQLARadialGraph(AjaxRadialGraph): return { 'id' : node_id, - 'name' : "%s: %s" % ( - tw2.core.util.name2label(type(obj).__name__), unicode(obj)), + 'name' : cls.auto_label and "%s: %s" % ( + tw2.core.util.name2label(type(obj).__name__), unicode(obj)) + or unicode(obj), 'children' : children, 'data' : data, }