PyBlosxom Plugins Update

Today I updated all my plugins to the newest versions from Contributed Plugins Pack 1.2.2. Everything went pretty well except for Will Guaraldi’s pycategories plugin which displayed an extra / sign when processing the root directory. I modified the plugin and made a patch that fixes this problem:

--- pycategories.py	2005-06-21 11:23:14.000000000 -0700
+++ pycategories_fixed.py	2005-06-30 13:37:08.838820024 -0700
@@ -185,6 +185,8 @@
                   "flavour":      flavour,
                   "count":        num,
                   "indent":       tab }
+            if item == "":
+                d["fullcategory"] = item

             # and we toss it in the thing
             output.append(item_t % d)

One last note is with the newest version of the comments plugin. If you want to view comments you need to append “viewcomments=yes” to the querystring. I assume this is to allow showing comments only when viewing the blog entry and not when viewing a directory with only one entry. If this is the case I believe checking “bl_type” == “file” as a better method. I plan on editing the plugin to work this way because I believe the querystring method is not very good, and not backwards compatible.

Files:
pycategories.diff

Leave a Reply