'Given the value of ``self`` on ``records``, inverse the computation.'

def determine_inverse(self, records):

    if isinstance(self.inverse, basestring):
        getattr(records, self.inverse)()
    else:
        self.inverse(records)
