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

Ticket #1680 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Fix TG2 default Template config setup

Reported by: mramm Owned by: lmacken
Priority: normal Milestone: 2.0
Component: TurboGears Version: trunk
Severity: normal Keywords:
Cc:

Description

TG2 is currently hard-wired to use Genshi, use the default from the config instead.

Also make sure we are passing in the right options to the template prepare call in the decorated controller (which lives in pylons!)

Also document how to switch the default. See:

 http://wiki.pylonshq.com/display/pylonsdocs/Using+Other+Template+Languages

for more information.

Attachments

Pylons-expose-default-template.patch Download (719 bytes) - added by lmacken 11 years ago.
Pylons-expose-default-template.patch
tg2-default-template-config.patch Download (3.2 KB) - added by lmacken 11 years ago.
An updated patch that obsoletes all of the others in this ticket.

Change History

comment:1 Changed 11 years ago by lmacken

  • Status changed from new to assigned
  • Owner changed from anonymous to lmacken

Changed 11 years ago by lmacken

Pylons-expose-default-template.patch

comment:2 Changed 11 years ago by lmacken

The above patches are my first attempt at fixing this issue.

Changed 11 years ago by lmacken

An updated patch that obsoletes all of the others in this ticket.

comment:3 Changed 11 years ago by lmacken

Since the expose decorator has moved out of Pylons and into tg2, the tg2-default-template-config.patch now contains all of the necessary changes, and the Pylons-expose-default-template.patch is now unnecessary.

comment:4 Changed 11 years ago by mramm

  • Status changed from assigned to closed
  • Resolution set to fixed

Patch applied in r4294

Note: See TracTickets for help on using tickets.