Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Initial Version and Version 6 of Ticket #1798


Ignore:
Timestamp:
08/18/08 14:46:30 (11 years ago)
Author:
mramm
Comment:

A working version of this is checked in now. The genshi TemplateLoader? does not support dotted notation by default (that is only provided in the buffet plugin) so this is NOT backwards compatable with the current expose functionality. You must now provide the filename (and whatever path information is nessisary) in expose, including the .html extension. Furthermore, we're now regestring the template directory in the search path directly, so expose can be simpler. The old expose:

    @expose('testproject.templates.index')
    def index(self):
        return dict(page='index')

Should be replaced by the new expose:

    @expose('index.html')
    def index(self):
        return dict(page='index')

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1798

    • Property Status changed from new to closed
    • Property Summary changed from Stop using buffet to Use Pylons renderers rather than buffet
    • Property Milestone changed from 2.0 to 2.0-preview-3
    • Property Owner changed from anonymous to mramm
    • Property Resolution changed from to fixed
  • Ticket #1798 – Description

    initial v6  
    55But we need a generic render function which takes an engine parameter and calls the correct renderer.  
    66 
    7 The renderers dictionary should be setup in environment.py with standard renderers setup by default 
     7The renderers dictionary should be setup in environment.py with standard renderers setup by default. 
    88 
    99{{{