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.

But is fall in this error:
'ParticipanteView' object has no attribute 'method'

PS:
I have already set the attribute method in this class:
method = ''

The error occurs no more, but nothig get cached.


Any ideia?

Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to