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 #622 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

[patch] TurboCheetah does not works from latest SVN

Reported by: jpaulofarias at gmail dot com Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: blocker Keywords:


There was some typos on the TurboCheetah? from latest SVN. Providing a patch bellow.

Index: D:/projetos/turbogears/plugins/cheetah/turbocheetah/cheetahsupport.py
--- D:/projetos/turbogears/plugins/cheetah/turbocheetah/cheetahsupport.py	(revision 838)
+++ D:/projetos/turbogears/plugins/cheetah/turbocheetah/cheetahsupport.py	(working copy)
@@ -2,12 +2,12 @@
 import sys, os, imp
-from Cheetah import Compiler
+from Cheetah.Compiler import Compiler
 import pkg_resources
 def _recompile_template(package, basename, tfile, classname):
     tmpl = pkg_resources.resource_string(package, "%s.tmpl" % basename)
-    c = Compiler(source=text, mainClassName='GenTemplate')
+    c = Compiler(source=tmpl, mainClassName='GenTemplate')
     code = str(c)
     mod = imp.new_module(classname)
     ns = dict()

Change History

comment:1 Changed 13 years ago by kevin

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

I fixed this a couple days back. Thanks for the patch!

Note: See TracTickets for help on using tickets.