On Thu, Feb 2, 2012 at 2:03 PM, Cosmia Luna <cosm...@gmail.com> wrote:
> Since the 1.3-branch is in alpha status now, I have little confidence using
> it.
> I tried simply copying the code from 1.3a6 but it failed to work.
> It seems that I have to wait before 1.3-branch is stable.
>
> Thanks
>
> Cosmia

I suspect that the quality of the 1.3 branch is actually very good,
but if you'd rather stick to 1.2, you could do something like this:

def my_view(name, **kwargs):
    kwargs.setdefault('context', 'package.views.someview.SomeView')
    return view_config(name, **kwargs)

And then use @my_view as a decorator instead of @view_config

Hope that helps,

Simon

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

Reply via email to