@aggregate(_(u'Avg. of'))
def aggregate_avg(items, col):
 try:
  return (aggregate_sum(items, col) / aggregate_count(items, col))
 except:
  log.warning(c.LOGMSG_WAR_DBI_AVG_ZERODIV)
  return 0.0

@ aggregate ( _ ( u'Avg. of' ) ) def aggregate_avg ( items , col ) : try : return ( aggregate_sum ( items , col ) / aggregate_count ( items , col ) ) except : log . warning ( c . LOGMSG_WAR_DBI_AVG_ZERODIV ) return 0.0
function to use on group by charts .