def __init__(self, place, purpose): Decorator.__init__(self, func=Decorator.UNDEFINED_FUNCTION) self.place = place self.purpose = purpose
def valid(self, request, *args, **kwargs): """Return response when ticket is valid.""" self.login(request, *args, **kwargs) return Decorator.run(self, request, *args, **kwargs)