Re: method as view

2007-07-15 Thread Forest Bond
On Sun, Jul 15, 2007 at 03:34:40PM -0500, Carl Karsten wrote: > Forest Bond wrote: > > I'm not even sure if this sort of thing is possible, but it might be: > > > > > > class MsgViews(object): > > > > @static_met

Re: method as view

2007-07-15 Thread Collin Grady
You are going to run into problems with that - model inheritance does not work. --~--~-~--~~~---~--~~ 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.co

Re: method as view

2007-07-15 Thread Carl Karsten
Forest Bond wrote: > On Sun, Jul 15, 2007 at 02:59:57PM -0500, Carl Karsten wrote: >> How can I use a method as a view? (so that I can subclass and extend later.) >> >> foo works, the other 2 give errors: >> >> # msg/urls.py >> from django.conf.urls.defaults import * >> urlpatterns = patterns('ms

Re: method as view

2007-07-15 Thread Forest Bond
On Sun, Jul 15, 2007 at 02:59:57PM -0500, Carl Karsten wrote: > > How can I use a method as a view? (so that I can subclass and extend later.) > > foo works, the other 2 give errors: > > # msg/urls.py > from django.conf.urls.defaults import * > urlpatterns = patterns('msg.views', > (r'^det

method as view

2007-07-15 Thread Carl Karsten
How can I use a method as a view? (so that I can subclass and extend later.) foo works, the other 2 give errors: # msg/urls.py from django.conf.urls.defaults import * urlpatterns = patterns('msg.views', (r'^detail/(?P[-\w]+)/$', 'foo'), (r'^detail/x/(?P[-\w]+)/$', 'MsgViews.message_de