[Mailman-Users] Moderation Bit Problem

Mark Sapiro mark at msapiro.net
Fri Jan 11 20:09:46 CET 2008


Kathy Gee wrote:
>
>Here is what I have from mailman's error log for a failed attempt (sent
>from a moderated member):
>
>Jan 11 08:39:40 2008 admin(28403):
>/usr/local/mailman-2.1.4-mills1/Mailman/Utils.py:469:
>DeprecationWarning: raising a string exception is deprecated
>  raise quickexit


The above is not part of the problem. It is a result of using Mailman
earlier than 2.1.10 with Python 2.5.x


>Jan 11 08:39:54 2008 (15586) Uncaught runner exception: unbound method
>reason_notice() must be called with ModeratedMemberPost instance as
>first argument (got nothing instead)
>Jan 11 08:39:54 2008 (15586) Traceback (most recent call last):
>  File "/usr/local/mailman-2.1.4-mills1/Mailman/Queue/Runner.py", line
>111, in _oneloop
>    self._onefile(msg, msgdata)
>  File "/usr/local/mailman-2.1.4-mills1/Mailman/Queue/Runner.py", line
>169, in _onefile
>    keepqueued = self._dispose(mlist, msg, msgdata)
>  File
>"/usr/local/mailman-2.1.4-mills1/Mailman/Queue/IncomingRunner.py", line
>130, in _dispose
>    more = self._dopipeline(mlist, msg, msgdata, pipeline)
>  File
>"/usr/local/mailman-2.1.4-mills1/Mailman/Queue/IncomingRunner.py", line
>153, in _dopipeline
>    sys.modules[modname].process(mlist, msg, msgdata)
>  File "/usr/local/mailman-2.1.4-mills1/Mailman/Handlers/Moderate.py",
>line 80, in process
>    ModeratedMemberPost)
>  File "/usr/local/mailman-2.1.4-mills1/Mailman/Handlers/Hold.py", line
>223, in hold_for_approval
>    reason = Utils.wrap(exc.reason_notice())
>TypeError: unbound method reason_notice() must be called with
>ModeratedMemberPost instance as first argument (got nothing instead)


Your Mailman/Handlers/Hold.py module is modified from the 2.1.4 base.
The offending line is line 212 in the base, not 223.

There is something wrong with this module or perhaps there is some
other incompatiblity between Mailman 2.1.4 and Python 2.5.x. Without
seeing exactly what has been changed in Hold.py, I can't say for sure.

I recommend upgrading Mailman as a start.


>Jan 11 08:39:54 2008 (15586) SHUNTING:
>1200069594.212882+ef9a62781ca483bd4077e680c970bd976ff74345
>Jan 11 08:40:11 2008 admin(28515):
>/usr/local/mailman-2.1.4-mills1/Mailman/Utils.py:469:
>DeprecationWarning: raising a string exception is deprecated
>  raise quickexit
>Jan 11 08:40:33 2008 admin(28773):
>/usr/local/mailman-2.1.4-mills1/Mailman/Utils.py:469:
>DeprecationWarning: raising a string exception is deprecated
>  raise quickexit
>admin(28773): /usr/local/mailman-2.1.4-mills1/Mailman/MailList.py:862:
>DeprecationWarning: raising a string exception is deprecated
>  raise Errors.MMSubscribeNeedsConfirmation


The above DeprecationWarnings are also not the cause of the problem.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list