TurboGears/tgext.pluggable — pull request #2 by devilicecream (2012-11-29 19:19:46+00:00)
Title: Added possibility to block controllers

Giving the 'block_controllers' parameter to the plug function when plugging an application, you will retrieve your default 404 page when trying to access the method specified.

Syntax:

plug(base_config, '', '', , block_controllers=[{'path':'','name':''}])

the path specified as 'path' MUST be the same as the one specified in the plug function.
If not specified in plug, it MUST be the same as