Edgewall Software

Changes between Version 53 and Version 54 of GenshiTutorial


Ignore:
Timestamp:
Aug 31, 2007, 6:52:44 PM (12 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenshiTutorial

    v53 v54  
    565565        def wrapper(*args, **kwargs):
    566566            cherrypy.thread_data.template = loader.load(filename)
     567            opt = options.copy()
    567568            if method == 'html':
    568                 options.setdefault('doctype', 'html')
    569             serializer = get_serializer(method, **options)
     569                opt.setdefault('doctype', 'html')
     570            serializer = get_serializer(method, **opt)
    570571            stream = func(*args, **kwargs)
    571572            if not isinstance(stream, Stream):