[Moin-user] Traceback when antispam enabled

skip at pobox.com skip at pobox.com
Sat Oct 15 07:16:30 EDT 2005


When I enable the antispam line in wikiconfig.py I get a traceback:

    TypeError: can't compare datetime.datetime to instance

The cgitb stuff makes it a bit challenging to assemble a normal Python
traceback, but here's what I came up with:

     /usr/local/mojam/lib/python2.3/site-packages/MoinMoin/request.py in run(self=<MoinMoin.request.RequestCGI instance>)
         cgitb.Hook(file=self).handle(saved_exc)
     /usr/local/mojam/lib/python2.3/site-packages/MoinMoin/wikiaction.py in do_savepage(pagename=u'SkipMontanaro', request=<MoinMoin.request.RequestCGI instance>)
         savemsg = unicode(msg)
     /usr/local/mojam/lib/python2.3/site-packages/MoinMoin/PageEditor.py in saveText(self=<MoinMoin.PageEditor.PageEditor instance>, newtext=u'Skip manages the Mojam and Musi-Cal websites of which this wiki is a part.\n', rev=0, **kw={'comment': u'', 'trivial': 0})
         if not self.request.user.may.save(self, newtext, rev, **kw):
     /usr/local/mojam/lib/python2.3/site-packages/MoinMoin/util/antispam.py in save(self=<MoinMoin.util.antispam.SecurityPolicy instance>, editor=<MoinMoin.PageEditor.PageEditor instance>, newtext=u'Skip manages the Mojam and Musi-Cal websites of which this wiki is a part.\n', rev=0, **kw={'comment': u'', 'trivial': 0})
         blacklist += getblacklist(request, pn, do_update)
     /usr/local/mojam/lib/python2.3/site-packages/MoinMoin/util/antispam.py in getblacklist(request=<MoinMoin.request.RequestCGI instance>, pagename='BadContent', do_update=True)
         dprint(str(err))

My configuration is:

    Python Python 2.3.4: /usr/bin/python
    Linux orca.mojam.com 2.6.9-11.ELsmp #1 SMP Wed Jun 8 17:54:20 CDT 2005 i686
    MoinMoin Release 1.3.4 [Revision 1.3.4 release]
    Sat Oct 15 08:07:50 2005

Any thoughts on a fix/workaround?  A wiki spammer created about 200 pages on
the Mojam wiki overnight.  I sort of assume the global bad content page
probably has enough mojo to have prevented that.

Thx,

-- 
Skip Montanaro
Katrina Benefit Concerts: http://www.musi-cal.com/katrina
skip at pobox.com




More information about the Moin-user mailing list