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_method
> > def __call__(request, object_id=None):
> > m=get_object_or_404(Message, pk=object_id)
> > return render_to_response('message_detail.html', {'message': m})
> > --------------------------------------------------------------------------------
> >
>
> error: name 'static_method' is not definedRight, that should be "staticmethod" not "static_method". Sorry about that. -Forest
signature.asc
Description: Digital signature

