Re: custom view decorator with parameter

2009-11-03 Thread bruno desthuilliers
On 2 nov, 19:39, nostradamnit wrote: > I'm trying to write a custom view decorator that takes a parameter, > and I can't for the life of me figure out how to pass the parameter. > I've tried the nested function pattern, the class with __init__ and > __call__ methods pattern, and I always run into

custom view decorator with parameter

2009-11-02 Thread nostradamnit
I'm trying to write a custom view decorator that takes a parameter, and I can't for the life of me figure out how to pass the parameter. I've tried the nested function pattern, the class with __init__ and __call__ methods pattern, and I always run into the same basic error. It either says I have t