On Dec 12, 2010, at 10:20 PM, Jerry wrote: > but not /with/ the 'name' argument (which gives the same error as that > in my previous post) -- > > <views.py> > @view_config(name='site1_view', route_name='site1', > renderer='templates/site1.pt') > </views.py> > > Maybe the doc could have made it clearer that view_config() 'name' and > 'route_name' arguments can not co-exist (for URL dispatch?).
They can coexist, but 'name' is frequently only supplied if traversal is used. When using Routes, name will not be populated so making a view registration that requires 'name' will cause it to not be found during view lookup. Cheers, Ben -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-de...@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.