websauna

404 The resource could not be found

喜夏-厌秋 提交于 2019-12-11 04:54:48
问题 Getting 404 Resource not found when trying to access a single item as anonymous i.e. no authenticated. I would expect instead a 403 Forbidden since I have setting permission on the view config. class BookShow(FormView): """Show one instance of a model.""" resource_buttons = [...] @view_config(route_name="book", context=BookResource, name="", renderer="site/workspace/book/single.html", permission="authenticated") def book(self): ... return locals() My views init has the traversal set as: self