SOURCES: python-PasteScript-template_dir_assemble.patch (NEW) - Patch for p...

beorn beorn at pld-linux.org
Sun Mar 29 19:23:09 CEST 2009


Author: beorn                        Date: Sun Mar 29 17:23:09 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- Patch for paste.script.templates.template_dir()

---- Files affected:
SOURCES:
   python-PasteScript-template_dir_assemble.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/python-PasteScript-template_dir_assemble.patch
diff -u /dev/null SOURCES/python-PasteScript-template_dir_assemble.patch:1.1
--- /dev/null	Sun Mar 29 19:23:09 2009
+++ SOURCES/python-PasteScript-template_dir_assemble.patch	Sun Mar 29 19:23:03 2009
@@ -0,0 +1,12 @@
+diff -Nru PasteScript-1.7.3.orig/paste/script/templates.py PasteScript-1.7.3/paste/script/templates.py
+--- PasteScript-1.7.3.orig/paste/script/templates.py	2009-03-29 19:07:49.323215602 +0200
++++ PasteScript-1.7.3/paste/script/templates.py	2009-03-29 19:15:58.876497792 +0200
+@@ -49,7 +49,7 @@
+         assert self._template_dir is not None, (
+             "Template %r didn't set _template_dir" % self)
+         if isinstance( self._template_dir, tuple):
+-            return self._template_dir
++            return os.path.join(self.module_dir(), self._template_dir[1])
+         else:
+             return os.path.join(self.module_dir(), self._template_dir)
+ 
================================================================


More information about the pld-cvs-commit mailing list