akismetcomments.py error and patch

Michael Olson <mwolson-mXXj517/[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
I noticed that akismetcomments.py (from contrib comments pack 1.3.3)
throws an AkismetError in the source, but does not import it properly.
The attached patch fixes this.


-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC
 |_] | \| |_| Reclaim your digital rights by eliminating DRM.
      See http://www.defectivebydesign.org/what_is_drm for details.

-------------------------------------------------------------------------
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

_______________________________________________
Pyblosxom-devel mailing list
Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF+04f+1Ho2POo0xkRApoZAJ9zXPYyDW6zxmCaQ2RDgVs6rnLTNwCgpSDr
lrFD0IwGWGXFrTDBKjG/088=
=tw5F
-----END PGP SIGNATURE-----
akismetcomments_err_fix.diff (text/x-diff, 389 B)
--- contrib-1.3.3/plugins/comments/plugins/akismetcomments.py	2007-02-08 01:45:08.000000000 -0500
+++ ../pyblosxom/plugins/akismetcomments.py	2007-03-16 22:05:50.000000000 -0400
@@ -77,7 +77,7 @@
     return True
 
 def cb_comment_reject(args):
-    from akismet import Akismet
+    from akismet import Akismet, AkismetError
 
     request = args['request']
     comment = args['comment']
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.