package planet-venus tag 668358 + patch thanks Well, in fact it appears that this problem comes from the Debian packaging, specifically from debian/patches/processor-import.patch.
Here is a patch (from svn diff) that solves it. There are still problems with that template, but at least it becomes possible to use genshi templates at all. Regards, -- ,--. : /` ) Tanguy Ortolo <xmpp:tan...@ortolo.eu> <irc://irc.oftc.net/Tanguy> | `-' Debian Developer \_
Index: debian/patches/processor-import.patch =================================================================== --- debian/patches/processor-import.patch (révision 8472) +++ debian/patches/processor-import.patch (copie de travail) @@ -1,19 +1,15 @@ -diff -Nur planet-venus-20080213-1.orig/planet/shell/__init__.py planet-venus-20080213-1.orig.new/planet/shell/__init__.py ---- planet-venus-20080213-1.orig/planet/shell/__init__.py 2007-12-22 03:24:02.000000000 +0000 -+++ planet-venus-20080213-1.orig.new/planet/shell/__init__.py 2008-02-18 12:42:16.000000000 +0000 -@@ -42,12 +42,12 @@ - - # Try loading module for processing this template, based on the extension - base,ext = os.path.splitext(os.path.basename(template_resolved)) -- module_name = ext[1:] -+ module_name = "planet.shell.%s" % ext[1:] +diff -Nur -x '*.orig' -x '*~' planet-venus-0~bzr116/planet/shell/__init__.py planet-venus-0~bzr116.new/planet/shell/__init__.py +--- planet-venus-0~bzr116/planet/shell/__init__.py 2009-10-01 20:22:09.000000000 +0200 ++++ planet-venus-0~bzr116.new/planet/shell/__init__.py 2012-04-11 15:29:43.894559502 +0200 +@@ -45,9 +45,9 @@ + module_name = ext[1:] try: try: - module = __import__("_" + module_name) -+ module = __import__("_" + module_name, "", "", [""]) ++ module = __import__("planet.shell.%s" % ("_" + module_name), "", "", [""]) except: - module = __import__(module_name) -+ module = __import__(module_name, "", "", [""]) ++ module = __import__("planet.shell.%s" % module_name, "", "", [""]) except Exception, inst: return log.error("Skipping %s '%s' after failing to load '%s': %s", mode, template_resolved, module_name, inst)
signature.asc
Description: Digital signature