Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ImportFrom alias FunctionDef arguments args NameParam defaults body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Expr Call NameLoad Str Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot CompareIn Str NameLoad body Expr Call NameLoad Str Return NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str keyword Str If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call NameLoad Str Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias alias Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Assign NameStore Dict For NameStore NameLoad body If CompareIn SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Str For NameStore Call NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd BinOpAdd BinOpAdd SubscriptLoad NameLoad Index NameLoad Str Call NameLoad Call NameLoad NameLoad Str orelse Assign SubscriptStore NameLoad Index NameLoad BinOpAdd SubscriptLoad NameLoad Index NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call NameLoad Str Return NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad NameLoad keyword Str If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call NameLoad Str Return NameLoad TryExcept body If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call NameLoad Str Return TupleLoad NameLoad Str orelse Return NameLoad handlers ExceptHandler type NameLoad body Expr Call NameLoad Str Return TupleLoad NameLoad Str decorator_list Assign NameStore NameLoad
N/A N/A 
Summary
=======

Run comments and trackbacks through `Akismet <http://akismet.com/>`_
to see whether to reject them or not.


Install
=======

Requires the ``comments`` plugin.

This plugin comes with Pyblosxom.  To install, do the following:

1. Add ``Pyblosxom.plugins.akismetcomments`` to the ``load_plugins``
   list in your ``config.py`` file.

2. Install the ``akismet`` library.  You can get it at
   http://www.voidspace.org.uk/python/modules.shtml#akismet

3. Set up a Wordpress.com API key.  You can find more information from
   http://faq.wordpress.com/2005/10/19/api-key/ .

4. Use this key to put put the following line into your config.py
   file::

       py['akismet_api_key'] = 'MYKEYID'

5. Add ``$(comment_message)`` to the comment-form template if it isn't
   there already.

   When akismetcomments rejects a comment, it'll populate that
   variable with a message explaining what happened.


History
=======

This plugin merges the work done on the ``akismetComments.py`` plugin
by Blake Winton with the the ``akismet.py`` plugin by Benjamin Mako
Hill.
 N/A __author__ Benjamin Mako Hill N/A __version__ 0.2 N/A __email__ N/A __url__ http://pyblosxom.github.com/ N/A __description__ Rejects comments using akismet N/A __category__ comments N/A __license__ GPLv2 N/A __registrytags__ 1.4, 1.5, core Pyblosxom.tools pwrap_error verify_installation N/A N/A request N/A N/A N/A N/A akismet Akismet N/A N/A N/A ImportError N/A N/A N/A pwrap_error Missing module 'akismet'.  See documentation for getting it. N/A False N/A config N/A N/A request get_configuration N/A N/A N/A akismet_api_key config N/A N/A N/A pwrap_error Missing required configuration value 'akismet_key' N/A False N/A a N/A Akismet N/A config N/A akismet_api_key N/A config N/A base_url agent Pyblosxom/1.3 N/A N/A N/A N/A a verify_key N/A N/A N/A pwrap_error Could not verify akismet API key. N/A False N/A True N/A cb_comment_reject N/A N/A args N/A N/A akismet Akismet AkismetError N/A request N/A args N/A request N/A comment N/A args N/A comment N/A config N/A N/A request get_configuration N/A http N/A N/A request get_http N/A fields N/A comment comment_author_email comment_author comment_author_url comment_type description email author link type N/A data N/A N/A field fields N/A N/A N/A N/A fields N/A field comment N/A N/A N/A data N/A field N/A char N/A list N/A comment N/A N/A fields N/A field N/A N/A N/A N/A N/A N/A char encode ascii N/A N/A N/A N/A N/A data N/A field N/A N/A N/A N/A data N/A field &# N/A str N/A ord char ; N/A N/A N/A data N/A field N/A N/A data N/A field char N/A N/A N/A N/A data get comment N/A N/A N/A pwrap_error Comment info not enough. N/A False N/A body N/A data N/A comment N/A N/A ipaddress comment N/A N/A N/A data N/A user_ip N/A comment N/A ipaddress N/A N/A data N/A user_agent N/A N/A http get HTTP_USER_AGENT N/A N/A data N/A referrer N/A N/A http get HTTP_REFERER N/A api_key N/A N/A config get akismet_api_key N/A base_url N/A N/A config get base_url N/A api N/A Akismet api_key base_url agent Pyblosxom/1.5 N/A N/A N/A N/A api verify_key N/A N/A N/A pwrap_error Could not verify akismet API key. Comments accepted. N/A False N/A N/A N/A N/A N/A api comment_check body data N/A N/A N/A pwrap_error Rejecting comment N/A N/A True I'm sorry, but your comment was rejected by the <a href="http://akismet.com/">Akismet</a> spam filtering system. N/A N/A False N/A N/A N/A AkismetError N/A N/A N/A pwrap_error Rejecting comment (AkismetError) N/A N/A True Missing essential data (e.g., a UserAgent string). N/A N/A cb_trackback_reject cb_comment_reject