Re: Getting comments working
will <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On 3/28/07, Steve Clark <[email protected]> wrote: > > it talks about the comment_reject callback. I have the Akismet plug-in > installed, but I'm not sure if I need to do anything else for it to be > called. I've looked at the documentation, but still feel I'm missing > something. > > Looking at the pyblosxom code I see it scans plug-ins for cb_ functions. > When does that scan get run? Bear with me as I'm still learning about > how web applications work. I'm not sure if this is general to all web-applications or specific to PyBlosxom. When PyBlosxom launches (i.e. when the CGI script is first executed or if PyBlosxom is running in a FastCGI environment, when it first loads), it pulls the plugin list, then goes through each plugin and builds a map of callback -> list of functions in plugins that are registered for that callback. The code for this is in plugin_utils.py and it gets kicked off in the initialize function in pyblosxom.py. This happens very early on in the PyBlosxom lifecycle--before we use any plugins like cb_start. Asking questions about these things is good. At a bare minimum, I (and others) can take the questions and answers and cycle them into the PyBlosxom documentation. I don't know offhand if the akismet plugin verifies that it is installed and configured correctly. If it does, then run this at the command line: ./pyblosxom.cgi That will test your configuration of PyBlosxom. It'll make sure you've got required config.py properties set, it'll go through the plugins that will be loaded and call "verify_installation" on all of them so they can check to see if they're configured properly, and it'll spit out a lot of output that should give you some idea of what's getting loaded and whether your configuration looks ok. There's some text about it here: http://pyblosxom.sourceforge.net/1.3.1/manual/x78.html though it fails to mention that verification will go through your PyBlosxom configuration and also through any plugin verification, too. Hope that helps-- /will ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV