'Call the given callback on the main twisted thread after the
transaction has finished. Used to invalidate the caches on the
correct thread.'

def call_after(self, callback, *args, **kwargs):

    self.after_callbacks.append((callback, args, kwargs))
