def api_karma(request): stuff = request.context.stuff karma = get_karma(stuff) return {'stuff': stuff, 'karma': karma}
def _callFUT(self, *args, **kwargs): from karmaid.karma import get_karma return get_karma(*args, **kwargs)