Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1190

Show
Ignore:
Timestamp:
07/09/06 20:00:23
Author:
fumanchu
Message:

Oops. Forgot to make default Tidy tools.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cptools.py

    r1177 r1190  
    145145#                              Builtin tools                              # 
    146146 
    147 from cherrypy.lib import cptools, encoding, static 
     147from cherrypy.lib import cptools, encoding, static, tidy 
    148148from cherrypy.lib import sessions as _sessions, xmlrpc as _xmlrpc 
    149149from cherrypy.lib import caching as _caching, wsgiapp as _wsgiapp 
     
    309309default_toolbox.wsgiapp = WSGIAppTool(_wsgiapp.run) 
    310310default_toolbox.caching = CachingTool() 
    311  
    312  
    313 del cptools, encoding, static 
     311default_toolbox.tidy = Tool('before_finalize', tidy.tidy) 
     312default_toolbox.nsgmls = Tool('before_finalize', tidy.nsgmls) 
     313 
     314 
     315del cptools, encoding, static, tidy 
  • trunk/cherrypy/lib/tidy.py

    r1070 r1190  
    5757                                                   original_body) 
    5858        elif strict_xml: 
    59             # The HTML is OK, but is it valid XML 
     59            # The HTML is OK, but is it valid XML? 
    6060            # Use elementtree to parse XML 
    6161            from elementtree.ElementTree import parse 

Hosted by WebFaction

Log in as guest/cpguest to create tickets