'Returns the raw data for this column.
No filters or formatting are applied to the returned data.
This is useful when doing calculations on data in the table.'

def get_raw_data(self, datum):

    if callable(self.transform):
        data = self.transform(datum)
    elif (isinstance(datum, collections.Mapping) and (self.transform in datum)):
        data = datum.get(self.transform)
    else:
        data = getattr(datum, self.transform, None)
        if (not hasattr(datum, self.transform)):
            msg = "The    attribute    %(attr)s    doesn't    exist    on    %(obj)s."
            LOG.debug(termcolors.colorize(msg, **PALETTE['ERROR']), {'attr': self.transform, 'obj': datum})
    return data
