Brent Tubbs  committed bfdda6d

make it clear where Tool comes from in customtools.rst

  • Participants
  • Parent commits b0c4821

Comments (0)

Files changed (1)

File sphinx/source/progguide/extending/customtools.rst

         if cherrypy.request.login not in users:
             raise cherrypy.HTTPError("401 Unauthorized")
- = Tool('on_start_resource', 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