Re: Using cache_page decorator with callable cllasses

2009-01-07 Thread bruno desthuilliers
On 7 jan, 20:13, "Elton Okada" wrote: > Hello, I wish to use a callable class to anwser this URL: > > urlpatterns = patterns('voduBBB.servicos.views', > (r'^participantes/$', ParticipanteView()), > ) > > It is OK. > > Now I wish to cache the result of ParticipanteView() using this > decorator

Using cache_page decorator with callable cllasses

2009-01-07 Thread Elton Okada
Hello, I wish to use a callable class to anwser this URL: urlpatterns = patterns('voduBBB.servicos.views', (r'^participantes/$', ParticipanteView()), ) It is OK. Now I wish to cache the result of ParticipanteView() using this decorator: @cache_page(60) at the __call__ method of this class.