Edgewall Software

Changes between Version 36 and Version 37 of GenshiTutorial


Ignore:
Timestamp:
Aug 30, 2007, 4:19:31 PM (17 years ago)
Author:
cmlenz
Comment:

Get rid of EvalException, not worth it

Legend:

Unmodified
Added
Removed
Modified
  • GenshiTutorial

    v36 v37  
    1717== Prerequisites ==
    1818
    19 First, make sure you have !CherryPy 3.0.x installed, as well as recent versions of [http://formencode.org/ FormEncode], Genshi (obviously), and [http://pythonpaste.org/ Paste]. You can download and install those manually, or just use [http://peak.telecommunity.com/DevCenter/EasyInstall easy_install]:
     19First, make sure you have !CherryPy 3.0.x installed, as well as recent versions of [http://formencode.org/ FormEncode] and obviously Genshi. You can download and install those manually, or just use [http://peak.telecommunity.com/DevCenter/EasyInstall easy_install]:
    2020
    2121{{{
     
    2323$ easy_install FormEncode
    2424$ easy_install Genshi
    25 $ easy_install Paste
    2625}}}
    2726
     
    4342
    4443import cherrypy
    45 from paste.evalexception.middleware import EvalException
    4644
    4745
     
    5755
    5856def main(filename):
    59     # Some global configuration; note that this could be moved into a configuration file
     57    # Some global configuration; note that this could be moved into a
     58    # configuration file
    6059    cherrypy.config.update({
    6160        'request.throw_errors': True,
     
    6665    })
    6766
    68     # Initialize the application, and add EvalException for more helpful error messages
    69     app = cherrypy.Application(Root(data))
    70     app.wsgiapp.pipeline.append(('paste_exc', EvalException))
    71     cherrypy.quickstart(app, '/', {
     67    cherrypy.quickstart(Root(data), '/', {
    7268        '/media': {
    7369            'tools.staticdir.on': True,
     
    134130import cherrypy
    135131from genshi.template import TemplateLoader
    136 from paste.evalexception.middleware import EvalException
    137132
    138133loader = TemplateLoader(