Edgewall Software

Changes between Version 108 and Version 109 of GenshiTutorial


Ignore:
Timestamp:
Feb 19, 2008, 1:27:26 PM (12 years ago)
Author:
anonymous
Comment:

tried to fix example

Legend:

Unmodified
Added
Removed
Modified
  • GenshiTutorial

    v108 v109  
    262262        finally:
    263263            fileobj.close()
    264     cherrypy.engine.on_stop_engine_list.append(_save_data)
     264    if hasattr(cherrypy.engine, 'subscribe'): # CherryPy >= 3.1
     265        cherrypy.engine.subscribe('stop', _save_data)
     266    else:
     267        cherrypy.engine.on_stop_engine_list.append(_save_data)
    265268
    266269}}}