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
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.
2 matches
Mail list logo