A patch for fileentry
TheCrypto <pyblosxom-yuwLgN6GWnDrZ44/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
I found a slight problem tonight when I participated in Blogshine. Since I store my entries in a blog directory, when I had an entry with the word blog in it, it replaced it with a blank and messed up my style. Here is a patch to only replace once in that case fixing this problem. TheCrypto http://thecrypto.org
pyblosxompatch
(text/plain, 643 B)
diff -u pyblosxom-1.1/Pyblosxom/entries/fileentry.py pyblosxom-1.1-new/Pyblosxom/entries/fileentry.py
--- pyblosxom-1.1/Pyblosxom/entries/fileentry.py 2004-12-07 09:24:11.000000000 -0800
+++ pyblosxom-1.1-new/Pyblosxom/entries/fileentry.py 2005-03-13 21:25:20.858723032 -0800
@@ -95,7 +95,7 @@
path = path.replace(os.path.basename(self._filename), '')
path = path[:-1]
- absolute_path = self._filename.replace(self._datadir, '')
+ absolute_path = self._filename.replace(self._datadir, '', 1)
absolute_path = absolute_path.replace(file_basename, '')
absolute_path = absolute_path[1:][:-1]