Thu, 09 Sep 2004
Some workarounds for comments.py get working

Jimmac asked me about comment module -- how to get it working even he has not root permissions to modify python installation -- he needs to add required xml.sax module

The workaround is pretty simple. Just add these two lines _BEFORE_ "import cgi..." line in comments.py. The modification of comments.py looks like

import sys
# change to path where is the xml.sax module installed to
sys.path.append('/home/znouza/blog/')

import cgi, glob, os.path, re, time, cPickle, os
from xml.sax.saxutils import escape
from Pyblosxom import tools
from Pyblosxom.entries.base import EntryBase
Tip: Make sure you added write perms to comments dir ("chown nobody comments" or "chmod 757 comments")

"Add comment" href is

<a href="$base_url/$file_path.html" title="add comment">add new</a>

(posted at 01:48 | filed under | link)    (comments | add new)