Commits

Brent Tubbs committed bfdda6d

make it clear where Tool comes from in customtools.rst

Comments (0)

Files changed (1)

sphinx/source/progguide/extending/customtools.rst

         if cherrypy.request.login not in users:
             raise cherrypy.HTTPError("401 Unauthorized")
 
-    cherrypy.tools.protect = Tool('on_start_resource', protect)
+    cherrypy.tools.protect = cherrypy.Tool('on_start_resource', protect)
 
 We can now enable it in the standard ways: a config file or dict passed to an
 application, a :ref:`_cp_config<cp_config>` dict on a particular class or