summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Wrobel <wrobel@gentoo.org>2006-02-07 08:50:25 +0000
committerGunnar Wrobel <wrobel@gentoo.org>2006-02-07 08:50:25 +0000
commite5e5d7df9fea15bd218d3dfbe8a82c4b29aa9bc9 (patch)
tree60eda7683b134f86d76dc1a5b08f8c8d8deb61f6 /www-apps
parentForgot to add the polymeraze digest (diff)
downloadoverlay-e5e5d7df9fea15bd218d3dfbe8a82c4b29aa9bc9.tar.gz
overlay-e5e5d7df9fea15bd218d3dfbe8a82c4b29aa9bc9.tar.bz2
overlay-e5e5d7df9fea15bd218d3dfbe8a82c4b29aa9bc9.zip
Fixed two problematic plugins
svn path=/stable/; revision=655
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/pyblosxom-plugins/files/getstamps.py2
-rw-r--r--www-apps/pyblosxom-plugins/files/rss2renderer.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/www-apps/pyblosxom-plugins/files/getstamps.py b/www-apps/pyblosxom-plugins/files/getstamps.py
index 64ec15a..6c2164e 100644
--- a/www-apps/pyblosxom-plugins/files/getstamps.py
+++ b/www-apps/pyblosxom-plugins/files/getstamps.py
@@ -41,7 +41,7 @@ def recurse(so_far):
thisfile = open(filepath,'r')
thisdate = getdate (thisfile)
if thisdate:
- OutFile.write("%s %s\n" % (thisdate, filepath[2:]))
+ OutFile.write("%s %s\n" % (thisdate, filepath[2:-5]))
continue
if __name__ == "__main__":
diff --git a/www-apps/pyblosxom-plugins/files/rss2renderer.py b/www-apps/pyblosxom-plugins/files/rss2renderer.py
index ff73c64..9945798 100644
--- a/www-apps/pyblosxom-plugins/files/rss2renderer.py
+++ b/www-apps/pyblosxom-plugins/files/rss2renderer.py
@@ -214,7 +214,7 @@ class RSS2Renderer(RendererBase):
# and assumes the data is ascii (which is wrong).
text = self._doc.toxml()
if self._config.has_key("blog_encoding"):
- text = "<?xml version=\"1.0\" encoding=\"%s\" ?>" % self._config["blog_encoding"] + text[text.find("\n"):]
+ text = "<?xml version=\"1.0\" encoding=\"%s\" ?>" % self._config["blog_encoding"] + text[text.find("<rss"):]
self.write(text)